/* --- Современный стиль форума --- */

/* Общий фон и скроллбар */
body {
  background: linear-gradient(135deg, #f4f7fa 0%, #e2e6ea 100%);
  font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
  color: #222;
  margin: 0;
  min-height: 100vh;
  scrollbar-width: thin;
  scrollbar-color: #4a90e2 #e2e6ea;
}

/* Современный скроллбар для Chrome */
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background: #4a90e2;
  border-radius: 5px;
}
body::-webkit-scrollbar-track {
  background: #e2e6ea;
}

/* Основной текст */
font, th, td, p {
  font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #222;
}

/* Ссылки */
a:link, a:active, a:visited {
  color: #4a90e2;
  transition: color 0.2s;
}
a:hover {
  color: #ff9800;
  text-decoration: underline;
}

/* Горизонтальная линия */
hr {
  border: none;
  border-top: 1px solid #d1d7dc;
  margin: 24px 0;
}

/* Таблицы и блоки */
.bodyline, .forumline {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(74,144,226,0.07);
  border: 1.5px solid #c6d2e3;
  margin-bottom: 20px;
  overflow: hidden;
}
.forumline {
  border: 2px solid #4a90e2;
}

/* Чередование строк */
td.row1 {
  background: #f8fafc;
}
td.row2 {
  background: #e9f0f7;
}
td.row3, td.row3Right, td.spaceRow {
  background: #dbe7f3;
}

/* Фоновые изображения */
td.rowpic {
  background: #fff url(cellpic2.jpg) repeat-y;
}

/* Заголовки */
th {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(90deg, #4a90e2 0%, #357ab7 100%);
  height: 32px;
  background-image: none;
  letter-spacing: 1px;
  border-bottom: 2px solid #357ab7;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
  background: linear-gradient(90deg, #e2e6ea 0%, #f4f7fa 100%);
  border: none;
  height: 32px;
  font-weight: 600;
  color: #4a90e2;
}

/* Заголовки и основные надписи */
.maintitle, h1, h2 {
  font-weight: bold;
  font-size: 26px;
  font-family: 'Montserrat', 'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif;
  color: #222;
  margin-bottom: 10px;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 8px rgba(74,144,226,0.08);
}

/* Мелкие элементы */
.small, .dats, .code_td, .php_td, .q_td, .quote_td, .copyright {
  font-size: 12px;
  color: #888;
}

/* Кнопки и формы */
input, textarea, select {
  color: #222;
  font: normal 14px 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
  border-radius: 6px;
  border: 1px solid #c6d2e3;
  padding: 6px 10px;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74,144,226,0.08);
}
input.button, input.liteoption, .fakebut {
  background: linear-gradient(90deg, #4a90e2 0%, #357ab7 100%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(74,144,226,0.08);
  transition: background 0.2s;
}
input.button:hover, input.liteoption:hover, .fakebut:hover {
  background: linear-gradient(90deg, #357ab7 0%, #4a90e2 100%);
}

/* Квадратные кнопки пагинации */
.pgbutt a {
  font-family: 'Segoe UI', Verdana;
  padding: 4px 10px;
  margin: 5px 2px 0 0;
  background: linear-gradient(90deg, #f4f7fa 0%, #e2e6ea 100%);
  color: #4a90e2;
  border: 1px solid #c6d2e3;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-weight: 600;
}
.pgbutt a:hover {
  background: linear-gradient(90deg, #4a90e2 0%, #357ab7 100%);
  color: #fff;
}

/* Коды и цитаты */
.code, .quote {
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 18px;
  background: #f4f7fa;
  border: 1px solid #c6d2e3;
  margin: 12px 0;
  font-family: 'Fira Mono', 'Consolas', monospace;
}
.code { color: #1565c0; background: #e3f2fd; }
.quote { color: #444; background: #f9fbe7; border-left: 4px solid #4a90e2; }

/* Аватар гостей */
.guestavatar {
  width: 120px;
  height: 120px;
  text-align: center;
  background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
  color: #4e5754;
  font-size: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 8px rgba(255,193,7,0.13);
}

/* QR-код */
#qr img {
  width: 40px;
  height: 40px;
  position: fixed;
  right: 16px;
  top: 16px;
  border: 1.5px solid #4a90e2;
  padding: 2px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(74,144,226,0.12);
  transition: width 0.3s, height 0.3s;
}
#qr img:hover {
  width: 200px;
  height: 200px;
  z-index: 100;
  padding: 4px;
}

/* Навигационное меню */
#nav8, #nav8 ul, #nav8 li {
  margin: 0;
  padding: 0;
  border: 0;
}
#nav8, #nav8 ul {
  background: linear-gradient(90deg, #f4f7fa 0%, #e2e6ea 100%);
}
#nav8 {
  border-spacing: 0 0;
  position: relative;
  z-index: 50;
  width: 100%;
  box-shadow: 0 2px 8px rgba(74,144,226,0.05);
}
#nav8 ul {
  position: absolute;
  display: none;
}
#nav8 td:hover ul {
  display: block;
}
#nav8 ul li {
  list-style: none;
}
#nav8 .right {
  direction: rtl;
}
#nav8 .right ul {
  right: 0;
}
#nav8 .right li {
  direction: ltr;
}
#nav8 a {
  display: block;
  padding: 10px 0;
  text-align: center;
  text-decoration: none;
  color: #4a90e2;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  border-radius: 6px;
}
#nav8 ul a {
  padding: 10px 20px;
  text-align: left;
}
#nav8 td:hover, #nav8 li:hover {
  background: #4a90e2;
  color: #fff;
}
#nav8 td, #nav8 li {
  text-align: center;
}

/* Блок загрузки */
#cssbar-wrapper {
  width: 320px;
  height: 22px;
  position: absolute;
  left: 50%;
}
#cssbar-border {
  border: 3px solid #4a90e2;
  height: 100%;
  width: 100%;
  position: relative;
  left: -50%;
  top: -50%;
  padding: 5px 4px;
  border-radius: 8px;
  background: #f4f7fa;
}
#cssbar-whitespace {
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
#cssbar-line {
  background: linear-gradient(90deg, #4a90e2 0%, #357ab7 100%);
  position: absolute;
  height: 100%;
  width: 100%;
  animation: cssbar-slide 4s steps(40) infinite;
  border-radius: 8px;
}
@keyframes cssbar-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Прочие мелкие улучшения */
form {
  display: inline;
  margin: 2px;
  padding: 0;
  border: 0;
}
p {
  margin: 20px 0;
  line-height: 1.7;
}
