/* ============================================================
   НОВИЙ УНІКАЛЬНИЙ СТИЛЬ ДЛЯ ФОРУМУ ПРО РЕМОНТ БОЙЛЕРІВ
   Тема: сантехніка, електрика, опалення, діагностика
   ============================================================ */

/* --- ЗАГАЛЬНІ НАЛАШТУВАННЯ --- */
body {
    max-width: 88%;
    margin: 18px auto;
    background: #0f1a24;
    font: 15px 'Roboto', 'Segoe UI', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
    color: #e0e6ed;
    padding: 0;
    scrollbar-3dlight-color: #2c4a6e;
    scrollbar-arrow-color: #f0a34b;
    scrollbar-base-color: #1e3a5f;
    scrollbar-darkshadow-color: #0a1219;
    scrollbar-face-color: #2c4a6e;
    scrollbar-highlight-color: #3a6a8e;
    scrollbar-shadow-color: #1e3a5f;
    scrollbar-track-color: #0f1a24;
    position: relative;
}

/* --- Фонове SVG зображення (шестерні, труби, бойлер) --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpattern id='boiler-pattern' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='%231a2a38'/%3E%3Ccircle cx='40' cy='40' r='12' fill='none' stroke='%233a6a8e' stroke-width='1.5'/%3E%3Ccircle cx='40' cy='40' r='5' fill='%233a6a8e'/%3E%3Crect x='55' y='30' width='4' height='20' fill='%234a7a9e'/%3E%3Crect x='55' y='30' width='4' height='20' fill='%234a7a9e'/%3E%3Crect x='50' y='55' width='18' height='3' fill='%234a7a9e'/%3E%3Crect x='15' y='25' width='10' height='4' fill='%234a7a9e'/%3E%3Crect x='15' y='45' width='10' height='4' fill='%234a7a9e'/%3E%3Crect x='20' y='25' width='4' height='28' fill='%234a7a9e'/%3E%3C/svg%3E%0A");
    background-repeat: repeat;
    opacity: 0.25;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f1a24 0%, #1a2a38 50%, #0f1a24 100%);
}

/* --- ШРИФТИ --- */
font, th, td, p {
    font: 15px 'Roboto', 'Segoe UI', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
    color: #dce4ec;
}

.finePrint { font-size: 12px; color: #9aaebf; }
td.txt_midcore, .txt_midcore { font-size: 13px; color: #bcd0e0; }
.explaintitle { font-size: 14px; font-weight: bold; color: #f0a34b; }

/* --- ПОСИЛАННЯ --- */
a:link, a:active, a.postlink {
    color: #f0a34b;
    text-decoration: none;
    transition: all 0.2s ease;
}
a:visited {
    color: #c4844a;
}
a:hover {
    color: #ffc878;
    text-decoration: underline;
}

/* --- ТЕМИ --- */
.topictitle {
    font-size: 14px;
    font-weight: bold;
    color: #e0e6ed;
}
a.topictitle:visited {
    color: #9aaebf;
}
a.topictitle:hover {
    color: #f0a34b;
}

/* --- ІМ'Я КОРИСТУВАЧА --- */
.authorLabel {
    font-size: 14px;
    font-weight: bold;
    color: #f0a34b;
}

/* --- ЛІНІЇ --- */
hr {
    border: 0;
    border-top: 1px solid #2c4a6e;
    height: 0;
    margin: 12px 0;
}

/* --- КАТЕГОРІЇ ТА ЗАГОЛОВКИ --- */
td.cat, td.rowpic {
    font-weight: bold;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #1e3a5f, #2c4a6e);
    height: 32px;
    text-indent: 8px;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
}
td.cathead, .forumLeftCornerCell, .category_right_column {
    font-weight: bold;
    letter-spacing: 0.5px;
    background: #1a2a38;
    height: 30px;
    border-bottom: 1px solid #2c4a6e;
}

/* --- РЯДКИ ТАБЛИЦЬ --- */
.threadRow1 {
    background: #16222e;
    border-bottom: 1px solid #2c4a6e;
}
.listTwo, .helpline {
    background: #1a2a38;
    border-bottom: 1px solid #2c4a6e;
}
.row_segmentC {
    background: #1e3242;
    border-bottom: 1px solid #2c4a6e;
}
td.spacerow {
    background: #0f1a24;
}

/* --- ЗАГОЛОВКИ ТАБЛИЦЬ (TH) --- */
th {
    background: linear-gradient(135deg, #1e3a5f, #163049);
    color: #f0a34b;
    font-size: 13px;
    font-weight: bold;
    height: 30px;
    white-space: nowrap;
    text-align: center;
    padding: 0 12px;
    border-bottom: 2px solid #f0a34b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- ОСНОВНІ КОНТЕЙНЕРИ --- */
.bodyline {
    background: #0f1a24;
    border: 1px solid #2c4a6e;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 4px;
}
.forumTrackr_63 {
    background: #2c4a6e;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

/* --- НАЗВА ФОРУМУ --- */
.maintitle, h1 {
    font: bold 26px/120% 'Roboto', 'Segoe UI', 'Trebuchet MS', Verdana, sans-serif;
    text-decoration: none;
    color: #f0a34b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}
.subtitle, h2, h3 {
    font: bold 18px/180% 'Roboto', 'Segoe UI', 'Trebuchet MS', Verdana, sans-serif;
    color: #9aaebf;
}

/* --- НАВІГАЦІЯ --- */
.nav_stage {
    font-size: 13px;
    font-weight: bold;
    color: #f0a34b;
}

/* --- ТІЛО ПОВІДОМЛЕННЯ --- */
.post_bodysign {
    font-size: 14px;
    line-height: 145%;
    color: #dce4ec;
}
.detail_meta_information {
    font-size: 12px;
    color: #9aaebf;
}

/* --- ЦИТАТИ ТА КОД --- */
.quoteFrame {
    background: #16222e;
    border-left: 4px solid #f0a34b;
    border-top: 1px solid #2c4a6e;
    border-right: 1px solid #2c4a6e;
    border-bottom: 1px solid #2c4a6e;
    color: #bcd0e0;
    font-size: 13px;
    line-height: 130%;
    padding: 10px 14px;
    border-radius: 0 12px 12px 0;
    margin: 10px 0;
}
.code_segmentbox {
    background: #0f1a24;
    border: 1px solid #2c4a6e;
    color: #7bc87b;
    font: 13px 'Courier New', 'Fira Code', Courier, monospace;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

/* --- ПОМИЛКИ --- */
.errorline {
    background: #3a1a2a;
    border: 1px solid #f0a34b;
    border-radius: 8px;
    color: #f0a34b;
    padding: 8px;
}

/* --- ФОРМИ ТА ПОЛЯ --- */
form {
    display: inline;
}
input, select, textarea {
    background: #16222e;
    border: 1px solid #2c4a6e;
    border-radius: 8px;
    font: 13px 'Roboto', Verdana, Arial, Helvetica, sans-serif;
    color: #e0e6ed;
    padding: 6px 10px;
    transition: 0.2s;
}
input:focus, textarea:focus, select:focus {
    border-color: #f0a34b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(240,163,75,0.2);
}
input.post, textarea.post {
    background: #1a2a38;
    border: 1px solid #2c4a6e;
}
input.clickableBtn, input.liteoption, .fakebut {
    border: 1px solid #f0a34b;
    background: #1e3a5f;
    color: #f0a34b;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    padding: 6px 14px;
}
input.clickableBtn:hover, input.main_configbar:hover, input.liteoption:hover {
    background: #f0a34b;
    color: #0f1a24;
    border-color: #f0a34b;
}
input.catclickableBtn {
    border: 1px solid #2c4a6e;
    background: #1e3a5f;
    color: #f0a34b;
    font-size: 12px;
    border-radius: 6px;
}
input.main_configbar {
    border: 1px solid #f0a34b;
    background: #1e3a5f;
    font-size: 13px;
    font-weight: bold;
    color: #f0a34b;
}

/* --- КНОПКИ-ПОСИЛАННЯ --- */
a.but, a.but:hover, a.but:visited {
    color: #f0a34b;
    text-decoration: none;
}

/* --- ХЕЛПЛІНІЯ --- */
.helpline {
    border: 0;
    font-size: 12px;
    background: #1a2a38;
    color: #9aaebf;
}

/* --- АДМІН/МОДЕРАТОР --- */
.admin, .mod {
    font-size: 13px;
    font-weight: bold;
}
.admin, a.admin, a.admin:visited {
    color: #f0a34b;
}
.mod, a.mod, a.mod:visited {
    color: #7bc87b;
}
a.admin:hover, a.mod:hover {
    color: #ffc878;
}

/* --- ЗОБРАЖЕННЯ --- */
img {
    border: 0;
}

/* --- СТИЛІ ДЛЯ СКРІНІВ ТА ТАБІВ (збереження оригінальних класів) --- */
.tt12bkg { background: #2c4a6e; height: 12px; width: 100%; }
.tb12bkg { background: #2c4a6e; height: 12px; width: 100%; }
.ttb { width: 100%; }
.scrntbkg, .scrnbbkg, .scrntbkg, .scrnbbkg { background: #1e3a5f; height: 14px; width: 100%; }
.scrnlbkg, .scrnrbkg { width: 14px; background: #1a2a38; }
.scrn { width: 100%; text-align: center; }
td.scrnm { background: #16222e; }
.postbkg { background: url(tabblank.gif) repeat-y; height: 20px; }

/* --- НАВІГАЦІЙНІ КНОПКИ СТОРІНОК (PG BUTT) --- */
.paging_nav_clickableBtn a {
    font-family: 'Roboto', Verdana, sans-serif;
    padding: 4px 12px;
    text-decoration: none;
    border: 1px solid #2c4a6e;
    background: #1e3a5f;
    padding: 4px 10px;
    margin: 0 3px;
    border-radius: 20px;
    color: #f0a34b;
    transition: 0.2s;
}
.paging_nav_clickableBtn a:hover {
    background: #f0a34b;
    color: #0f1a24;
    border-color: #f0a34b;
    text-decoration: none;
}

/* --- QR-CODE --- */
#qr img {
    width: 40px;
    height: 40px;
    position: fixed;
    right: 16px;
    bottom: 16px;
    top: auto;
    border: 1px solid #f0a34b;
    padding: 3px;
    background: #1a2a38;
    border-radius: 12px;
    transition: 0.2s;
}
#qr img:hover {
    width: 200px;
    height: 200px;
    z-index: 100;
    padding: 4px;
    border-radius: 16px;
    right: 10px;
    bottom: 10px;
}

/* --- АВАТАР ГОСТЯ --- */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(145deg, #1e3a5f, #163049);
    color: #f0a34b;
    font-size: 52px;
    display: table-cell;
    border-radius: 24px;
    position: relative;
    vertical-align: middle;
    border: 2px solid #f0a34b;
    font-weight: bold;
}

/* --- МЕНЮ АДМІНКИ (NAV8) --- */
#nav_stage8, #nav_stage8 ul {
    background: #1a2a38;
    border-radius: 12px;
}
#nav_stage8 a {
    display: block;
    padding: 8px 0;
    text-align: center;
    text-decoration: none;
    color: #f0a34b;
    font-weight: bold;
}
#nav_stage8 td:hover, #nav_stage8 li:hover {
    background: #2c4a6e;
}
#nav_stage8 ul a {
    padding: 8px 15px;
    text-align: left;
}

/* --- АНІМАЦІЯ ЗАВАНТАЖЕННЯ --- */
#cssbar-wrapper { width: 300px; height: 19px; position: absolute; left: 50%; }
#cssbar-border {
    border: 3px solid #f0a34b;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 4px 3px;
    border-radius: 20px;
}
#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
}
#cssbar-line {
    background-color: #f0a34b;
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    animation: cssbar-slide 4s steps(40) infinite;
}
@keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- АДАПТИВНІСТЬ --- */
@media (max-width: 900px) {
    body { max-width: 96%; margin: 10px auto; }
    .maintitle { font-size: 22px; }
    th, td { font-size: 13px; }
}

/* --- ДОДАТКОВІ КЛАСИ ДЛЯ СУМІСНОСТІ --- */
.copyright, a.copyright { font-size: 11px; color: #6a8aaa; }
.forum_path_link, a.forum_path_link { font-weight: bold; color: #f0a34b; }
a.forum_path_link:hover { color: #ffc878; }