/* ===== СТРУКТУРА ФОРУМА ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Шапка */
.menu {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    padding: 15px 0 !important;
    border: none !important;
}

.menu a {
    color: #495057 !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu a:hover {
    background: #007bff !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Карточки вместо таблиц */
.tborder {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: white;
    margin-bottom: 20px;
    overflow: hidden;
}

.thead {
    background: #007bff !important;
    color: white !important;
    font-weight: 600;
    font-size: 1.1em;
    border-radius: 12px 12px 0 0 !important;
    padding: 20px !important;
    border: none !important;
}

/* Строки */
.trow1, .trow2 {
    background: white !important;
    border-bottom: 1px solid #f1f3f4;
    padding: 16px 20px !important;
    transition: background 0.2s ease;
}

.trow1:hover, .trow2:hover {
    background: #f8f9fa !important;
}

/* Кнопки */
.button {
    border: none !important;
    border-radius: 8px !important;
    background: #007bff !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,123,255,0.3);
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
    background: #0056b3 !important;
}

/* Формы */
.textbox {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.textbox:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1) !important;
    outline: none;
}

/* Сообщения */
.post {
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    background: white;
    padding: 0 !important;
    overflow: hidden;
}

.post_author {
    background: #f8f9fa !important;
    border-right: 1px solid #f1f3f4 !important;
    padding: 20px !important;
}

.post_head {
    background: #007bff !important;
    color: white !important;
    padding: 16px 20px !important;
    border: none !important;
}

.post_body {
    padding: 20px !important;
    line-height: 1.7;
    font-size: 15px;
    color: #444;
}

/* Адаптивность */
@media (max-width: 768px) {
    .menu {
        padding: 10px 0 !important;
    }
    
    .menu a {
        display: block;
        margin: 5px 0 !important;
        text-align: center;
    }
    
    .tborder {
        border-radius: 8px !important;
        margin: 10px;
    }
    
    .post_author {
        border-right: none !important;
        border-bottom: 1px solid #f1f3f4 !important;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tborder {
    animation: fadeIn 0.5s ease;
}

/* Статусы */
.online {
    color: #28a745 !important;
    font-weight: 600;
}

.offline {
    color: #6c757d !important;
}

.subject_new .subject_title {
    color: #007bff !important;
    font-weight: 700;
}