/* ========================================
   НОВИЙ CSS СТИЛЬ ДЛЯ ФОРУМУ "Форум про життя :)"
   ======================================== */

/* ===== SVG ФОНОВИЙ МАЛЮНОК В BASE64 ===== */
/* Динамічний SVG фон з мотивами живих листочків, хмарок та сердечок */

/* ===== ОСНОВНІ СТИЛІ BODY ===== */
body {
    background-color: #f8fbf6;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="skyGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%%" style="stop-color:%23e8f5f0;stop-opacity:1" /><stop offset="100%%" style="stop-color:%23f8fbf6;stop-opacity:1" /></linearGradient></defs><rect width="1200" height="800" fill="url(%23skyGrad)"/><circle cx="100" cy="80" r="60" fill="%23ffd89b" opacity="0.3"/><path d="M 200 150 Q 220 140 240 150 Q 220 160 200 150" fill="%23fff9e6" opacity="0.4"/><path d="M 300 120 Q 330 100 360 120 Q 330 150 300 120" fill="%23fff9e6" opacity="0.35"/><path d="M 50 200 Q 80 180 110 200 Q 80 230 50 200" fill="%23fff9e6" opacity="0.3"/><g opacity="0.15"><path d="M 150 300 Q 160 280 180 300 Q 170 320 150 300" fill="%2388cc88"/><path d="M 180 320 Q 195 305 220 320 Q 205 345 180 320" fill="%2388cc88"/><path d="M 120 350 Q 130 330 150 350 Q 140 370 120 350" fill="%2388cc88"/><path d="M 900 250 Q 920 230 950 250 Q 930 280 900 250" fill="%2388cc88"/><path d="M 1000 280 Q 1015 265 1040 280 Q 1025 305 1000 280" fill="%2388cc88"/></g><g opacity="0.2"><circle cx="300" cy="600" r="3" fill="%23ff69b4"/><circle cx="350" cy="620" r="2.5" fill="%23ff69b4"/><circle cx="280" cy="650" r="2" fill="%23ff69b4"/><circle cx="950" cy="550" r="3" fill="%23ff69b4"/><circle cx="1050" cy="600" r="2.5" fill="%23ff69b4"/><circle cx="900" cy="650" r="2" fill="%23ff69b4"/></g><path d="M 600 100 Q 650 80 700 100 Q 675 130 650 125 Q 625 130 600 100" fill="%23fff9e6" opacity="0.25"/><path d="M 750 200 Q 800 180 850 200 Q 820 240 750 200" fill="%23fff9e6" opacity="0.2"/></svg>');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0px;
    padding: 0px;
    scrollbar-arrow-color: #4db88e;
    scrollbar-face-color: #e8f5f0;
    scrollbar-track-color: #f0f8f5;
    scrollbar-highlight-color: #ffffff;
    scrollbar-3dlight-color: #c8e6dc;
    scrollbar-shadow-color: #e0ede8;
    scrollbar-darkshadow-color: #a8d9cc;
}

/* ===== ОСНОВНІ ЕЛЕМЕНТИ ===== */
font, th, td, p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* ===== ПОСИЛАННЯ ===== */
a {
    text-decoration: none;
    color: #3d9970;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:visited {
    text-decoration: none;
    color: #2d7a5c;
}

a:hover, a:active {
    text-decoration: underline;
    color: #ff6b9d;
    font-weight: 600;
}

/* ===== ГОРИЗОНТАЛЬНА ЛІНІЯ ===== */
hr {
    height: 0px;
    border: solid 2px #c8e6dc;
    border-top-width: 1px;
    margin: 10px 0;
}

/* ===== ЗОБРАЖЕННЯ ===== */
img {
    border: 0px;
    max-width: 100%;
    height: auto;
}

/* ===== ФОРМИ ===== */
form {
    display: inline;
    margin: 0;
}

/* ========== ТАБЛИЦІ ========== */

/* Основна таблиця форуму */
table.forumline {
    background-color: #ffffff;
    border: 2px solid #c8e6dc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(61, 153, 112, 0.08);
    overflow: hidden;
}

table.forumline:hover {
    box-shadow: 0 6px 16px rgba(61, 153, 112, 0.12);
    transition: all 0.3s ease;
}

/* Навігаційна таблиця */
table.nav {
    background-color: #f0f8f5;
    background-image: none;
    border: 1px solid #d4ede5;
    border-radius: 6px;
    height: 28px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

table.nav:hover {
    border: 1px solid #4db88e;
    background-color: #e8f5f0;
}

/* ===== РЯДКИ ТАБЛИЦІ ===== */
.row, .row1, .row2 {
    background-color: #ffffff;
    border-bottom: 1px solid #e8f0ed;
    transition: background-color 0.2s ease;
}

.row:hover, .row1:hover, .row2:hover {
    background-color: #f8fdf9;
}

.row3 {
    background-color: #f5fafc;
    border-bottom: 1px solid #e0ebe8;
}

.row3:hover {
    background-color: #eef6f4;
}

/* ===== ЗАГОЛОВКИ ТАБЛИЦІ ===== */
th, td.th {
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    background-color: #4db88e;
    background-image: linear-gradient(to bottom, #5ec999, #40a876);
    height: 28px;
    padding: 6px 12px;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* ===== КАТЕГОРІЙНІ ЗАГОЛОВКИ ===== */
td.cat, td.catHead, td.catLeft, td.rowpic, td.catSides, td.catRight, td.catBottom {
    color: #2d5f47;
    font-size: 13px;
    font-weight: bold;
    background-color: #dff2ec;
    background-image: linear-gradient(to bottom, #e8f5f0, #d4ede5);
    height: 26px;
    padding: 6px 12px;
    border: 1px solid #c8e6dc;
}

/* ===== РОЗМІРИ ШРИФТУ ===== */
.gen {
    font-size: 14px;
    color: #333333;
}

.genmed {
    font-size: 13px;
    color: #555555;
}

.gensmall {
    font-size: 12px;
    color: #777777;
}

/* ===== НАВІГАЦІЙНІ СТИЛІ ===== */
.nav {
    font-weight: bold;
    font-size: 13px;
    color: #3d9970;
}

.nav a, .nav a:visited {
    text-decoration: none;
    color: #3d9970;
    font-weight: 500;
}

.nav a:hover, .nav a:active {
    text-decoration: underline;
    color: #ff6b9d;
}

/* ===== ПОСИЛАННЯ ФОРУМУ ===== */
.forumlink {
    font-weight: bold;
    font-size: 14px;
    color: #2d5f47;
}

a.forumlink, a.forumlink:visited {
    text-decoration: none;
    color: #2d5f47;
    transition: all 0.3s ease;
}

a.forumlink:hover, a.forumlink:active {
    text-decoration: underline;
    color: #ff6b9d;
    font-size: 14.5px;
}

/* ===== ФОРМИ ВВОДУ ===== */
input {
    text-indent: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

input, textarea, select {
    color: #333333;
    font: normal 14px 'Segoe UI', Verdana, Arial, sans-serif;
}

input.post, textarea.post, select {
    background-color: #ffffff;
    border: 1.5px solid #c8e6dc;
    color: #333333;
    padding: 6px 8px;
}

input.post:focus, textarea.post:focus, select:focus {
    border-color: #4db88e;
    background-color: #f8fdf9;
    box-shadow: 0 0 4px rgba(77, 184, 142, 0.2);
}

input.post {
    height: 24px;
}

/* ===== КНОПКИ ===== */
input.button {
    background-color: #4db88e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Segoe UI', Verdana, Arial, sans-serif;
    border: none;
    border-radius: 4px;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(61, 153, 112, 0.2);
}

input.button:hover {
    background-color: #3d9970;
    box-shadow: 0 4px 10px rgba(61, 153, 112, 0.3);
    transform: translateY(-1px);
}

input.button:active {
    transform: translateY(0px);
    box-shadow: 0 1px 4px rgba(61, 153, 112, 0.2);
}

/* ===== ОСНОВНІ І ЛЕГШІ ОПЦІЇ ===== */
input.mainoption {
    background-color: #ffffff;
    font-weight: bold;
    border: 1.5px solid #4db88e;
    color: #2d5f47;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.mainoption:hover {
    background-color: #e8f5f0;
    border-color: #3d9970;
}

input.liteoption {
    background-color: #ffffff;
    font-weight: normal;
    border: 1px solid #d4ede5;
    color: #555555;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.liteoption:hover {
    background-color: #f5fafc;
    border-color: #4db88e;
}

/* ===== SELECT ОПЦІЇ ===== */
select optgroup {
    background-color: #dff2ec;
    color: #2d5f47;
    font-weight: bold;
}

select option, select optgroup option {
    background-color: #ffffff;
    color: #333333;
}

select option:checked {
    background-color: #4db88e;
    color: #ffffff;
}

/* ===== КОД ===== */
.code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #1a4d2e;
    background-color: #f0f8f5;
    border: 1px solid #c8e6dc;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
    line-height: 1.5;
}

/* ===== ЦИТАТИ ===== */
.quote {
    font-family: 'Segoe UI', Verdana, Arial, sans-serif;
    font-size: 13px;
    color: #3d5a4a;
    line-height: 1.6;
    background-color: #f5fafc;
    border-left: 4px solid #4db88e;
    border: 1px solid #d4ede5;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0;
    font-style: italic;
}

/* ===== ТІЛО ПОСТУ ===== */
.postbody {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
}

.postbody a, .postbody a:visited {
    text-decoration: underline;
    color: #3d9970;
}

.postbody a:hover, .postbody a:active {
    text-decoration: underline;
    color: #ff6b9d;
}

/* ===== ІМЯ КОРИСТУВАЧА ===== */
.name {
    font-weight: bold;
    font-size: 13px;
    color: #2d5f47;
}

.name a, .name a:visited {
    text-decoration: none;
    color: #2d5f47;
}

.name a:hover, .name a:active {
    text-decoration: underline;
    color: #ff6b9d;
}

/* ===== ДЕТАЛІ ПОСТУ ===== */
.postdetails {
    color: #888888;
    font-size: 11px;
    line-height: 1.5;
}

/* ===== РЯДОК ПРОСТОРУ ===== */
td.spacerow {
    background-color: #e8f5f0;
    background-image: none;
    height: 4px;
    padding: 0px;
    border: none;
}

/* ===== ЗАГОЛОВКИ КАТЕГОРІЙ ===== */
.cattitle {
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #2d5f47;
    text-transform: uppercase;
}

a.cattitle {
    text-decoration: none;
    color: #2d5f47;
}

a.cattitle:hover {
    text-decoration: underline;
    color: #ff6b9d;
}

/* ===== ОСНОВНІ ЗАГОЛОВКИ ===== */
.maintitle, h1, h2 {
    font-weight: bold;
    font-size: 24px;
    font-family: 'Trebuchet MS', 'Segoe UI', Verdana, Arial, sans-serif;
    text-decoration: none;
    line-height: 120%;
    color: #2d5f47;
    margin: 10px 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

/* ===== СПЕЦІАЛЬНІ СТИЛІ ДЛЯ WR-FORUM ===== */

/* Кнопки навігації */
.pgbutt a {
    font-family: 'Segoe UI', Verdana, sans-serif;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #4db88e;
    background: linear-gradient(to bottom, #e8f5f0, #dff2ec);
    color: #2d5f47;
    font-weight: 600;
    margin: 5px 2px 0 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.pgbutt a:hover {
    background: linear-gradient(to bottom, #4db88e, #3d9970);
    color: #ffffff;
    border-color: #2d5f47;
}

/* Фальшива кнопка */
.fakebut {
    border: 1px solid #4db88e;
    font-size: 13px;
    font-weight: bold;
    background-color: #e8f5f0;
    color: #2d5f47;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.fakebut:hover {
    background-color: #4db88e;
    color: #ffffff;
}

/* QR-CODE */
#qr img {
    width: 35px;
    height: 35px;
    position: fixed;
    right: 15px;
    top: 15px;
    border: 2px solid #4db88e;
    padding: 3px;
    background-color: white;
    border-radius: 6px;
    transition: all 0.4s ease;
    z-index: 99;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#qr img:hover {
    width: 220px;
    height: 220px;
    z-index: 100;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(61, 153, 112, 0.3);
}

/* Аватар за замовчуванням */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(135deg, #ffc75f, #ffb347);
    color: #4d2e00;
    font-size: 48px;
    font-weight: bold;
    display: table-cell;
    border-radius: 12px;
    position: relative;
    vertical-align: middle;
    border: 2px solid #ffb347;
    box-shadow: 0 4px 10px rgba(255, 179, 71, 0.2);
}

/* Навігаційне МЕНЮ В АДМИНЦІ */
#nav8, #nav8 ul, #nav8 li {
    margin: 0;
    padding: 0;
    border: 0;
}

#nav8, #nav8 ul {
    background: #f8fbf6;
}

#nav8 {
    border-spacing: 0 0;
    position: relative;
    z-index: 50;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #c8e6dc;
}

#nav8 ul {
    position: absolute;
    display: none;
    border: 1px solid #c8e6dc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#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: 8px 0;
    text-align: center;
    text-decoration: none;
    color: #2d5f47;
    transition: all 0.3s ease;
}

#nav8 ul a {
    padding: 8px 18px;
    text-align: left;
}

#nav8 td:hover, #nav8 li:hover {
    background: #e8f5f0;
    border-radius: 4px;
}

#nav8 td {
    text-align: center;
}

#nav8 a:hover {
    color: #ff6b9d;
    font-weight: bold;
}

/* Стиль для блока завантаження */
#cssbar-wrapper {
    width: 300px;
    height: 22px;
    position: absolute;
    left: 50%;
}

#cssbar-border {
    border: 3px solid #4db88e;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 4px 3px;
    border-radius: 4px;
    background-color: #f5fafc;
}

#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
}

#cssbar-line {
    background-color: #4db88e;
    position: absolute;
    height: 100%;
    width: 100%;
    animation: cssbar-slide 4s steps(40) infinite;
    border-radius: 2px;
    -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;
    }

    .postbody {
        font-size: 13px;
    }

    input, textarea, select {
        font-size: 13px;
    }

    input.button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .maintitle, h1, h2 {
        font-size: 18px;
    }

    table.forumline {
        border-radius: 4px;
    }

    th, td.th {
        font-size: 11px;
        padding: 4px 6px;
    }

    .postbody {
        font-size: 12px;
    }

    input.button {
        padding: 5px 10px;
        font-size: 11px;
    }
}