/* === ТЕМНАЯ ЭЛЕГАНТНАЯ ТЕМА === */

/* === БАЗОВЫЕ СТИЛИ === */
BODY {
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    margin: 10px;
    padding: 0;
    color: #e0e0e0;
    line-height: 1.5;
}

FONT, TH, TD, P {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
}

TD {
    font-size: 12px;
    color: #e0e0e0;
}

P {
    font-size: 12px;
    line-height: 1.5;
    color: #e0e0e0;
}

/* === ССЫЛКИ === */
A:link, A:active {
    color: #4fc3f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

A:visited {
    color: #81c784;
    text-decoration: none;
}

A:hover {
    color: #ffb74d;
    text-decoration: underline;
}

A.postlink {
    color: #4fc3f7;
    text-decoration: none;
}

A.postlink:hover {
    color: #ffb74d;
    text-decoration: underline;
}

/* === ЗАГОЛОВКИ ТЕМ === */
.topictitle {
    font-weight: 600;
    font-size: 13px;
    color: #4fc3f7;
}

A.topictitle:link, A.topictitle:active {
    color: #4fc3f7;
    text-decoration: none;
}

A.topictitle:visited {
    color: #81c784;
}

A.topictitle:hover {
    color: #ffb74d;
    text-decoration: underline;
}

/* === ОСНОВНЫЕ КОНТЕЙНЕРЫ === */
.bodyline {
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.forumline {
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 6px;
    border-collapse: separate;
}

/* === КАТЕГОРИИ === */
TD.cat, TD.catHead, TD.catSides, TD.catLeft, TD.catRight, TD.catBottom {
    background: linear-gradient(135deg, #37474f 0%, #263238 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    height: 32px;
    text-indent: 8px;
    letter-spacing: 0.5px;
    border: 1px solid #455a64;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* === ШАПКА ТАБЛИЦ === */
TH {
    background: linear-gradient(180deg, #424242 0%, #363636 100%);
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 600;
    height: 28px;
    text-align: left;
    padding-left: 12px;
    border: 1px solid #555555;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

/* === СТРОКИ ТАБЛИЦ === */
.row1 {
    background: #333333;
    border-bottom: 1px solid #404040;
}

.row2 {
    background: #2a2a2a;
    border-bottom: 1px solid #404040;
}

.row3 {
    background: #363636;
    border-bottom: 1px solid #404040;
}

TD.spacerow {
    background: #404040;
    height: 1px;
}

.alt1, .alt1Active {
    background: #333333;
}

.alt2, .alt2Active {
    background: #2a2a2a;
}

/* === ЗАГОЛОВКИ === */
.maintitle, H1 {
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.subtitle, H2 {
    color: #4fc3f7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* === НАВИГАЦИЯ === */
.nav {
    font-weight: 600;
    font-size: 12px;
    color: #e0e0e0;
}

.topnav {
    background: linear-gradient(180deg, #37474f 0%, #263238 100%);
    border: 1px solid #455a64;
    font-size: 11px;
    color: #e0e0e0;
    height: 28px;
}

.navbar {
    font-size: 11px;
    color: #e0e0e0;
    font-weight: 600;
}

.navbar a {
    color: #4fc3f7;
    text-decoration: none;
}

.navbar a:hover {
    color: #ffb74d;
    text-decoration: underline;
}

/* === СООБЩЕНИЯ === */
.postbody {
    font-size: 13px;
    line-height: 1.6;
    color: #e0e0e0;
}

.postdetails {
    font-size: 11px;
    color: #b0b0b0;
}

.name {
    font-weight: 600;
    font-size: 13px;
    color: #4fc3f7;
}

.smallfont {
    font-size: 11px;
    color: #b0b0b0;
}

.time {
    color: #b0b0b0;
    font-size: 11px;
}

/* === ЦИТАТЫ И КОД === */
.quote {
    background: #1e1e1e;
    border-left: 4px solid #4fc3f7;
    border-radius: 4px;
    font-size: 12px;
    color: #d0d0d0;
    line-height: 1.5;
    padding: 12px 16px;
    margin: 8px 0;
}

.code {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    color: #81c784;
    font-size: 12px;
    padding: 12px 16px;
    overflow-x: auto;
}

.code_td, .php_td, .q_td, .quote_td {
    font-size: 12px;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.code_table, .php_table, .q_table, .quote_table {
    border: 1px solid #404040;
    border-radius: 4px;
    font-size: 12px;
    width: 95%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === ФОРМЫ === */
FORM {
    display: inline;
}

INPUT, SELECT, TEXTAREA {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    color: #e0e0e0;
    background: #2d2d2d;
    border: 1px solid #555555;
    border-radius: 4px;
    padding: 6px 8px;
}

INPUT:focus, SELECT:focus, TEXTAREA:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

INPUT.post, TEXTAREA.post {
    background: #2d2d2d;
    border: 1px solid #555555;
    color: #e0e0e0;
}

INPUT.button, INPUT.liteoption, .fakebut {
    background: linear-gradient(180deg, #455a64 0%, #37474f 100%);
    border: 1px solid #607d8b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

INPUT.button:hover, INPUT.liteoption:hover, .fakebut:hover {
    background: linear-gradient(180deg, #546e7a 0%, #455a64 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

INPUT.catbutton {
    background: linear-gradient(180deg, #37474f 0%, #263238 100%);
    border: 1px solid #455a64;
    color: #ffffff;
    font-size: 12px;
    border-radius: 6px;
}

INPUT.mainoption {
    background: linear-gradient(180deg, #4fc3f7 0%, #29b6f6 100%);
    border: 1px solid #0288d1;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    border-radius: 6px;
}

/* === РАЗДЕЛИТЕЛИ === */
HR {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #404040, transparent);
}

/* === ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ === */
.gensmall {
    font-size: 11px;
    color: #b0b0b0;
}

TD.genmed, .genmed {
    font-size: 12px;
    color: #e0e0e0;
}

.explaintitle {
    font-weight: 600;
    font-size: 12px;
    color: #4fc3f7;
}

.helpline {
    background: #333333;
    border: 0;
    font-size: 11px;
}

.errorline {
    background: #d32f2f;
    border: 1px solid #f44336;
    color: #ffffff;
}

/* === МОДЕРАТОРЫ И АДМИНЫ === */
.admin {
    color: #ff7043;
    font-weight: 600;
    font-size: 12px;
}

A.admin, A.admin:visited {
    color: #ff7043;
    text-decoration: none;
}

A.admin:hover {
    color: #ffab91;
    text-decoration: underline;
}

.mod {
    color: #66bb6a;
    font-weight: 600;
    font-size: 12px;
}

A.mod, A.mod:visited {
    color: #66bb6a;
    text-decoration: none;
}

A.mod:hover {
    color: #a5d6a7;
    text-decoration: underline;
}

/* === ИЗОБРАЖЕНИЯ === */
IMG {
    border: 0;
    border-radius: 2px;
}

/* === КОПИРАЙТ === */
.copyright {
    font-size: 11px;
    color: #808080;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

A.copyright {
    color: #808080;
    text-decoration: none;
}

A.copyright:hover {
    color: #4fc3f7;
    text-decoration: underline;
}

/* === КНОПКИ-ССЫЛКИ === */
.pgbutt a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(180deg, #455a64 0%, #37474f 100%);
    border: 1px solid #607d8b;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}

.pgbutt a:hover {
    background: linear-gradient(180deg, #546e7a 0%, #455a64 100%);
    transform: translateY(-1px);
}

A.but, A.but:visited {
    color: #e0e0e0;
    text-decoration: none;
}

A.but:hover {
    color: #4fc3f7;
    text-decoration: none;
}

/* === QR-CODE === */
#qr img {
    width: 35px;
    height: 35px;
    position: fixed;
    right: 15px;
    top: 15px;
    border: 2px solid #4fc3f7;
    border-radius: 8px;
    padding: 2px;
    background-color: #2d2d2d;
    transition: all 0.3s ease;
}

#qr img:hover {
    width: 200px;
    height: 200px;
    z-index: 100;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* === АВАТАР ПО УМОЛЧАНИЮ === */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(135deg, #37474f 0%, #263238 100%);
    color: #ffffff;
    font-size: 48px;
    font-weight: 300;
    display: table-cell;
    border-radius: 12px;
    border: 2px solid #4fc3f7;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* === НАВИГАЦИОННОЕ МЕНЮ === */
#nav8, #nav8 ul, #nav8 li {
    margin: 0;
    padding: 0;
    border: 0;
}

#nav8, #nav8 ul {
    background: linear-gradient(180deg, #37474f 0%, #263238 100%);
}

#nav8 {
    border: 1px solid #455a64;
    border-radius: 8px;
    border-spacing: 0;
    position: relative;
    z-index: 50;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#nav8 ul {
    position: absolute;
    display: none;
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#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 15px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#nav8 ul a {
    padding: 8px 20px;
    text-align: left;
    color: #e0e0e0;
}

#nav8 td:hover, #nav8 li:hover {
    background: linear-gradient(180deg, #4fc3f7 0%, #29b6f6 100%);
    color: #ffffff;
}

#nav8 td {
    text-align: center;
    border-right: 1px solid #455a64;
}

#nav8 td:last-child {
    border-right: none;
}

/* === ПОЛОСА ЗАГРУЗКИ === */
#cssbar-wrapper {
    width: 300px;
    height: 20px;
    position: absolute;
    left: 50%;
}

#cssbar-border {
    border: 2px solid #4fc3f7;
    border-radius: 10px;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 2px;
    background: #1a1a1a;
}

#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    position: relative;
}

#cssbar-line {
    background: linear-gradient(90deg, #4fc3f7, #29b6f6, #4fc3f7);
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    animation: cssbar-slide 3s ease-in-out infinite;
}

@keyframes cssbar-slide {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* === СПЕЦИАЛЬНЫЕ ЭЛЕМЕНТЫ === */
.vbmenu_control {
    background: linear-gradient(180deg, #37474f 0%, #263238 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #455a64;
    transition: all 0.3s ease;
}

.vbmenu_control:hover {
    background: linear-gradient(180deg, #4fc3f7 0%, #29b6f6 100%);
    transform: translateY(-1px);
}

.panel {
    background: #2d2d2d;
    color: #e0e0e0;
    font-size: 12px;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* === RESPONSIVE === */
@media screen and (max-width: 800px) {
    BODY {
        margin: 5px;
    }
    
    .bodyline {
        border-radius: 4px;
    }
    
    #nav8 a {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* === СВЕТЛЫЕ АКЦЕНТЫ === */
.highlight {
    background: rgba(79, 195, 247, 0.2);
    border-left: 3px solid #4fc3f7;
    padding: 4px 8px;
    border-radius: 0 4px 4px 0;
}

.success {
    background: rgba(129, 199, 132, 0.2);
    border-left: 3px solid #81c784;
    color: #a5d6a7;
}

.warning {
    background: rgba(255, 183, 77, 0.2);
    border-left: 3px solid #ffb74d;
    color: #ffcc02;
}

.error {
    background: rgba(211, 47, 47, 0.2);
    border-left: 3px solid #d32f2f;
    color: #ef5350;
}