﻿/* ===== ПРОФЕССИОНАЛЬНЫЙ МЕДИЦИНСКИЙ СТИЛЬ ДЛЯ ФОРУМА ===== */
/* Чистый, стерильный дизайн для медицинских обсуждений */

/* ---- Фон страницы (стерильный белый с голубым оттенком) ---- */
BODY {
    FONT-SIZE: 14px;
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    SCROLLBAR-FACE-COLOR: #e8f4f8;
    BACKGROUND: linear-gradient(135deg, #f8fcff 0%, #f0f9ff 30%, #e8f4f8 70%, #ffffff 100%);
    PADDING-BOTTOM: 0px;
    MARGIN: 10px;
    FONT: 13px 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
    SCROLLBAR-SHADOW-COLOR: #c2e0f0;
    COLOR: #2c3e50;
    SCROLLBAR-3DLIGHT-COLOR: #c2e0f0;
    SCROLLBAR-ARROW-COLOR: #3498db;
    PADDING-TOP: 0px;
    SCROLLBAR-TRACK-COLOR: #f0f9ff;
    SCROLLBAR-DARKSHADOW-COLOR: #a0d0e8;
    line-height: 1.6;
    background-attachment: fixed;
}

/* ---- Профессиональная типография ---- */
FONT, TH, TD { 
    FONT: 14px 'Segoe UI', 'Tahoma', 'Arial', sans-serif; 
    COLOR: #34495e;
}
P { 
    FONT: 14px 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
}
.gensmall { 
    FONT-SIZE: 12px; 
    color: #7f8c8d;
    font-style: italic;
}
TD.genmed, .genmed { 
    FONT-SIZE: 13px;
    font-weight: 500;
}
.explaintitle { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 13px; 
    COLOR: #3498db;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

/* ---- Ссылки (как медицинские термины) ---- */
A:link, A:active, A:visited, A.postlink { 
    COLOR: #2980b9;
    TEXT-DECORATION: none;
    font-weight: 600;
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.2s ease;
}
A:hover { 
    COLOR: #e74c3c;
    TEXT-DECORATION: none;
    border-bottom: 2px solid #e74c3c;
}

/* ---- Заголовки тем (клинические случаи) ---- */
.topictitle { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 14px; 
    COLOR: #2c3e50;
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    letter-spacing: 0.2px;
}
A.topictitle:link, A.topictitle:visited { 
    COLOR: #2c3e50;
    text-decoration: none;
}
A.topictitle:hover { 
    COLOR: #e74c3c;
}
.name { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 13px; 
    COLOR: #3498db;
}

/* ---- Разделители (как линии на медицинской карте) ---- */
HR { 
    BORDER: none; 
    HEIGHT: 2px; 
    BACKGROUND: linear-gradient(90deg, 
        transparent, 
        #3498db, 
        transparent
    );
    MARGIN: 20px 0;
}

/* ---- Стили для таблиц и категорий (медицинские разделы) ---- */
/* Шапки категорий - синие панели как в больничных системах */
TD.cat, TD.catHead, TD.catSides, TD.catLeft, TD.catRight, TD.catBottom {
    FONT-WEIGHT: bold;
    BACKGROUND: linear-gradient(to bottom, #3498db 0%, #2980b9 50%, #1c6ea4 100%);
    COLOR: white;
    TEXT-INDENT: 12px;
    LETTER-SPACING: 0.5px;
    HEIGHT: 38px;
    font-size: 14px;
    border: none;
    border-radius: 8px 8px 0 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    box-shadow: 
        0 3px 6px rgba(52, 152, 219, 0.2);
    border-bottom: 3px solid #1c6ea4;
    position: relative;
}
TD.cat:before, TD.catHead:before {
    content: "⨯";
    position: absolute;
    right: 15px;
    color: rgba(255,255,255,0.3);
    font-size: 20px;
    font-weight: bold;
}

/* ---- Чередование строк (как строки в медицинской таблице) ---- */
.row1 { 
    BACKGROUND: #ffffff;
    border-bottom: 1px solid #ecf0f1;
}
.row2 { 
    BACKGROUND: #f8fcff;
    border-bottom: 1px solid #ecf0f1;
}
.row3 { 
    BACKGROUND: #f0f9ff;
    border-bottom: 1px solid #ecf0f1;
}
.helpline { 
    BACKGROUND: #e8f4f8;
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    font-style: italic;
    color: #2c3e50;
}
TD.spacerow { 
    BACKGROUND: transparent; 
    height: 10px; 
}
TD.rowpic { 
    BACKGROUND: #f0f9ff;
    border-left: 4px solid #3498db;
}

/* ---- Заголовки колонок таблиц (клинические параметры) ---- */
TH {
    PADDING: 10px;
    FONT-WEIGHT: bold;
    FONT-SIZE: 13px;
    BACKGROUND: linear-gradient(to bottom, #5dade2, #3498db);
    COLOR: white;
    WHITE-SPACE: nowrap;
    HEIGHT: 34px;
    TEXT-ALIGN: center;
    border: none;
    border-radius: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    box-shadow: 
        0 2px 4px rgba(52, 152, 219, 0.2);
    margin: 4px;
}

/* ---- Основные контейнеры (медицинские карты) ---- */
.bodyline {
    BORDER: 2px solid #d6eaf8;
    BACKGROUND: #ffffff;
    border-radius: 10px;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.05);
    padding: 2px;
    margin: 10px auto;
    max-width: 1200px;
    position: relative;
}
.forumline {
    BORDER: 2px solid #e8f4f8;
    BACKGROUND: white;
    border-radius: 8px;
}

/* ---- Главные заголовки (клинические протоколы) ---- */
.maintitle, H1 {
    FONT: bold 26px/130% 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    COLOR: #2c3e50;
    TEXT-DECORATION: none;
    letter-spacing: 0.5px;
    margin: 15px 0;
    position: relative;
    padding-left: 40px;
}
.maintitle:before, H1:before {
    content: "+";
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 32px;
    font-weight: normal;
}
H2, .subtitle {
    FONT: bold 22px/150% 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    COLOR: #3498db;
    TEXT-DECORATION: none;
    border-bottom: 2px solid #d6eaf8;
    padding-bottom: 8px;
    margin-top: 20px;
}

/* ---- Навигация и тело сообщения ---- */
.nav { 
    FONT-WEIGHT: bold; 
    FONT-SIZE: 13px; 
    COLOR: #5dade2;
    font-family: 'Segoe UI', sans-serif;
}
.postbody { 
    FONT-SIZE: 14px; 
    LINE-HEIGHT: 1.7; 
    COLOR: #2c3e50;
    padding: 15px;
    background: #ffffff;
}
.postdetails { 
    FONT-SIZE: 12px; 
    COLOR: #7f8c8d; 
    font-style: italic;
    border-top: 1px solid #ecf0f1;
    padding-top: 8px;
    margin-top: 10px;
}

/* ---- БЛОКИ ЦИТАТ и КОДА (клинические выдержки) ---- */
/* Общий стиль рамки для спец. блоков */
.code_table, .php_table, .q_table, .quote_table {
    BORDER: 1px solid #d6eaf8 !important;
    WIDTH: 98% !important;
    FONT-FAMILY: inherit;
    BACKGROUND: #f8fcff !important;
    border-radius: 8px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.03);
    border-left: 4px solid #3498db !important;
}
/* Стиль текста внутри ячеек этих блоков */
.code_td, .php_td, .q_td, .quote_td {
    FONT-SIZE: 13px !important;
    COLOR: #2c3e50 !important;
    FONT-FAMILY: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    padding: 15px !important;
    line-height: 1.6;
    background: transparent !important;
}

/* Уточненные стили для разных типов блоков */
.quote, .quote_table, .quote_td {
    border-left: 4px solid #27ae60 !important; /* Зелёный для цитат */
    background: #f0f9f0 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-style: italic;
    color: #2c3e50 !important;
}
.code, .php_table, .code_table, .code_td, .php_td {
    border-left: 4px solid #8e44ad !important; /* Фиолетовый для кода */
    background: #f8f0ff !important;
    font-weight: bold;
}
.q_table, .q_td {
    border-left: 4px solid #e74c3c !important; /* Красный для вопросов */
    background: #fff0f0 !important;
}

.errorline { 
    BORDER: 2px solid #e74c3c !important; 
    BACKGROUND: #ffe6e6 !important; 
    color: #c0392b;
    border-radius: 6px;
}

/* ---- Формы и элементы ввода (медицинские формы) ---- */
FORM { DISPLAY: inline; }
INPUT, SELECT {
    FONT: 13px 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    padding: 8px 12px;
    border: 1px solid #d6eaf8;
    border-radius: 6px;
    background: #ffffff;
    color: #2c3e50;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
INPUT:focus, SELECT:focus, TEXTAREA:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}
INPUT.post, TEXTAREA.post {
    BORDER: 1px solid #d6eaf8;
    BACKGROUND: #ffffff;
    padding: 12px;
    FONT: 13px 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    border-radius: 8px;
    color: #2c3e50;
    box-shadow: 
        inset 0 1px 4px rgba(0,0,0,0.05);
}
INPUT.button, INPUT.liteoption, .fakebut, INPUT.catbutton, INPUT.mainoption {
    BORDER: none;
    BACKGROUND: linear-gradient(to bottom, #3498db, #2980b9);
    FONT-SIZE: 13px;
    FONT-WEIGHT: bold;
    COLOR: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    box-shadow: 
        0 3px 6px rgba(52, 152, 219, 0.3);
    transition: all 0.2s ease;
}
INPUT.button:hover, INPUT.liteoption:hover {
    BACKGROUND: linear-gradient(to bottom, #2980b9, #1c6ea4);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(52, 152, 219, 0.4);
}

/* ---- Дополнительные стили ---- */
A.but, A.but:visited, A.but:hover {
    COLOR: white;
    TEXT-DECORATION: none;
    background: linear-gradient(to bottom, #5dade2, #3498db);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}
.topbkg { 
    BACKGROUND: linear-gradient(90deg, #3498db, #5dade2, #3498db);
    height: 40px;
    border-bottom: 2px solid #1c6ea4;
    border-radius: 8px 8px 0 0;
}
.topnav {
    BORDER-TOP: 2px solid #1c6ea4;
    BORDER-BOTTOM: 2px solid #1c6ea4;
    FONT-SIZE: 13px;
    BACKGROUND: linear-gradient(to bottom, #5dade2, #3498db);
    COLOR: white;
    HEIGHT: 32px;
    padding: 6px 0;
    font-family: 'Segoe UI', sans-serif;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    border-radius: 0 0 6px 6px;
}
.admin { COLOR: #e67e22; } /* Оранжевый для админов */
A.admin, A.admin:visited { COLOR: #e67e22; }
A.admin:hover { COLOR: #d35400; }
.mod { COLOR: #27ae60; } /* Зелёный для модераторов */
A.mod, A.mod:visited { COLOR: #27ae60; }
A.mod:hover { COLOR: #229954; }
IMG { 
    BORDER: 2px solid #d6eaf8;
    border-radius: 6px;
    padding: 2px;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.copyright {
    FONT-SIZE: 12px;
    COLOR: #7f8c8d;
    FONT-FAMILY: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    TEXT-ALIGN: center;
    padding: 20px;
    background: #f8fcff;
    border-top: 2px solid #d6eaf8;
    margin-top: 25px;
    border-radius: 0 0 10px 10px;
}
A.copyright { COLOR: #3498db; }
A.copyright:hover { COLOR: #2980b9; }

/* ===== СТИЛИ ДЛЯ WR-Forum Professional ===== */

/* 1) Стиль для ссылок-пагинации (медицинские кнопки) */
.pgbutt a {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    padding: 8px 14px;
    text-decoration: none;
    border: none;
    background: linear-gradient(to bottom, #e8f4f8, #d6eaf8);
    color: #3498db;
    margin: 3px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    min-width: 35px;
    text-align: center;
    box-shadow: 
        0 2px 4px rgba(52, 152, 219, 0.2);
    transition: all 0.2s ease;
}
.pgbutt a:hover {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(52, 152, 219, 0.3);
}

/* 2) QR-CODE в медицинском стиле */
#qr img {
    width: 40px; height: 40px;
    position: fixed; right: 15px; top: 15px;
    border: 2px solid #3498db;
    padding: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        0 3px 10px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}
#qr img:hover { 
    width: 180px; height: 180px; 
    z-index: 1000;
    border: 3px solid #2980b9;
    border-radius: 8px;
    transform: scale(1.05);
    box-shadow: 
        0 10px 25px rgba(52, 152, 219, 0.4);
}

/* 3) Аватар-заглушка для гостя (медицинский символ) */
.guestavatar {
    width: 110px; height: 110px;
    text-align: center;
    background: linear-gradient(135deg, #5dade2, #3498db, #2980b9);
    color: white;
    font-size: 48px;
    font-weight: bold;
    display: table-cell;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    border: 3px solid white;
    box-shadow: 
        0 5px 15px rgba(52, 152, 219, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.guestavatar:before {
    content: "+";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: rgba(255,255,255,0.5);
}

/* 4) Навигационное меню в админке (медицинская панель) */
#nav8, #nav8 ul, #nav8 li { margin: 0; padding: 0; border: 0; }
#nav8, #nav8 ul { 
    background: linear-gradient(to bottom, #5dade2, #3498db);
    border: 1px solid #2980b9;
    border-radius: 8px;
}
#nav8 { width: 100%; }
#nav8 ul { 
    position: absolute; 
    display: none; 
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    min-width: 200px;
    border: 1px solid #2980b9;
    z-index: 100;
}
#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: 12px 25px;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}
#nav8 ul a { padding: 12px 30px; text-align: left; }
#nav8 td:hover, #nav8 li:hover { 
    background: linear-gradient(to right, #2980b9, #1c6ea4); 
}
#nav8 td { 
    text-align: center; 
    padding: 0; 
    border-right: 1px solid rgba(255,255,255,0.2);
}
#nav8 td:last-child { border-right: none; }

/* 5) Стиль для блока загрузки (медицинская шкала) */
#cssbar-wrapper { width: 320px; height: 24px; position: absolute; left: 50%; }
#cssbar-border {
    border: 2px solid #3498db;
    height: 100%; width: 100%; position: relative; left: -50%; top: -50%;
    padding: 4px;
    border-radius: 12px;
    background: #f8fcff;
    box-shadow: 
        inset 0 2px 6px rgba(52, 152, 219, 0.1),
        0 2px 6px rgba(52, 152, 219, 0.2);
}
#cssbar-whitespace { 
    overflow: hidden; 
    height: 100%; 
    width: 100%; 
    margin: 0 auto; 
    position: relative; 
    border-radius: 8px;
}
#cssbar-line {
    background: linear-gradient(90deg, 
        transparent, 
        #5dade2, 
        #3498db, 
        #2980b9, 
        #3498db, 
        #5dade2,
        transparent
    );
    position: absolute; 
    height: 100%; 
    width: 100%;
    animation: cssbar-slide 1.5s linear infinite;
    border-radius: 8px;
}
@keyframes cssbar-slide { 
    0% { transform: translateX(-100%); } 
    100% { transform: translateX(100%); } 
}

/* 6) Дополнительные медицинские элементы */
/* Важные уведомления (как медицинские предупреждения) */
.medical-alert {
    background: linear-gradient(to right, #fff3cd, #ffeaa7);
    border-left: 5px solid #f39c12;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    color: #856404;
    font-weight: 500;
}
.medical-warning {
    background: linear-gradient(to right, #f8d7da, #f5c6cb);
    border-left: 5px solid #e74c3c;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    color: #721c24;
    font-weight: 500;
}
.medical-info {
    background: linear-gradient(to right, #d1ecf1, #bee5eb);
    border-left: 5px solid #17a2b8;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    color: #0c5460;
    font-weight: 500;
}

/* Стиль для медицинских терминов в тексте */
.medical-term {
    background: #e8f4f8;
    color: #2980b9;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Consolas', monospace;
}