﻿/* --- Base Styles --- */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif; /* Современные шрифты без засечек */
    color: #E0E0E0; /* Светлый текст для контраста */
    background: linear-gradient(135deg, #1C1C2C 0%, #2A2A3A 100%); /* Глубокий, градиентный фон */
    font-size: 16px; /* Базовый размер шрифта */
    margin: 0;
    padding: 25px; /* Больше общего отступа */
    line-height: 1.6;
    /* Стилизация скроллбара */
    scrollbar-color: #6A0DAD #3A3A5A; /* thumb and track */
    scrollbar-width: thin;
}

/* Универсальный размер и семейство шрифтов */
font, th, td, p {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 1rem;
}

/* --- Utility Classes --- */
.nowrap {
    white-space: nowrap;
}

img {
    border: none;
    max-width: 100%;
    height: auto;
}

form {
    display: inline;
}

td {
    padding: 12px 18px; /* Увеличенный отступ для ячеек */
}

td.spacerow {
    height: 20px; /* Больше вертикального пространства */
    padding: 0;
}

.gen { font-size: 1rem; }
.genmed { font-size: 0.95rem; }
.gensmall { font-size: 0.85rem; color: #B0B0C0; }

/* --- Links --- */
a:link, a:active, a:visited {
    color: #00BCD4; /* Яркий аквамарин */
    text-decoration: none;
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}
a:hover {
    text-decoration: underline;
    color: #00E5FF; /* Более яркий аквамарин при наведении */
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6); /* Неоновое свечение */
}

hr {
    height: 1px;
    border: none;
    background: linear-gradient(to right, rgba(0,0,0,0), #4A4A6A, rgba(0,0,0,0));
    margin: 30px 0;
}

/* --- Main Structure & Tables --- */
.bodyline {
    background: rgba(42, 42, 58, 0.4); /* Полупрозрачный фон для эффекта стекла */
    border: 1px solid rgba(74, 74, 106, 0.5); /* Мягкая граница */
    border-radius: 16px; /* Сильнее скругленные углы */
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Глубокая тень */
    backdrop-filter: blur(10px); /* Эффект размытого стекла */
    -webkit-backdrop-filter: blur(10px); /* Для WebKit */
    margin: 0 auto;
    max-width: 1200px;
    overflow: hidden;
    position: relative; /* Для псевдоэлементов */
}
.bodyline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 70%); /* Мягкое свечение сверху */
    pointer-events: none;
    z-index: 0;
}


.forumline {
    background: rgba(42, 42, 58, 0.3);
    border: 1px solid rgba(74, 74, 106, 0.4);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

td.row1 { background-color: rgba(42, 42, 58, 0.2); } /* Прозрачные строки */
td.row2 { background-color: rgba(42, 42, 58, 0.25); }
td.row3 { background-color: rgba(42, 42, 58, 0.3); }

td.rowpic {
    background-color: transparent;
    background-image: none;
    border-right: 1px solid rgba(74, 74, 106, 0.3);
}

th {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(to right, #6A0DAD, #9C27B0); /* Глубокий фиолетовый градиент */
    color: #FFFFFF;
    height: 45px;
    text-align: left;
    padding: 0 20px;
    border: none;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    border-radius: 12px 12px 0 0; /* Скругленные только верхние углы */
}

td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
    background-image: none;
    background-color: rgba(58, 58, 74, 0.5); /* Прозрачный темный фон для категорий */
    border: none;
    height: 40px;
    color: #B0B0C0;
    font-weight: 600;
    padding: 0 20px;
    border-bottom: 1px solid rgba(74, 74, 106, 0.3);
}

td.header {
    background-image: none;
    background: linear-gradient(90deg, #1C1C2C, #2A2A3A); /* Темный фон шапки */
    height: 90px;
    border: none;
    color: #FFFFFF;
    padding: 0 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

td.catHead_header {
    background-image: none;
    background: linear-gradient(to right, #7B1FA2, #AF52DE); /* Яркий фиолетовый градиент */
    border: none;
    height: 40px;
    color: #FFFFFF;
    font-weight: 700;
    padding: 0 20px;
    border-radius: 12px 12px 0 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.maintitle_header {
    font-weight: 800; /* Более жирный */
    font-size: 2.8rem; /* Крупнее */
    font-family: 'Montserrat', sans-serif; /* Более выразительный шрифт */
    text-decoration: none;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Мягкое свечение */
}

.gen_header { font-size: 1.2rem; color: #E0E0E0; }
.space_header { font-size: 1.2rem; color: #E0E0E0; }

td.none {
    background-image: none;
    background-color: transparent;
    width: 60px;
}

td.index_nav {
    font-weight: 700;
    height: 45px;
    color: #FFFFFF;
    font-size: 1.1rem;
    background: linear-gradient(to right, #6A0DAD, #9C27B0); /* Фиолетовый градиент */
    padding: 0 20px;
    border-radius: 12px 12px 0 0;
}

.cattitle_w { font-weight: 600; font-size: 1.1rem; color: #E0E0E0; }
a.cattitle_w { text-decoration: none; color: #00BCD4; }
a.cattitle_w:hover { text-decoration: underline; color: #00E5FF; }

td.nav_locate {
    height: 35px;
    background-image: none;
    background-color: rgba(42, 42, 58, 0.3);
    color: #B0B0C0;
    padding: 0 20px;
    border-bottom: 1px solid rgba(74, 74, 106, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.speration_nav { font-size: 1rem; color: #9999AA; font-weight: normal; }
.desc_auth {
    background-color: rgba(42, 42, 58, 0.25);
    border: 1px solid rgba(74, 74, 106, 0.4);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
}
.desc_authb {
    background-color: rgba(42, 42, 58, 0.35);
    border: 1px solid rgba(74, 74, 106, 0.5);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
}
.user_infos {
    float: left;
    border-right: 1px solid rgba(74, 74, 106, 0.4);
    border-bottom: 1px solid rgba(74, 74, 106, 0.4);
    margin: 0px 20px 20px 0px;
    padding: 15px;
    width: 200px;
    border-radius: 8px;
    background-color: rgba(42, 42, 58, 0.2);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.05); /* Неоморфизм */
}
.user_buttons {
    width: 100%;
    background-image: none;
    padding-top: 15px;
    border-top: 1px solid rgba(74, 74, 106, 0.3);
    margin-top: 15px;
}

.desc_l_pm, .desc_r_pm {
    background-color: rgba(42, 42, 58, 0.25);
    border: 1px solid rgba(74, 74, 106, 0.4);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
}
.desc_l_pm { border-right-width: 0px; }
.desc_r_pm { border-left-width: 0px; }


td.cat, td.catHead, td.catBottom {
    height: 45px;
    border-width: 0px;
}
th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR {
    font-weight: 700;
    height: 45px;
    background: linear-gradient(to right, #6A0DAD, #9C27B0);
    color: #FFFFFF;
    border: none;
    padding: 0 20px;
}
td.row3Right, td.spaceRow {
    background-color: rgba(42, 42, 58, 0.3);
    border: none;
}

th.thHead, td.catHead {
    font-size: 1.1rem;
    border-radius: 12px 12px 0 0;
}
th.thSides, td.catSides, td.spaceRow { border-width: 0; }
th.thRight, td.catRight, td.row3Right { border-width: 0; }
th.thLeft, td.catLeft { border-width: 0; }
th.thBottom, td.catBottom {
    border-radius: 0 0 12px 12px;
    border-bottom: 1px solid rgba(74, 74, 106, 0.4);
}
th.thTop { border-width: 0; }
th.thCornerL { border-radius: 12px 0 0 0; border-width: 0; }
th.thCornerR { border-radius: 0 12px 0 0; border-width: 0; }


.maintitle, h1, h2 {
    font-weight: 800;
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 25px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.gen, .genmed, .gensmall { color: #E0E0E0; }
a.gen, a.genmed, a.gensmall { color: #00BCD4; text-decoration: none; }
a.gen:hover, a.genmed:hover, a.gensmall:hover { color: #00E5FF; text-decoration: underline; }


.mainmenu { font-size: 1rem; color: #E0E0E0; }
a.mainmenu, a.mainmenu:link, a.mainmenu:visited { text-decoration: none; color: #00BCD4; }
a.mainmenu:hover { text-decoration: none; color: #00E5FF; }


.cattitle {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.8px;
    color: #E0E0E0;
    text-transform: uppercase;
}
a.cattitle { text-decoration: none; color: #00BCD4; }
a.cattitle:hover { text-decoration: underline; color: #00E5FF; }


.forumlink { font-weight: 600; font-size: 1.1rem; color: #E0E0E0; }
a.forumlink { text-decoration: none; color: #00BCD4; }
a.forumlink:hover { text-decoration: underline; color: #00E5FF; }


.nav { font-weight: 600; font-size: 1rem; color: #E0E0E0; }
.location { font-weight: 600; font-size: 1rem; color: #00BCD4; }
a.nav { text-decoration: none; color: #B0B0C0; }
a.nav:hover { text-decoration: underline; color: #00E5FF; }


.topictitle { font-weight: 600; font-size: 1.1rem; color: #00BCD4; }
a.topictitle:link { text-decoration: none; color: #00BCD4; }
a.topictitle:visited { text-decoration: none; color: #0097A7; } /* Более темный аквамарин */
a.topictitle:hover { text-decoration: underline; color: #00E5FF; }

.name { font-size: 1rem; color: #E0E0E0; font-weight: 600; }
.postdetails { font-size: 0.9rem; color: #B0B0C0; }

.postbody { font-size: 1rem; line-height: 1.6; }
a.postlink:link { text-decoration: none; color: #00BCD4; }
a.postlink:visited { text-decoration: none; color: #0097A7; }
a.postlink:hover { text-decoration: underline; color: #00E5FF; }


.code {
    font-family: 'Fira Code', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #E0E0E0;
    background-color: rgba(42, 42, 58, 0.4);
    border: 1px solid rgba(74, 74, 106, 0.5);
    border-left: 4px solid #AF52DE; /* Фиолетовый акцент */
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.05);
}

.quote {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #E0E0E0;
    line-height: 1.5;
    background-color: rgba(42, 42, 58, 0.4);
    border: 1px solid rgba(74, 74, 106, 0.5);
    border-left: 4px solid #00BCD4; /* Аквамариновый акцент */
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.05);
}


.copyright {
    font-size: 0.85rem;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #777788;
    letter-spacing: normal;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(74, 74, 106, 0.3);
}
a.copyright { color: #777788; text-decoration: none;}
a.copyright:hover { color: #E0E0E0; text-decoration: underline;}


input, textarea, select {
    color: #E0E0E0;
    font: normal 0.95rem 'Inter', 'Roboto', sans-serif;
    background-color: rgba(42, 42, 58, 0.6); /* Полупрозрачный фон для инпутов */
    border: 1px solid rgba(74, 74, 106, 0.5);
    border-radius: 8px;
    padding: 10px 15px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3); /* Внутренняя тень */
}

input:focus, textarea:focus, select:focus {
    border-color: #00BCD4; /* Аквамарин при фокусе */
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.3), inset 2px 2px 5px rgba(0, 0, 0, 0.3); /* Неоновое свечение */
}

input.post, textarea.post, select {
    background-color: rgba(42, 42, 58, 0.6);
}

input { text-indent: 0; }

input.button, input.mainoption, input.liteoption, .fakebut {
    background: linear-gradient(135deg, #00BCD4, #0097A7); /* Аквамариновый градиент */
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-height: 45px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input.button:hover, input.mainoption:hover, input.liteoption:hover, .fakebut:hover {
    background: linear-gradient(135deg, #00E5FF, #00BCD4); /* Более яркий градиент */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
input.button:active, input.mainoption:active, input.liteoption:active, .fakebut:active {
    background: linear-gradient(135deg, #0097A7, #00BCD4);
    transform: translateY(0);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
}

input.mainoption {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
    color: #FFFFFF;
}

input.liteoption {
    background: rgba(58, 58, 74, 0.6); /* Полупрозрачный фон */
    color: #E0E0E0;
    font-weight: normal;
    border: 1px solid rgba(74, 74, 106, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
input.liteoption:hover {
    background: rgba(74, 74, 106, 0.7);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.helpline {
    background-color: rgba(42, 42, 58, 0.25);
    border: 1px solid rgba(74, 74, 106, 0.4);
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
}


input[type^="image"] {border-width:0px;}

/* --- WR-Forum Professional specific styles --- */

/* Pagination buttons */
.pgbutt a {
    font-family: 'Inter', 'Roboto', sans-serif;
    padding: 8px 15px;
    text-decoration: none;
    border: 1px solid rgba(74, 74, 106, 0.5);
    background: rgba(42, 42, 58, 0.5);
    color: #E0E0E0;
    margin: 0 6px 0 0;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.pgbutt a:hover {
    background: #00BCD4;
    border-color: #00E5FF;
    color: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.7);
}

TD {font-size: 1rem;}
form { display: inline; margin: 0; padding: 0; border: 0;}

/* QR-CODE */
#qr img {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 30px;
    top: 30px;
    border: 3px solid rgba(74, 74, 106, 0.6);
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.9); /* Почти белый, чтобы QR был виден */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 188, 212, 0.4); /* Неоновое свечение */
    transition: all 0.4s ease-in-out;
}
#qr img:hover {
    width: 280px;
    height: 280px;
    z-index: 1000;
    padding: 8px;
    border-color: #00E5FF;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.8);
}

/* Avatar Placeholder */
.guestavatar {
    width: 110px;
    height: 110px;
    text-align: center;
    background: linear-gradient(135deg, #00BCD4, #0097A7); /* Аквамариновый градиент */
    color: #FFFFFF;
    font-size: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 188, 212, 0.5); /* Неоновое свечение */
    overflow: hidden;
    margin: 15px auto;
    border: 2px solid rgba(255, 255, 255, 0.2); /* Мягкий ободок */
}

/* Admin Menu */
#nav8, #nav8 ul, #nav8 li {
    margin: 0;
    padding: 0;
    border: 0;
}
#nav8 {
    border-spacing: 0;
    position: relative;
    z-index: 50;
    width: 100%;
    background: rgba(42, 42, 58, 0.4);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#nav8 ul {
    position: absolute;
    display: none;
    background: rgba(42, 42, 58, 0.6);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 60;
    border: 1px solid rgba(74, 74, 106, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#nav8 td:hover ul {
    display: block;
}
#nav8 ul li {
    list-style: none;
    border-bottom: 1px solid rgba(74, 74, 106, 0.3);
}
#nav8 ul li:last-child {
    border-bottom: none;
}
#nav8 .right { direction: rtl; }
#nav8 .right ul { right: 0; }
#nav8 .right li { direction: ltr; }
#nav8 a {
    display: block;
    padding: 15px 0;
    text-align: center;
    text-decoration: none;
    color: #E0E0E0;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
#nav8 ul a {
    padding: 15px 25px;
    text-align: left;
}
#nav8 td:hover, #nav8 li:hover {
    background: rgba(74, 74, 106, 0.7);
    color: #00E5FF;
}

/* Loading Bar */
#cssbar-wrapper {
    width: 350px;
    height: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 60px;
    z-index: 999;
}
#cssbar-border {
    border: 4px solid #AF52DE; /* Фиолетовая граница */
    height: 100%;
    width: 100%;
    position: relative;
    padding: 4px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(175, 82, 222, 0.6); /* Неоновое свечение */
}
#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 10px;
}
#cssbar-line {
    background-color: #AF52DE; /* Фиолетовая полоса загрузки */
    position: absolute;
    height: 100%;
    width: 100%;
    animation: cssbar-slide 4s steps(40) infinite;
    border-radius: 10px;
}
@keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}
@-o-keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}
@-ms-keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}
@-webkit-keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}
@-moz-keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Optional: Google Fonts Import */
/* Вам нужно добавить это в секцию <head> вашего HTML: */
/* <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap" rel="stylesheet"> */
/* <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap" rel="stylesheet"> */
/* Если вы хотите использовать Fira Code для блоков кода: */
/* <link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&display=swap" rel="stylesheet"> */