/* ========================================
   НОВИЙ CSS СТИЛЬ ДЛЯ ФОРУМУ "Форум застосунку 66app"
   ======================================== */

/* ===== SVG ФОНОВИЙ МАЛЮНОК В BASE64 ===== */
/* Динамічний SVG фон з мотивами мобільного додатка, цифр та технологій */

/* ===== ОСНОВНІ СТИЛІ BODY ===== */
body {
    background-color: #f0f2f7;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 900"><defs><linearGradient id="appGrad" x1="0%%" y1="0%%" x2="100%%" y2="100%%"><stop offset="0%%" style="stop-color:%236366f1;stop-opacity:0.3" /><stop offset="100%%" style="stop-color:%238b5cf6;stop-opacity:0.1" /></linearGradient></defs><rect width="1400" height="900" fill="%23f0f2f7"/><g opacity="0.08"><rect x="120" y="150" width="180" height="300" rx="20" fill="%236366f1" stroke="%234f46e5" stroke-width="2"/><rect x="140" y="170" width="140" height="60" rx="8" fill="%23c4b5fd" opacity="0.5"/><rect x="140" y="250" width="140" height="150" rx="8" fill="%23e9d5ff" opacity="0.4"/><circle cx="210" cy="430" r="25" fill="%234f46e5" opacity="0.3"/><rect x="1100" y="400" width="180" height="300" rx="20" fill="%238b5cf6" stroke="%237c3aed" stroke-width="2"/><rect x="1120" y="420" width="140" height="60" rx="8" fill="%23ddd6fe" opacity="0.5"/><rect x="1120" y="500" width="140" height="170" rx="8" fill="%23f3e8ff" opacity="0.4"/><circle cx="1190" cy="700" r="25" fill="%237c3aed" opacity="0.3"/></g><g opacity="0.12"><text x="700" y="300" font-size="120" font-weight="bold" text-anchor="middle" fill="%236366f1" opacity="0.15">66</text><path d="M 300 600 L 350 550 L 400 600 L 350 650 Z" fill="%234f46e5" opacity="0.2"/><path d="M 1000 200 L 1050 150 L 1100 200 L 1050 250 Z" fill="%238b5cf6" opacity="0.2"/><circle cx="200" cy="800" r="40" fill="%234f46e5" opacity="0.15"/><circle cx="1200" cy="150" r="50" fill="%238b5cf6" opacity="0.15"/></g><g opacity="0.06"><path d="M 400 100 Q 450 50 500 100 Q 450 150 400 100" fill="%236366f1"/><path d="M 900 700 Q 950 650 1000 700 Q 950 750 900 700" fill="%238b5cf6"/><path d="M 300 400 L 500 400 M 300 450 L 500 450 M 300 500 L 500 500" stroke="%234f46e5" stroke-width="2"/></g></svg>');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0px;
    padding: 0px;
    scrollbar-arrow-color: #6366f1;
    scrollbar-face-color: #f0f2f7;
    scrollbar-track-color: #e5e7eb;
    scrollbar-highlight-color: #ffffff;
    scrollbar-3dlight-color: #c7d2fe;
    scrollbar-shadow-color: #a5b4fc;
    scrollbar-darkshadow-color: #818cf8;
}

/* ===== ОСНОВНІ ЕЛЕМЕНТИ ===== */
font, th, td, p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* ===== ПОСИЛАННЯ ===== */
a {
    text-decoration: none;
    color: #6366f1;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:visited {
    text-decoration: none;
    color: #4f46e5;
}

a:hover, a:active {
    text-decoration: underline;
    color: #ec4899;
    font-weight: 600;
}

/* ===== ГОРИЗОНТАЛЬНА ЛІНІЯ ===== */
hr {
    height: 0px;
    border: solid 2px #e0e7ff;
    border-top-width: 1px;
    margin: 12px 0;
    opacity: 0.8;
}

/* ===== ЗОБРАЖЕННЯ ===== */
img {
    border: 0px;
    max-width: 100%;
    height: auto;
}

/* ===== ФОРМИ ===== */
form {
    display: inline;
    margin: 0;
}

/* ========== ТАБЛИЦІ ========== */

/* Основна таблиця форуму */
table.lineDock-x8 {
    background-color: #ffffff;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

table.lineDock-x8:hover {
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: #c7d2fe;
}

/* Навігаційна таблиця */
table.nav_flow {
    background-color: #f8fafc;
    background-image: none;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    height: 28px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(99, 102, 241, 0.08);
}

table.nav_flow:hover {
    border: 2px solid #c7d2fe;
    background-color: #f0f4ff;
}

/* ===== РЯДКИ ТАБЛИЦІ ===== */
.row, .row_formA, .level_beta {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f4ff;
    transition: background-color 0.2s ease;
}

.row:hover, .row_formA:hover, .level_beta:hover {
    background-color: #f8faff;
}

.grid_row_tertiary {
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.grid_row_tertiary:hover {
    background-color: #f0f4ff;
}

/* ===== ЗАГОЛОВКИ ТАБЛИЦІ ===== */
th, td.th {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    background-color: #6366f1;
    background-image: linear-gradient(to bottom, #818cf8, #4f46e5);
    height: 28px;
    padding: 6px 12px;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.4px;
}

/* ===== КАТЕГОРІЙНІ ЗАГОЛОВКИ ===== */
td.cat, td.category_intro, td.category_leftprime, td.rowpic, td.catSides, td.category_rightcore, td.catBottom {
    color: #4f46e5;
    font-size: 13px;
    font-weight: 600;
    background-color: #f3f4f6;
    background-image: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    height: 26px;
    padding: 6px 12px;
    border: 2px solid #e0e7ff;
    border-radius: 4px;
}

/* ===== РОЗМІРИ ШРИФТУ ===== */
.gen {
    font-size: 14px;
    color: #374151;
}

.text_normal {
    font-size: 13px;
    color: #6b7280;
}

.smallDesc {
    font-size: 12px;
    color: #9ca3af;
}

/* ===== НАВІГАЦІЙНІ СТИЛІ ===== */
.nav_flow {
    font-weight: 600;
    font-size: 13px;
    color: #6366f1;
}

.nav_flow a, .nav_flow a:visited {
    text-decoration: none;
    color: #6366f1;
    font-weight: 500;
}

.nav_flow a:hover, .nav_flow a:active {
    text-decoration: underline;
    color: #ec4899;
}

/* ===== ПОСИЛАННЯ ФОРУМУ ===== */
.forumTitleLink {
    font-weight: 600;
    font-size: 14px;
    color: #4f46e5;
}

a.forumTitleLink, a.forumTitleLink:visited {
    text-decoration: none;
    color: #4f46e5;
    transition: all 0.3s ease;
}

a.forumTitleLink:hover, a.forumTitleLink:active {
    text-decoration: underline;
    color: #ec4899;
    font-size: 14.2px;
}

/* ===== ФОРМИ ВВОДУ ===== */
input {
    text-indent: 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

input, textarea, select {
    color: #374151;
    font: normal 14px -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial, sans-serif;
}

input.post, textarea.post, select {
    background-color: #ffffff;
    border: 2px solid #e0e7ff;
    color: #374151;
    padding: 8px 12px;
}

input.post:focus, textarea.post:focus, select:focus {
    border-color: #6366f1;
    background-color: #f8faff;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
    outline: none;
}

input.post {
    height: 24px;
}

/* ===== КНОПКИ ===== */
input.buttonActionLink {
    background-color: #6366f1;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial, sans-serif;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

input.buttonActionLink:hover {
    background-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

input.buttonActionLink:active {
    transform: translateY(0px);
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.2);
}

/* ===== ОСНОВНІ І ЛЕГШІ ОПЦІЇ ===== */
input.main_control_option {
    background-color: #ffffff;
    font-weight: 600;
    border: 2px solid #6366f1;
    color: #6366f1;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.main_control_option:hover {
    background-color: #f8faff;
    border-color: #4f46e5;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

input.liteoption {
    background-color: #ffffff;
    font-weight: normal;
    border: 1px solid #e0e7ff;
    color: #6b7280;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.liteoption:hover {
    background-color: #f8faff;
    border-color: #6366f1;
}

/* ===== SELECT ОПЦІЇ ===== */
select optgroup {
    background-color: #e5e7eb;
    color: #4f46e5;
    font-weight: 600;
}

select option, select optgroup option {
    background-color: #ffffff;
    color: #374151;
}

select option:checked {
    background-color: #6366f1;
    color: #ffffff;
}

/* ===== КОД ===== */
.codeBlock {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #4f46e5;
    background-color: #f8faff;
    border: 2px solid #e0e7ff;
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    line-height: 1.5;
}

/* ===== ЦИТАТИ ===== */
.citationBox {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial, sans-serif;
    font-size: 13px;
    color: #1f2937;
    line-height: 1.6;
    background-color: #f8fafc;
    border-left: 4px solid #ec4899;
    border: 2px solid #e5e7eb;
    border-left: 4px solid #ec4899;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
    font-style: italic;
}

/* ===== ТІЛО ПОСТУ ===== */
.post_bodystage {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.post_bodystage a, .post_bodystage a:visited {
    text-decoration: underline;
    color: #6366f1;
}

.post_bodystage a:hover, .post_bodystage a:active {
    text-decoration: underline;
    color: #ec4899;
}

/* ===== ІМЯ КОРИСТУВАЧА ===== */
.username_display {
    font-weight: 600;
    font-size: 13px;
    color: #4f46e5;
}

.username_display a, .username_display a:visited {
    text-decoration: none;
    color: #4f46e5;
}

.username_display a:hover, .username_display a:active {
    text-decoration: underline;
    color: #ec4899;
}

/* ===== ДЕТАЛІ ПОСТУ ===== */
.postAttr {
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.5;
}

/* ===== РЯДОК ПРОСТОРУ ===== */
td.spacerow {
    background-color: #f0f4ff;
    background-image: none;
    height: 4px;
    padding: 0px;
    border: none;
}

/* ===== ЗАГОЛОВКИ КАТЕГОРІЙ ===== */
.catLabel {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #4f46e5;
    text-transform: uppercase;
}

a.catLabel {
    text-decoration: none;
    color: #4f46e5;
}

a.catLabel:hover {
    text-decoration: underline;
    color: #ec4899;
}

/* ===== ОСНОВНІ ЗАГОЛОВКИ ===== */
.maintitle, h1, h2 {
    font-weight: 700;
    font-size: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Verdana, Arial, sans-serif;
    text-decoration: none;
    line-height: 120%;
    color: #4f46e5;
    margin: 10px 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

/* ===== СПЕЦІАЛЬНІ СТИЛІ ДЛЯ WR-FORUM ===== */

/* Кнопки навігації */
.pageNavLink a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 7px 16px;
    text-decoration: none;
    border: 2px solid #6366f1;
    background: linear-gradient(to bottom, #f0f4ff, #e5e7eb);
    color: #4f46e5;
    font-weight: 600;
    margin: 5px 3px 0 0;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.pageNavLink a:hover {
    background: linear-gradient(to bottom, #6366f1, #4f46e5);
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

/* Фальшива кнопка */
.fakebut {
    border: 2px solid #6366f1;
    font-size: 13px;
    font-weight: 600;
    background-color: #f8faff;
    color: #4f46e5;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fakebut:hover {
    background-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* QR-CODE */
#qr img {
    width: 35px;
    height: 35px;
    position: fixed;
    right: 15px;
    top: 15px;
    border: 3px solid #6366f1;
    padding: 3px;
    background-color: white;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

#qr img:hover {
    width: 250px;
    height: 250px;
    z-index: 100;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    border-color: #ec4899;
}

/* Аватар за замовчуванням */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    color: #4c1d95;
    font-size: 48px;
    font-weight: 700;
    display: table-cell;
    border-radius: 14px;
    position: relative;
    vertical-align: middle;
    border: 3px solid #6366f1;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* Навігаційне МЕНЮ В АДМИНЦІ */
#nav_flow8, #nav_flow8 ul, #nav_flow8 li {
    margin: 0;
    padding: 0;
    border: 0;
}

#nav_flow8, #nav_flow8 ul {
    background: #f8faff;
}

#nav_flow8 {
    border-spacing: 0 0;
    position: relative;
    z-index: 50;
    width: 100%;
    border-radius: 8px;
    border: 2px solid #e0e7ff;
}

#nav_flow8 ul {
    position: absolute;
    display: none;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

#nav_flow8 td:hover ul {
    display: block;
}

#nav_flow8 ul li {
    list-style: none;
}

#nav_flow8 .right {
    direction: rtl;
}

#nav_flow8 .right ul {
    right: 0;
}

#nav_flow8 .right li {
    direction: ltr;
}

#nav_flow8 a {
    display: block;
    padding: 8px 0;
    text-align: center;
    text-decoration: none;
    color: #4f46e5;
    transition: all 0.3s ease;
}

#nav_flow8 ul a {
    padding: 8px 20px;
    text-align: left;
}

#nav_flow8 td:hover, #nav_flow8 li:hover {
    background: #e5e7eb;
    border-radius: 8px;
}

#nav_flow8 td {
    text-align: center;
}

#nav_flow8 a:hover {
    color: #ec4899;
    font-weight: 700;
}

/* Стиль для блока завантаження */
#cssbar-wrapper {
    width: 300px;
    height: 22px;
    position: absolute;
    left: 50%;
}

#cssbar-border {
    border: 3px solid #6366f1;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 4px 3px;
    border-radius: 6px;
    background-color: #f8faff;
}

#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 4px;
}

#cssbar-line {
    background: linear-gradient(to right, #6366f1, #ec4899, #6366f1);
    position: absolute;
    height: 100%;
    width: 100%;
    animation: cssbar-slide 4s steps(40) infinite;
    border-radius: 4px;
    -o-animation: cssbar-slide 4s steps(40) infinite;
    -ms-animation: cssbar-slide 4s steps(40) infinite;
    -webkit-animation: cssbar-slide 4s steps(40) infinite;
    -moz-animation: cssbar-slide 4s steps(40) infinite;
}

@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%; }
}

/* ===== АДАПТИВНІСТЬ ===== */
@media (max-width: 768px) {
    font, th, td, p {
        font-size: 13px;
    }

    .maintitle, h1, h2 {
        font-size: 20px;
    }

    th, td.th {
        font-size: 12px;
        height: 24px;
        padding: 5px 8px;
    }

    .post_bodystage {
        font-size: 13px;
    }

    input, textarea, select {
        font-size: 13px;
    }

    input.buttonActionLink {
        padding: 7px 14px;
        font-size: 12px;
    }

    .guestavatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .maintitle, h1, h2 {
        font-size: 18px;
    }

    table.lineDock-x8 {
        border-radius: 8px;
        border-width: 2px;
    }

    th, td.th {
        font-size: 11px;
        padding: 4px 6px;
    }

    .post_bodystage {
        font-size: 12px;
    }

    input.buttonActionLink {
        padding: 6px 12px;
        font-size: 11px;
    }

    .guestavatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    #qr img:hover {
        width: 190px;
        height: 190px;
    }

    table.lineDock-x8 {
        border-radius: 8px;
    }
}