/* Общие стили */
body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: #0d1117;
  color: #c9d1d9;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  width: 90%;
  margin: auto;
  overflow: hidden;
  transition: all 0.3s;
}

/* Заголовки */
h1, h2, h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s;
}

h1 {
  font-size: 2.2em;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.4em;
}

/* Текст */
p {
  line-height: 1.7em;
  margin-bottom: 10px;
  color: #c9d1d9;
  transition: color 0.3s;
}

/* Ссылки */
a {
  color: #58a6ff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #79c0ff;
  text-decoration: underline;
}

/* Навигация */
nav {
  background-color: #161b22;
  color: #c9d1d9;
  padding: 12px 0;
  border-bottom: 1px solid #30363d;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s, box-shadow 0.3s;
}

nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

nav li {
  display: inline;
  margin-right: 25px;
}

nav a {
  color: #c9d1d9;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #58a6ff;
}

/* Формы */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background-color: #0d1117;
  color: #c9d1d9;
  box-sizing: border-box;
  transition: all 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
  outline: none;
}

button,
input[type="submit"] {
  background-color: #238636;
  color: #ffffff;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

button:hover,
input[type="submit"]:hover {
  background-color: #2ea043;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Таблицы */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #0d1117;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #30363d;
  color: #c9d1d9;
  transition: background-color 0.3s;
}

th {
  background-color: #161b22;
  font-weight: 600;
}

/* Стили для форума (примеры) */
.forum-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.topic {
  background-color: #161b22;
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid #30363d;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.topic:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.topic-title {
  font-size: 1.4em;
  margin-bottom: 6px;
  color: #ffffff;
}

.topic-meta {
  color: #8b949e;
  font-size: 0.9em;
}

.post {
  background-color: #0d1117;
  padding: 14px;
  margin-top: 12px;
  border: 1px solid #21262d;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.05);
  transition: background-color 0.3s, transform 0.3s;
}

.post:hover {
  background-color: #161b22;
  transform: translateY(-1px);
}

/* Дополнительные стили (адаптация) */
.admin-panel {
  background-color: #161b22;
  padding: 24px;
  border: 1px solid #30363d;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.admin-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
