/* VNFORUM - Vanilla CSS Design System */

:root {
    --primary-color: #1e3a8a; /* Slate Blue */
    --primary-hover: #172554;
    --accent-color: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --radius: 8px;
    --radius-sm: 4px;

    /* Default Header & Footer variables */
    --header-bg: #1e3a8a;
    --header-text: #ffffff;
    --header-logo-accent: #60a5fa;
    --header-menu-text: rgba(255, 255, 255, 0.85);
    --header-menu-active: #ffffff;
    --header-menu-hover-bg: rgba(255, 255, 255, 0.1);
    --footer-bg: #1f2937;
    --footer-text: #cbd5e1;
    --footer-title: #ffffff;
}

/* Reset & Basic Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Layout Containers */
.main-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--header-text);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo-text span {
    color: var(--header-logo-accent);
}

.site-logo-img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-item {
    font-weight: 600;
    color: var(--header-menu-text);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
    color: var(--header-menu-active);
    background-color: var(--header-menu-hover-bg);
}

/* Header button actions */
.user-logged-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--header-text);
}
.user-profile-header-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--header-text) !important;
}
.btn-profile-settings {
    color: var(--header-menu-active) !important;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-profile-settings:hover {
    opacity: 0.8;
}
.btn-admin-link {
    background-color: var(--accent-color);
    color: white !important;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}
.btn-admin-link:hover {
    background-color: var(--primary-hover);
}
.btn-logout {
    color: var(--header-menu-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s;
}
.btn-logout:hover {
    color: var(--header-menu-active);
}
.guest-actions {
    display: flex;
    gap: 10px;
}
.btn-login {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
}
.btn-register {
    background-color: var(--accent-color);
    color: white !important;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}
.btn-register:hover {
    background-color: var(--primary-hover);
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.avatar-comment {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* Main Body container */
.main-body {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 70vh;
}

/* Portal Grid Layout for Homepage */
.portal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

.portal-main-content {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--primary-color);
}

/* News cards grid */
.news-list-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.news-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-category-badge {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
}

.news-category-tag {
    background-color: #fee2e2;
    color: var(--danger-color);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    display: inline-block;
}

.news-card-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.news-card-excerpt {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 12px;
}

.btn-read-more {
    font-size: 13px;
    font-weight: 600;
}

/* Sidebar widget styling */
.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 16px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.stats-value {
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-thread-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-thread-title {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    color: var(--text-color);
}

.sidebar-thread-title:hover {
    color: var(--accent-color);
}

.sidebar-thread-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
}

/* Forum view styles */
.forum-breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.categories-list {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.category-row:last-child {
    border-bottom: none;
}

.category-info {
    flex: 1;
}

.category-name-title {
    font-size: 18px;
    margin-bottom: 4px;
}

.category-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.category-stats {
    display: flex;
    gap: 30px;
    margin-left: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.stat-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Category detail & threads list */
.category-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
}

.threads-list-table {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.thread-table-header {
    background-color: var(--bg-light);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.col-title { flex: 4; }
.col-replies { flex: 1; }
.col-views { flex: 1; }

.thread-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.thread-row:last-child {
    border-bottom: none;
}

.thread-main-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.thread-title-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
}

.thread-title-link:hover {
    color: var(--accent-color);
}

.thread-meta-info {
    font-size: 12px;
    color: var(--text-muted);
}

.featured-badge {
    background-color: var(--warning-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }

/* Buttons styling */
.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-danger-small {
    background-color: var(--danger-color);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.btn-success-small {
    background-color: var(--success-color);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.btn-warning-small {
    background-color: var(--warning-color);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* Forms */
.form-standard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
}

.form-input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    width: 100%;
    background-color: var(--bg-white);
    color: var(--text-color);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    background-color: var(--bg-white);
    color: var(--text-color);
    resize: vertical;
    width: 100%;
}

.required {
    color: var(--danger-color);
}

/* Thread view & Nested comments */
.thread-main-post {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.thread-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.post-author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.meta-details {
    font-size: 13px;
}

.meta-date {
    color: var(--text-muted);
}

.post-body {
    font-size: 15px;
    color: var(--text-color);
}

/* Comment section filters & Tabs */
.comments-section-area {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.comments-filter-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    gap: 15px;
}

.filter-tab {
    padding: 10px 5px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.filter-tab:hover, .filter-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Hierarchical Comments Rendering */
.comments-tree-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-node {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-top: 12px;
}

.comment-node.level-1 {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    font-weight: 700;
    font-size: 14px;
}

.comment-date {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-content {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.btn-like, .btn-reply {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-like:hover, .btn-like.liked {
    color: var(--danger-color);
}

.btn-reply:hover {
    color: var(--accent-color);
}

/* Indentations for replies */
.replies-container {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 1.5px solid var(--border-color);
}

@media (max-width: 600px) {
    .replies-container {
        margin-left: 8px;
        padding-left: 6px;
    }
}

.hidden-reply-node {
    display: none !important;
}

.view-more-replies-trigger {
    margin-top: 10px;
}

.btn-view-more-faded {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    padding: 4px 8px;
}

.btn-view-more-faded:hover {
    opacity: 1;
    text-decoration: underline;
}

/* User role colors */
.role-admin {
    color: var(--danger-color) !important;
}

.role-mod {
    color: var(--success-color) !important;
}

.role-member {
    color: var(--text-color);
}

.user-role-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    color: white;
}

.user-role-badge.role-admin {
    background-color: var(--danger-color);
}

.user-role-badge.role-mod {
    background-color: var(--success-color);
}

.user-role-badge.role-member {
    background-color: var(--text-muted);
}

.user-level-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    color: white;
    background-color: var(--accent-color);
}

/* Dynamic Reply Form injected by JS */
.injected-reply-form {
    margin-top: 12px;
    background-color: var(--bg-light);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Main Reply form */
.main-reply-form-area {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.main-reply-form-area h4 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

.guest-reply-prompt {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Pagination container */
.pagination-container {
    display: flex;
    gap: 8px;
    margin-top: 25px;
    justify-content: center;
}

.page-link {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
}

.page-link.active, .page-link:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Auth Cards */
.auth-box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.auth-card {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-width: 450px;
    width: 100%;
}

.auth-card h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-align: center;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 25px;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.auth-footer-prompt {
    font-size: 13px;
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.error-container {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: var(--danger-color);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
}

.error-container ul {
    list-style: none;
}

/* Admin Dashboard CSS layout */
.admin-panel-container {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-page-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.admin-nav-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-nav-tab {
    padding: 10px 15px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.admin-nav-tab.active, .admin-nav-tab:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.admin-stat-card h3 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.admin-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.admin-dashboard-details-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.admin-panel-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    flex: 1;
    min-width: 320px;
    margin-bottom: 20px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.admin-panel-box h3 {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.table-admin {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-admin th, .table-admin td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table-admin th {
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-weight: 700;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-inactive {
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.form-inline {
    display: inline-block;
}

.select-role-admin {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    outline: none;
}

.admin-help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.form-checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.form-checkbox-group label {
    font-weight: 600;
    font-size: 13px;
}

/* Footer layout */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0;
    margin-top: 50px;
    border-top: 4px solid var(--accent-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    font-size: 16px;
    color: var(--footer-title);
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--footer-text);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Admin/Mod inline comment action links */
.btn-action-delete, .btn-action-ban {
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-left: 15px;
    display: inline-block;
}

.btn-action-delete {
    color: var(--danger-color);
}

.btn-action-delete:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.btn-action-ban {
    color: var(--warning-color);
}

.btn-action-ban:hover {
    color: #d97706;
    text-decoration: underline;
}

/* Giới hạn độ thụt lề tối đa để tránh nát giao diện */
.replies-container.depth-3 .replies-container {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
}

.reply-to-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

.reply-to-username {
    color: var(--accent-color);
    font-weight: 600;
}

/* Forum Home top 2 tabs list */
.forum-tabs-section {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.forum-tab-headers {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 15px;
    gap: 15px;
}

.forum-tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.forum-tab-btn:hover, .forum-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.forum-tab-panel {
    display: none;
}

.forum-tab-panel.active {
    display: block;
}

.tab-thread-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tab-thread-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    gap: 15px;
}

.tab-thread-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.thread-num-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.thread-num-badge.badge-replied {
    background-color: var(--success-color);
}

.thread-info-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-thread-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.tab-thread-title:hover {
    color: var(--accent-color);
}

.tab-thread-cat-badge {
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.tab-thread-meta-area {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* Parent-Child Categories Design */
.forum-list-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.forum-categories-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.parent-forum-box {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.parent-forum-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

.parent-forum-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.parent-forum-desc {
    font-size: 11px;
    opacity: 0.8;
    display: block;
    margin-top: 2px;
}

.child-forums-list {
    display: flex;
    flex-direction: column;
}

.child-forum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.child-forum-row:last-child {
    border-bottom: none;
}

.child-forum-info {
    flex: 1;
}

.child-forum-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.child-forum-name a {
    color: var(--text-color);
}

.child-forum-name a:hover {
    color: var(--accent-color);
}

.child-forum-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.child-forum-stats {
    display: flex;
    gap: 25px;
    margin-left: 20px;
}

.child-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.child-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.child-stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
}

/* Giao diện mobile responsive (max-width: 768px) */
@media (max-width: 768px) {
    /* Header mobile */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .nav-item {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .user-logged-info {
        width: auto;
        justify-content: flex-end;
        gap: 0;
        font-size: 13px;
        flex-wrap: nowrap;
    }

    /* Tab thread list mobile */
    .tab-thread-item {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 12px;
    }
    
    .thread-info-area {
        flex: 1;
        gap: 8px;
    }
    
    .tab-thread-title {
        font-size: 13.5px;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .tab-thread-meta-area {
        margin-left: 34px;
        width: calc(100% - 34px);
        justify-content: flex-start;
        border-top: 1px dashed var(--border-color);
        padding-top: 8px;
        margin-top: 2px;
        gap: 10px;
        font-size: 11px;
    }
    
    /* Parent-Child Categories mobile */
    .child-forum-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .child-forum-name {
        font-size: 14px;
    }
    
    .child-forum-desc {
        font-size: 11.5px;
    }
    
    .child-forum-stats {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        gap: 20px;
        border-top: 1px solid var(--border-color);
        padding-top: 8px;
    }
    
    .child-stat-box {
        align-items: flex-start;
        min-width: unset;
    }
    
    .child-stat-val {
        font-size: 12px;
    }
    
    .child-stat-lbl {
        font-size: 9px;
    }
}

/* Sidebar Layout & Blocks CSS */
.main-layout-wrapper {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
}

.main-column {
    min-width: 0;
}

.sidebar-column {
    min-width: 0;
}

/* Site Sidebar Styling */
.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-block {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.sidebar-block-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-thread-list, .sidebar-comment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-thread-item {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.sidebar-thread-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-thread-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.sidebar-thread-title:hover {
    color: var(--accent-color);
}

.sidebar-thread-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

/* Sidebar Comment List */
.sidebar-comment-item {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 12px;
}

.sidebar-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sidebar-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.sidebar-comment-user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-username {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
}

.sidebar-comment-time {
    font-size: 10px;
    color: var(--text-muted);
}

.sidebar-comment-body {
    font-size: 12.5px;
    line-height: 1.4;
}

.sidebar-comment-excerpt {
    color: var(--text-muted);
    margin-bottom: 5px;
    word-break: break-word;
}

.sidebar-comment-link {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent-color);
    display: block;
}

.sidebar-comment-link:hover {
    text-decoration: underline;
}

.empty-sidebar-text {
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0;
}

/* Sidebar responsive */
@media (max-width: 900px) {
    .main-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Custom Rich WYSIWYG Editor */
.custom-editor-container {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 15px;
}

.custom-editor-toolbar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-editor-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
}

.custom-editor-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.custom-editor-content {
    min-height: 180px;
    padding: 15px;
    outline: none;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

.custom-editor-content[placeholder]:empty:before {
    content: attr(placeholder);
    color: var(--text-muted);
    cursor: text;
}

/* WYSIWYG Content Rendering Styles */
.comment-text-body ul, .thread-text-body ul {
    list-style-type: disc !important;
    padding-left: 20px !important;
    margin: 10px 0 !important;
}

.comment-text-body ol, .thread-text-body ol {
    list-style-type: decimal !important;
    padding-left: 20px !important;
    margin: 10px 0 !important;
}

.comment-text-body li, .thread-text-body li {
    margin-bottom: 5px !important;
    display: list-item !important;
}

.comment-text-body img, .thread-text-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 10px 0;
    display: block;
}

.comment-text-body a, .thread-text-body a {
    color: var(--accent-color);
    text-decoration: underline;
}

.comment-text-body a:hover, .thread-text-body a:hover {
    color: var(--primary-hover);
}

/* Thread Admin Actions Bar */
.thread-admin-actions-bar {
    margin-top: 15px;
    background-color: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-bar-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 5px;
}

.admin-bar-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.admin-bar-btn.edit-btn {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.admin-bar-btn.edit-btn:hover {
    background-color: #1d4ed8;
    color: white;
}

.admin-bar-btn.delete-btn {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}
.admin-bar-btn.delete-btn:hover {
    background-color: #b91c1c;
    color: white;
}

.admin-bar-btn.lock-btn {
    background-color: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}
.admin-bar-btn.lock-btn:hover {
    background-color: #d97706;
    color: white;
}

.admin-bar-btn.feature-btn {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}
.admin-bar-btn.feature-btn:hover {
    background-color: #15803d;
    color: white;
}

/* High-Tech Portal Layout Styles */
.home-news-section, .home-forum-section {
    margin-bottom: 35px;
}

.home-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.tech-accent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: inline-block;
}

.tech-accent-dot.cyan {
    background-color: #06b6d4;
}

.home-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    margin: 0;
}

/* Section 1: News Grid (With Images) */
.tech-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tech-news-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #cbd5e1;
}

.tech-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #0f172a;
    overflow: hidden;
}

.tech-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tech-news-card:hover .tech-card-img {
    transform: scale(1.05);
}

.tech-card-placeholder-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text-overlay {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.tech-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tech-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.tech-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.tech-card-title a:hover {
    color: var(--accent-color);
}

.tech-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.tech-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.tech-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-mini-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Section 2: Forum List (No Images) */
.tech-forum-list {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tech-forum-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    gap: 15px;
}

.tech-forum-row:last-child {
    border-bottom: none;
}

.tech-forum-row:hover {
    background-color: var(--bg-light);
}

.forum-row-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tech-forum-row:hover .forum-row-icon {
    background-color: #e0f2fe;
    color: var(--accent-color);
}

.tech-svg-icon {
    width: 18px;
    height: 18px;
}

.forum-row-main {
    flex-grow: 1;
}

.forum-row-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.forum-row-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.forum-row-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.forum-row-title a:hover {
    color: var(--accent-color);
}

.forum-row-cat-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    text-decoration: none;
    text-transform: uppercase;
}

.forum-row-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.username-clean {
    color: #334155;
}

.tech-forum-row:hover .forum-row-cat-badge {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: #f0f9ff;
}

.forum-row-stats {
    display: flex;
    gap: 20px;
    text-align: right;
    flex-shrink: 0;
}

.forum-stat-item {
    display: flex;
    flex-direction: column;
    width: 70px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .tech-forum-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .forum-row-icon {
        display: none;
    }
    .forum-row-stats {
        flex-direction: row;
        width: 100%;
        text-align: left;
        border-top: 1px dashed var(--border-color);
        padding-top: 10px;
        margin-top: 5px;
    }
    .forum-stat-item {
        flex-direction: row;
        gap: 5px;
        width: auto;
    }
    .stat-label {
        font-size: 12px;
    }
    .stat-value {
        font-size: 12px;
    }
}

/* User Profile Layout Page */
.profile-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.profile-social-links a:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xs);
}

@media (max-width: 800px) {
    .profile-columns-layout {
        grid-template-columns: 1fr !important;
    }
}

/* 5 Mẫu màu Giao diện (3 Sáng, 2 Tối) */

/* Theme 1: Light Classic Blue (Mẫu 1 - Sáng) */
body.theme-light_blue {
    --primary-color: #1e3a8a;
    --primary-hover: #1e40af;
    --accent-color: #2563eb;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    --header-bg: #1e3a8a;
    --header-text: #ffffff;
    --header-logo-accent: #60a5fa;
    --header-menu-text: rgba(255, 255, 255, 0.85);
    --header-menu-active: #ffffff;
    --header-menu-hover-bg: rgba(255, 255, 255, 0.1);
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
    --footer-title: #ffffff;
}

/* Theme 2: Light Emerald Green (Mẫu 2 - Sáng) */
body.theme-light_green {
    --primary-color: #064e3b;
    --primary-hover: #047857;
    --accent-color: #059669;
    --bg-light: #f4f6f5;
    --bg-white: #ffffff;
    --text-color: #0f172a;
    --text-muted: #475569;
    --border-color: #cbd5e1;

    --header-bg: #064e3b;
    --header-text: #ffffff;
    --header-logo-accent: #34d399;
    --header-menu-text: rgba(255, 255, 255, 0.85);
    --header-menu-active: #ffffff;
    --header-menu-hover-bg: rgba(255, 255, 255, 0.1);
    --footer-bg: #022c22;
    --footer-text: #d1fae5;
    --footer-title: #34d399;
}

/* Theme 3: Light Warm Orange/Copper (Mẫu 3 - Sáng) */
body.theme-light_orange {
    --primary-color: #7c2d12;
    --primary-hover: #c2410c;
    --accent-color: #ea580c;
    --bg-light: #fafaf9;
    --bg-white: #ffffff;
    --text-color: #1c1917;
    --text-muted: #78716c;
    --border-color: #e7e5e4;

    --header-bg: #7c2d12;
    --header-text: #ffffff;
    --header-logo-accent: #ff9d5c;
    --header-menu-text: rgba(255, 255, 255, 0.85);
    --header-menu-active: #ffffff;
    --header-menu-hover-bg: rgba(255, 255, 255, 0.1);
    --footer-bg: #431407;
    --footer-text: #ffedd5;
    --footer-title: #ff9d5c;
}

/* Theme 4: Dark Cyber Neon (Mẫu 4 - Tối) */
body.theme-dark_neon {
    --primary-color: #06b6d4; /* Neon Cyan */
    --primary-hover: #22d3ee;
    --accent-color: #d946ef; /* Neon Pink/Purple */
    --bg-light: #090d16;
    --bg-white: #0f172a;
    --text-color: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    background-color: #090d16 !important;

    --header-bg: #0f172a;
    --header-text: #cbd5e1;
    --header-logo-accent: #06b6d4;
    --header-menu-text: #94a3b8;
    --header-menu-active: #06b6d4;
    --header-menu-hover-bg: #1e293b;
    --footer-bg: #020617;
    --footer-text: #94a3b8;
    --footer-title: #06b6d4;
}

/* Theme 5: Dark Slate Obsidian (Mẫu 5 - Tối) */
body.theme-dark_slate {
    --primary-color: #f59e0b; /* Amber Gold */
    --primary-hover: #fbbf24;
    --accent-color: #eab308;
    --bg-light: #0f0f10;
    --bg-white: #18181b;
    --text-color: #e4e4e7;
    --text-muted: #a1a1aa;
    --border-color: #27272a;
    background-color: #0f0f10 !important;

    --header-bg: #111827;
    --header-text: #e4e4e7;
    --header-logo-accent: #eab308;
    --header-menu-text: #a1a1aa;
    --header-menu-active: #eab308;
    --header-menu-hover-bg: #1f2937;
    --footer-bg: #09090b;
    --footer-text: #a1a1aa;
    --footer-title: #eab308;
}

/* Default Mobile Menu Toggle (Ẩn trên PC) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--header-text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: var(--header-menu-hover-bg);
}

/* Responsive header layout and mobile hamburger menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .nav-menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background-color: var(--header-bg) !important;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 20px 20px 20px;
        z-index: 1000;
        border-bottom: 2px solid var(--accent-color);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu a {
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: var(--header-menu-text) !important;
        font-size: 14px;
        font-weight: 600;
        width: 100%;
        border-radius: 0;
    }

    .nav-menu a:last-child {
        border-bottom: none !important;
    }

    .nav-menu a:hover, .nav-menu a.active {
        color: var(--header-menu-active) !important;
        background-color: var(--header-menu-hover-bg) !important;
    }
    
    .main-header .header-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .mobile-menu-toggle {
        display: block !important;
        order: 1;
        background: transparent;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 0 10px;
    }

    .logo-area {
        order: 2;
        text-align: center;
        flex-grow: 1;
    }

    .logo-area .site-logo-img {
        max-height: 32px !important;
    }

    .user-action-area {
        order: 3;
        display: flex;
        align-items: center;
    }

    .user-greeting, .btn-profile-settings, .btn-admin-link, .btn-logout {
        display: none !important;
    }

    .guest-actions .btn-register {
        display: none !important;
    }

    .guest-actions .btn-login {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .user-logged-info {
        gap: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .user-profile-header-link {
        padding: 0 !important;
    }

    .avatar-small {
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
    }
}

/* Mobile Drawer Sidebar Styles */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
    display: block;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--header-bg);
    z-index: 9999;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.drawer-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.drawer-item {
    display: block;
    padding: 14px 20px;
    color: var(--header-menu-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.drawer-item:hover, .drawer-item.active {
    background-color: var(--header-menu-hover-bg);
    color: var(--header-menu-active);
    padding-left: 24px;
}

.drawer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 15px 0;
}

.drawer-search-form {
    display: flex;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.drawer-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 8px 12px;
    font-size: 13px;
}

.drawer-search-submit {
    background: transparent;
    border: none;
    color: white;
    padding: 0 12px;
    cursor: pointer;
}

.drawer-user-section, .drawer-guest-section {
    padding: 0 20px;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: white;
}

.drawer-user-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.drawer-user-info span {
    font-size: 13px;
}

.drawer-login-btn {
    display: block;
    background-color: var(--accent-color);
    color: white !important;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 10px;
    border-bottom: none !important;
    padding: 12px 20px;
}

.drawer-register-btn {
    display: block;
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    text-align: center;
    border-radius: 4px;
    border-bottom: none !important;
    padding: 12px 20px;
}

.drawer-logout-btn {
    color: #f87171 !important;
}

.drawer-admin-btn {
    color: #fbbf24 !important;
}










