﻿/* ==================== ТЕМА: ФОРУМ О ДИАБЕТЕ ==================== */
/* Основано на subLinux v2 Theme, адаптировано под медицинскую тематику */

body {
    background: #f0f7fb;
    color: #2d3748;
    font: 14px 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
    scrollbar-3dlight-color: #c5d5ea;
    scrollbar-arrow-color: #2b6cb0;
    scrollbar-darkshadow-color: #90cdf4;
    scrollbar-face-color: #d6e4f0;
    scrollbar-highlight-color: #ffffff;
    scrollbar-shadow-color: #bee3f8;
    scrollbar-track-color: #f7fafc;
}

font, th, td, p {
    font: 14px 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    color: #2d3748;
}

.genmed { font-size: 14px; }
.gensmall { font-size: 12px; color: #718096; }

/* --- Ссылки --- */
a:link, a:active, a:visited, a.postlink {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
a:hover {
    color: #e53e3e;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
a.postlink {
    border-bottom: 1px dotted #4299e1;
}

/* --- Заголовки тем --- */
.topictitle {
    font-size: 15px;
    font-weight: 600;
    color: #2c5282;
}
a.topictitle:link, a.topictitle:visited {
    color: #2c5282;
}
a.topictitle:hover {
    color: #e53e3e;
}

.name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

iframe { border: 0 }

hr {
    border: 0px solid #ffffff;
    border-top: 1px solid #cbd5e0;
    height: 0px;
    margin: 15px 0;
}

/* --- Формы --- */
form { display: inline }
input { 
    margin: 3px 0;
    padding: 6px 8px;
}
input, textarea, select {
    border: 1px solid #cbd5e0;
    color: #2d3748;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}
input.button, input.catbutton, input.liteoption, input.mainoption {
    background: linear-gradient(to bottom, #4299e1, #3182ce);
    color: white !important;
    border: 1px solid #2b6cb0;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
}
input.button:hover, input.catbutton:hover {
    background: linear-gradient(to bottom, #3182ce, #2b6cb0);
}
input.post, textarea.post, select {
    background: #ffffff;
    color: #2d3748;
}

/* --- Ячейки таблиц --- */
td.cat {
    font-weight: bold;
    letter-spacing: 0.5px;
    color: white;
    background: linear-gradient(135deg, #2b6cb0, #4c51bf);
    height: 36px;
    padding: 0 15px;
    border-radius: 6px 6px 0 0;
}
td.row1 { 
    background: #f7fafc; 
    color: #2d3748;
    padding: 10px;
}
td.row2 { 
    background: #edf2f7; 
    color: #2d3748;
    padding: 10px;
}
td.row3 { 
    background: #e2e8f0; 
    color: #2b6cb0;
    padding: 10px;
}
td.spacerow { 
    background: #cbd5e0; 
    height: 2px;
}
td.rowpic { 
    background: #f7fafc url(images/cellpic2.jpg) repeat-y;
}

/* --- Заголовки таблиц --- */
th {
    background: linear-gradient(to bottom, #4c51bf, #434190);
    color: #ebf8ff;
    font-size: 14px;
    font-weight: 600;
    height: 32px;
    white-space: nowrap;
    text-align: center;
    padding: 0 15px;
    border-radius: 4px;
}

/* --- Специальные блоки --- */
.code {
    background: #f7fafc;
    border: 1px solid #90cdf4;
    color: #2d3748;
    font: 13px 'Consolas', 'Monaco', monospace;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
}
.errorline {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
    padding: 10px;
    border-radius: 4px;
}
.bodyline {
    background: #ffffff;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.forumline {
    background: #ffffff;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}
.helpline {
    background: #e6fffa;
    border-left: 4px solid #38b2ac;
    color: #234e52;
    padding: 10px;
    border-radius: 0 4px 4px 0;
}

/* --- Заголовки --- */
.maintitle, h1 {
    font: bold 22px/130% 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    color: #2b6cb0;
    text-decoration: none;
    border-bottom: 3px solid #90cdf4;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.subtitle, h2, h3 {
    color: #4c51bf;
    font: bold 18px/150% 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    text-decoration: none;
    border-left: 4px solid #38b2ac;
    padding-left: 12px;
    margin-top: 20px;
}

.nav {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}
.postbody {
    font: 14px/160% 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    color: #2d3748;
}
.postdetails {
    color: #718096;
    font-size: 13px;
    font-style: italic;
}

.quote {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
    font: 14px/150% 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

/* ==================== СТИЛИ ДЛЯ СКРИПТА WR-FORUM ==================== */

/* 1) Кнопки пагинации */
.pgbutt a {
    font-family: 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #90cdf4;
    background: linear-gradient(to bottom, #ffffff, #f7fafc);
    margin: 2px;
    border-radius: 4px;
    color: #2b6cb0;
    font-weight: 500;
    transition: all 0.2s;
}
.pgbutt a:hover {
    background: linear-gradient(to bottom, #4299e1, #3182ce);
    color: white;
    border-color: #2b6cb0;
}

input.button, input.liteoption, .fakebut {
    border: 1px solid #2b6cb0;
    background: linear-gradient(to bottom, #4299e1, #3182ce);
    font-size: 14px;
    font-weight: 600;
    color: white !important;
}

/* 2) QR-CODE */
#qr img {
    width: 40px;
    height: 40px;
    position: fixed;
    right: 20px;
    top: 20px;
    border: 2px solid #90cdf4;
    padding: 4px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.2);
    transition: all 0.3s;
}
#qr img:hover {
    width: 180px;
    height: 180px;
    z-index: 10000;
    padding: 8px;
    border-color: #4299e1;
    box-shadow: 0 4px 20px rgba(66, 153, 225, 0.3);
}

/* 3) Аватар-заглушка */
.guestavatar {
    width: 100px;
    height: 100px;
    text-align: center;
    background: linear-gradient(135deg, #68d391, #38b2ac);
    color: white;
    font-size: 36px;
    font-weight: bold;
    display: table-cell;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 4) Навигационное меню в админке */
#nav8, #nav8 ul, #nav8 li {
    margin: 0;
    padding: 0;
    border: 0;
}
#nav8, #nav8 ul {
    background: linear-gradient(to right, #2b6cb0, #4c51bf);
    border-radius: 6px;
}
#nav8 {
    border-spacing: 0 0;
    position: relative;
    z-index: 50;
    width: 100%;
    overflow: hidden;
}
#nav8 ul {
    position: absolute;
    display: none;
    background: #434190;
    min-width: 200px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#nav8 td:hover ul {
    display: block;
}
#nav8 ul li {
    list-style: none;
    border-bottom: 1px solid #4c51bf;
}
#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: 10px 20px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: 500;
}
#nav8 ul a {
    padding: 10px 20px;
    text-align: left;
}
#nav8 td:hover, #nav8 li:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 5) Индикатор загрузки */
#cssbar-wrapper {
    width: 300px;
    height: 24px;
    position: absolute;
    left: 50%;
    top: 50%;
}
#cssbar-border {
    border: 3px solid #38b2ac;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 4px;
    border-radius: 12px;
    background: #f7fafc;
}
#cssbar-whitespace {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 8px;
}
#cssbar-line {
    background: linear-gradient(90deg, #38b2ac, #319795, #38b2ac);
    background-size: 200% 100%;
    position: absolute;
    height: 100%;
    width: 100%;
    animation: cssbar-slide 1.5s linear infinite;
}
@keyframes cssbar-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- Дополнительные медицинские акценты --- */
.important {
    background: #fffaf0;
    border-left: 4px solid #dd6b20;
    padding: 12px;
    border-radius: 0 4px 4px 0;
    margin: 10px 0;
}
.warning {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    padding: 12px;
    border-radius: 0 4px 4px 0;
    margin: 10px 0;
}
.success {
    background: #f0fff4;
    border-left: 4px solid #38a169;
    padding: 12px;
    border-radius: 0 4px 4px 0;
    margin: 10px 0;
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    body {
        max-width: 100%;
        margin: 10px;
        padding: 0 5px;
        font-size: 15px;
    }
    .bodyline {
        border-radius: 6px;
    }
    #qr img {
        width: 35px;
        height: 35px;
        right: 10px;
        top: 10px;
    }
    #qr img:hover {
        width: 150px;
        height: 150px;
    }
    .guestavatar {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
}