﻿/* ===== ПУЛЬМОНОЛОГИЧЕСКИЙ ФОРУМ ===== */
/* Стиль для форума о дыхательной системе и лёгких */

body {
    background-color: #ffffff;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    scrollbar-face-color: #5dade2; /* Голубой для дыхательной системы */
    scrollbar-highlight-color: #e8f4f8;
    scrollbar-shadow-color: #3498db;
    scrollbar-3dlight-color: #d6eaf8;
    scrollbar-arrow-color: #1c6ea4;
    scrollbar-track-color: #f0f9ff;
    scrollbar-darkshadow-color: #2980b9;
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

font {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

p, td {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    color: #2c3e50;
}

hr {
    height: 0px;
    border: none;
    border-top: 2px solid #e8f4f8;
    margin: 20px 0;
}

a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    color: #e74c3c;
    text-decoration: none;
    border-bottom: 1px solid #e74c3c;
}

h1, h2 {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    line-height: 130%;
    color: #2c3e50;
    margin: 25px 0 15px 0;
    padding-left: 40px;
    position: relative;
}

h1:before, h2:before {
    content: "🫁";
    position: absolute;
    left: 0;
    font-size: 30px;
    color: #3498db;
}

.bodyline {
    background-color: #ffffff;
    border: 2px solid #e8f4f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.bodyline2 {
    background-color: #e8f4f8;
    border: 2px solid #d6eaf8;
    border-radius: 8px;
}

.forumline {
    background-color: #ffffff;
    border: 2px solid #e8f4f8;
    border-radius: 8px;
}

TD {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
}

TH, TD.th {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    padding: 0 20px;
    border-radius: 6px 6px 0 0;
    border-bottom: 3px solid #1c6ea4;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.row1 {
    background-color: #ffffff;
    border-bottom: 1px solid #f8f9fa;
}

.row2 {
    background-color: #f8f9fa;
    border-bottom: 1px solid #f8f9fa;
}

.row3 {
    background-color: #f0f9ff;
    border-bottom: 1px solid #f8f9fa;
}

.poll {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

th {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-image: none;
    padding: 0 20px;
    border-radius: 6px 6px 0 0;
}

TD.spaceRow {
    color: #ffffff;
    background-color: #3498db;
    border: 0px;
    height: 10px;
}

td.rowpic {
    background-color: #e8f4f8;
    background-image: none;
    border-left: 4px solid #3498db;
}

tr.rowpic2 {
    background-color: #e8f4f8;
}

td.rowpic2 {
    background-color: #e8f4f8;
}

td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
    background-image: none;
    background-color: #e8f4f8;
    height: 45px;
    border: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    padding: 0 25px;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid #3498db;
}

.maintitle {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    line-height: 130%;
    color: #2c3e50;
    margin: 25px 0 15px 0;
    padding-left: 40px;
    position: relative;
}

.maintitle:before {
    content: "🫁";
    position: absolute;
    left: 0;
    font-size: 30px;
    color: #3498db;
}

.subtitle {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    line-height: 100%;
    color: #3498db;
    border-bottom: 2px solid #e8f4f8;
    padding-bottom: 8px;
    margin: 20px 0;
}

.gen {
    font-size: 14px;
    color: #2c3e50;
}

a.gen {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

a.gen:visited {
    color: #2980b9;
    text-decoration: none;
}

a.gen:hover {
    color: #e74c3c;
    text-decoration: none;
    border-bottom: 1px solid #e74c3c;
}

.genmed {
    font-size: 13px;
    color: #2c3e50;
}

a.genmed {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
}

a.genmed:hover {
    text-decoration: none;
    color: #e74c3c;
    border-bottom: 1px solid #e74c3c;
}

.gensmall {
    font-size: 12px;
    color: #7f8c8d;
}

a.gensmall {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

a.gensmall:hover {
    color: #e74c3c;
    text-decoration: none;
    border-bottom: 1px solid #e74c3c;
}

.mainmenu {
    font-size: 14px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
}

a.mainmenu {
    text-decoration: none;
    color: #2c3e50;
}

a.mainmenu:hover {
    text-decoration: none;
    color: #3498db;
}

.cattitle {
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-decoration: none;
    color: #2c3e50;
}

a.cattitle {
    text-decoration: none;
    color: #2c3e50;
}

a.cattitle:hover {
    text-decoration: none;
    color: #3498db;
}

.forumlink {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #2c3e50;
}

a.forumlink {
    text-decoration: none;
    color: #2c3e50;
}

a.forumlink:hover {
    text-decoration: none;
    color: #3498db;
}

.nav {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #2c3e50;
}

a.nav {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
}

a.nav:hover {
    text-decoration: none;
    color: #e74c3c;
    border-bottom: 1px solid #e74c3c;
}

.name {
    font-size: 13px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
}

a.name {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

a.name:hover {
    color: #e74c3c;
    text-decoration: none;
    border-bottom: 1px solid #e74c3c;
}

.postdetails {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

a.postdetails {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

a.postdetails:hover {
    color: #e74c3c;
    text-decoration: none;
    border-bottom: 1px solid #e74c3c;
}

.postbody {
    font-size: 14px;
    line-height: 1.7;
    color: #2c3e50;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

a.postlink {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
}

a.postlink:hover {
    text-decoration: none;
    color: #e74c3c;
    border-bottom: 1px solid #e74c3c;
}

.code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 13px;
    color: #2c3e50;
    background-color: #f8f9fa;
    border: 1px solid #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 12px;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
    margin: 10px 0;
}

.quote {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 13px;
    color: #2c3e50;
    line-height: 1.6;
    background-color: #f8f9fa;
    border: 1px solid #e8f4f8;
    border-left: 4px solid #2ecc71;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    margin: 10px 0;
    font-style: italic;
}

input, textarea, select {
    color: #2c3e50;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #e8f4f8;
    border-radius: 6px;
    padding: 10px 12px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

input.post, textarea.post, select {
    background-color: #ffffff;
}

input {
    text-indent: 2px;
}

input.button {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: #ffffff;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.button:hover {
    background: linear-gradient(to bottom, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

input.mainoption {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    font-weight: 700;
    color: white;
}

input.liteoption {
    background: linear-gradient(to bottom, #5dade2, #3498db);
    font-weight: 500;
    color: white;
}

.copyright {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    color: #7f8c8d;
    font-size: 13px;
    letter-spacing: 0;
    text-align: center;
    padding: 20px;
    background-color: #e8f4f8;
    border-top: 3px solid #3498db;
    margin-top: 30px;
    border-radius: 0 0 10px 10px;
}

a.copyright {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

a.copyright:hover {
    color: #e74c3c;
    text-decoration: none;
    border-bottom: 1px solid #e74c3c;
}

/* ===== СТИЛИ ДЛЯ WR-Forum Professional ===== */

/* 1) Стиль для пагинации */
.pgbutt a {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    padding: 8px 15px;
    text-decoration: none;
    border: 2px solid #e8f4f8;
    background: #ffffff;
    margin: 4px;
    border-radius: 6px;
    color: #3498db;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.pgbutt a:hover {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: #ffffff;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

form {
    display: inline;
    margin: 2px;
    padding: 0px;
    border: 0px;
}

input.button, input.liteoption, .fakebut {
    border: none;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    font-size: 14px;
    font-weight: 600;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.button:hover, input.liteoption:hover, .fakebut:hover {
    background: linear-gradient(to bottom, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 2) QR-CODE */
#qr img {
    width: 45px;
    height: 45px;
    position: fixed;
    right: 20px;
    top: 20px;
    border: 2px solid #3498db;
    padding: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    transition: all 0.4s ease;
}

#qr img:hover {
    width: 200px;
    height: 200px;
    z-index: 1000;
    border: 3px solid #2980b9;
    border-radius: 10px;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

/* 3) Аватар гостя */
.guestavatar {
    width: 120px;
    height: 120px;
    text-align: center;
    background: linear-gradient(135deg, #5dade2, #3498db, #2980b9);
    color: #ffffff;
    font-size: 52px;
    display: table-cell;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.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: #ffffff;
    border: 2px solid #e8f4f8;
    border-radius: 8px;
}

#nav8 {
    border-spacing: 0 0;
    position: relative;
    z-index: 50;
    width: 100%;
}

#nav8 ul {
    position: absolute;
    display: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 6px;
    min-width: 200px;
}

#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 20px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    border-bottom: 1px solid #f8f9fa;
}

#nav8 ul a {
    padding: 12px 25px;
    text-align: left;
}

#nav8 td:hover, #nav8 li:hover {
    background: linear-gradient(to right, #3498db, #2980b9);
}

#nav8 td:hover a, #nav8 li:hover a {
    color: #ffffff;
}

#nav8 td {
    text-align: center;
    border-right: 1px solid #f8f9fa;
}

#nav8 td:last-child {
    border-right: none;
}

/* 5) Стиль для блока загрузки */
#cssbar-wrapper {
    width: 320px;
    height: 22px;
    position: absolute;
    left: 50%;
}

#cssbar-border {
    border: 3px solid #3498db;
    height: 100%;
    width: 100%;
    position: relative;
    left: -50%;
    top: -50%;
    padding: 4px;
    border-radius: 12px;
    background: #f0f9ff;
}

#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 2s linear infinite;
    border-radius: 8px;
}

@keyframes cssbar-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ДЛЯ ПУЛЬМОНОЛОГИИ ===== */

/* Блок дыхательных упражнений */
.breathing-exercise {
    border-left: 5px solid #3498db;
    background-color: #e8f4f8;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.breathing-exercise:before {
    content: "🌬️";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    opacity: 0.2;
    color: #3498db;
}

/* Блок с ингаляциями */
.inhalation-guide {
    background: linear-gradient(to right, #f0f9ff, #e8f4f8);
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.inhalation-guide h4 {
    color: #2980b9;
    margin-top: 0;
}

.inhalation-guide h4:before {
    content: "💨 ";
    font-size: 20px;
}

/* Важные предупреждения для пациентов */
.lung-warning {
    background: linear-gradient(to right, #ffeaa7, #ffecb3);
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #d35400;
    font-weight: 500;
}

.lung-warning:before {
    content: "⚠️ ВНИМАНИЕ: ";
    font-weight: 700;
    color: #e74c3c;
}

/* Иконки для категорий пульмонологии */
.icon-asthma:before {
    content: "😤";
    margin-right: 8px;
    font-size: 18px;
}

.icon-copd:before {
    content: "🫁";
    margin-right: 8px;
    font-size: 18px;
}

.icon-allergy:before {
    content: "🤧";
    margin-right: 8px;
    font-size: 18px;
}

.icon-covid:before {
    content: "🦠";
    margin-right: 8px;
    font-size: 18px;
}

.icon-children:before {
    content: "👶";
    margin-right: 8px;
    font-size: 18px;
}

.icon-smoking:before {
    content: "🚭";
    margin-right: 8px;
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        font-size: 13px;
        padding: 10px;
        max-width: 100%;
    }
    
    h1, h2, .maintitle {
        font-size: 22px;
        padding-left: 35px;
    }
    
    h1:before, h2:before, .maintitle:before {
        font-size: 26px;
    }
    
    #qr img {
        width: 35px;
        height: 35px;
        right: 15px;
        top: 15px;
    }
    
    #qr img:hover {
        width: 180px;
        height: 180px;
    }
    
    .breathing-exercise,
    .inhalation-guide,
    .lung-warning {
        padding: 15px;
        margin: 15px 0;
    }
}