/* main.css - Layout, Typography & Base Styles */
/* Brand Colors: Primary #00ADB4 (teal), Secondary #008B94 (darker teal), Accent #5FDEE2 (lighter teal) */

/* =================================================================
   RESET & BASE STYLES
   ================================================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* =================================================================
   LAYOUT STRUCTURE
   ================================================================= */
.app-container {
    display: flex;
    height: 100vh;
}

.hidden {
    display: none !important;
}

/* =================================================================
   SIDEBAR LAYOUT
   ================================================================= */
.sidebar {
    width: 250px;
    background: white;
    color: #333;
    display: flex;
    flex-direction: column;
    padding: 0;
    flex-shrink: 0;
    border-right: 1px solid #e1e5e9;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5e9;
    background: white;
    text-align: center;
    margin-bottom: 0px;
}

.sidebar.collapsed .sidebar-header {
    padding: 12px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
    gap: 0;
}

.logo-icon,
.sidebar-header img,
.sidebar-logo img {
    width: 28px;
    height: 28px;
}

.logo-text,
.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #00ADB4;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .sidebar-title {
    display: none;
}

/* New Patient Button in Sidebar */
.sidebar-new-patient {
    padding: 16px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: white;
}

.sidebar.collapsed .sidebar-new-patient {
    padding: 16px 10px;
}

.sidebar-new-patient-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.sidebar-new-patient-btn:hover {
    background: #e0f7fa;
    border-color: #00ADB4;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 173, 180, 0.2);
}

.new-patient-icon {
    width: 32px;
    height: 32px;
    background: #00ADB4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.new-patient-icon svg {
    width: 16px;
    height: 16px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

.sidebar-new-patient-btn:hover .new-patient-icon {
    background: #008B94;
    transform: scale(1.05);
}

.new-patient-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar.collapsed .new-patient-text {
    display: none;
}

.sidebar.collapsed .sidebar-new-patient-btn {
    justify-content: center;
    padding: 12px;
    width: auto;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 300;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin: 2px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    border-left: 3px solid transparent;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.nav-item:hover {
    background-color: #e0f7fa;
    border-left-color: #b2ebf2;
}

.nav-item.active {
    background-color: #e0f7fa;
    border-left-color: #00ADB4;
    color: #00ADB4;
    font-weight: 600;
}

.sidebar.collapsed .nav-item {
    padding: 12px;
    margin: 4px 8px;
    justify-content: center;
    border-left: none;
    border-radius: 8px;
    width: calc(100% - 16px);
}

.sidebar.collapsed .nav-item.active {
    background-color: #e0f7fa;
    border: 2px solid #00ADB4;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-icon i {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
    width: 24px;
    height: 24px;
}

.sidebar.collapsed .nav-icon i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* User Info Section */
.user-info {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    transition: all 0.3s ease;
}

.sidebar.collapsed .user-info {
    flex-direction: column;
    gap: 8px;
    padding: 16px 10px;
    text-align: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #e0f7fa;
    border: 2px solid #00ADB4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #00695c;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sidebar.collapsed .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.user-details {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar.collapsed .user-details {
    display: none;
}

.user-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
    color: #333;
}

.user-email {
    font-size: 12px;
    color: #6b7280;
}

/* =================================================================
   MAIN CONTENT LAYOUT
   ================================================================= */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: margin-left 0.3s ease;
}

/* Header */
.header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.greeting {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 30px;
    flex-shrink: 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: 1px solid #f1f3f4;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 173, 180, 0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #00ADB4;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 0 30px 20px;
    overflow-y: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.schedule-date {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

/* =================================================================
   PATIENT SCHEDULE TABLE
   ================================================================= */
.schedule-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e5e9;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr minmax(100px, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e1e5e9;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.header-cell {
    padding: 16px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table-body {
    max-height: 600px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr minmax(100px, 1fr);
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background: #e0f7fa;
}

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

.table-cell {
    padding: 16px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.patient-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.patient-contact {
    font-size: 12px;
    color: #718096;
}

.consultation-time {
    color: #6b7280;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

/* =================================================================
   RECORDING VIEW LAYOUT
   ================================================================= */
.recording-view-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    background: #f5f7fa;
    flex: 1;
    z-index: 100;
}

.sidebar.collapsed ~ .main-content .recording-view-container,
.recording-view-container.sidebar-collapsed {
    margin-left: 70px;
}

.app-container.recording-mode .main-content {
    display: none;
}

.app-container:not(.recording-mode) .recording-view-container {
    display: none;
}

/* Smooth view transitions */
.main-content,
.recording-view-container {
    transition: opacity 0.15s ease-out;
}

.view-transitioning .main-content,
.view-transitioning .recording-view-container {
    opacity: 0;
}

/* Recording content fade-in after CSS loads */
#recordingContent {
    transition: opacity 0.15s ease-out;
}

#recordingContent.loading {
    opacity: 0;
}

/* Recording Sidebar */
.recording-sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e1e5e9;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
}

.recording-sidebar .sidebar-header {
    padding: 0px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: white;
    height: 53px;
    box-sizing: border-box;
}

.recording-sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

/* New Patient Button Container */
.sidebar-new-patient-container {
    padding: 16px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: white;
}

.sidebar-schedule-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

/* =================================================================
   SIDEBAR PATIENT ITEMS
   ================================================================= */
.sidebar-patient-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.sidebar-patient-item:hover {
    background: #e0f7fa;
}

.sidebar-patient-item.active {
    background: #e0f7fa;
    border-left: 3px solid #00ADB4;
}

.sidebar-patient-item:last-child {
    border-bottom: none;
}

.sidebar-patient-info {
    margin-bottom: 6px;
}

.sidebar-patient-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
    margin-bottom: 2px;
    line-height: 1.3;
}

.sidebar-patient-contact {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.2;
}

.sidebar-patient-status {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

/* Recording Content Area */
.recording-main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.recording-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e5e9;
    background: white;
    flex-shrink: 0;
    z-index: 10;
}

.recording-header .session-info {
    flex: 1;
    text-align: left;
    margin-left: 0;
}

.recording-header .session-info h2 {
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

.session-details {
    display: flex;
    gap: 20px;
    color: #6b7280;
    font-size: 14px;
    text-indent: 16px;
}

.session-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recording-content {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
    background: #f5f7fa;
}

/* =================================================================
   FILTERS PANEL - Professional Design
   ================================================================= */
.filters-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 16px 20px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.filters-panel.expanded {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Filter Header */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    background: #fafbfc;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
}

.filters-header:hover {
    background: #f5f6f8;
}

.filters-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.filters-panel.has-active-filters .filters-icon {
    color: #00ADB4;
}

.filters-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    letter-spacing: -0.01em;
}

.filter-badge {
    font-size: 12px;
    font-weight: 500;
    color: #00897b;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 173, 180, 0.2);
}

.filters-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-expand-text {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.filters-chevron {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.filters-panel.expanded .filters-chevron {
    transform: rotate(180deg);
}

.filters-panel.expanded .filters-header {
    border-bottom-color: #f0f1f3;
}

/* Filter Body */
.filters-body {
    padding: 20px;
    background: #ffffff;
    animation: filterSlideDown 0.25s ease-out;
}

@keyframes filterSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quick Filter Chips */
.filters-quick-section {
    margin-bottom: 20px;
}

.quick-filter-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #e0f7fa;
    border-color: #00ADB4;
    color: #00897b;
}

.filter-chip.active {
    background: linear-gradient(135deg, #00ADB4 0%, #00897b 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 173, 180, 0.3);
}

.filter-chip.active .chip-icon {
    color: #ffffff;
}

.chip-icon {
    width: 14px;
    height: 14px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.filter-chip:hover .chip-icon {
    color: #00897b;
}

/* Filter Grid */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.label-icon {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

.filter-input {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #374151;
    background: #ffffff;
    transition: all 0.2s ease;
    height: 42px;
    box-sizing: border-box;
}

.filter-input::placeholder {
    color: #9ca3af;
}

.filter-input:hover {
    border-color: #d1d5db;
}

.filter-input:focus {
    outline: none;
    border-color: #00ADB4;
    box-shadow: 0 0 0 3px rgba(0, 173, 180, 0.12);
}

/* Date input specific styling */
.filter-input[type="date"] {
    font-family: inherit;
    color: #374151;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Filter Footer */
.filters-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f1f3;
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.clear-filters-btn:hover .clear-icon {
    color: #dc2626;
}

.clear-icon {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

/* Responsive Filter Styles */
@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .filters-panel {
        margin: 12px 16px 16px;
    }

    .filters-header {
        padding: 12px 16px;
    }

    .filters-body {
        padding: 16px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-filter-chips {
        gap: 8px;
    }

    .filter-chip {
        padding: 6px 12px;
        font-size: 12px;
    }

    .filters-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .clear-filters-btn {
        justify-content: center;
    }

    .filters-expand-text {
        display: none;
    }
}

/* =================================================================
   LOADING & EMPTY STATES
   ================================================================= */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #00ADB4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    color: #718096;
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.empty-state-text {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-state-subtext {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.sidebar-empty {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
}

.empty-text {
    font-size: 14px;
    font-style: italic;
}

/* =================================================================
   ANIMATIONS
   ================================================================= */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================================
   MOBILE RESPONSIVE
   ================================================================= */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -250px;
        z-index: 1000;
        height: 100vh;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar.collapsed {
        left: -250px;
    }

    .main-content {
        margin-left: 0;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 16px 20px;
    }

    .header {
        padding: 16px 20px;
    }

    .content-area {
        padding: 0 20px 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .greeting {
        font-size: 20px;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
    }

    .header-cell:not(:first-child),
    .table-cell:not(:first-child) {
        display: none;
    }

    .recording-header {
        gap: 12px;
        padding: 16px 20px;
    }
    
    .recording-header .session-info h2 {
        font-size: 20px;
    }
    
    .recording-header .session-details {
        font-size: 12px;
    }

    .recording-view-container {
        flex-direction: column;
        margin-left: 0;
    }
    
    .recording-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
        order: 1;
    }

    .recording-main-content {
        order: 2;
    }

    .sidebar-new-patient-container {
        padding: 12px 16px;
    }

    .filters-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filters-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .quick-filters {
        justify-content: center;
    }
}

/* =================================================================
   TYPOGRAPHY
   ================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-weight-bold { font-weight: 600; }
.font-weight-normal { font-weight: 400; }
.text-muted { color: #718096; }
.text-small { font-size: 12px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* =================================================================
   NEW VERSION IFRAME CONTAINER
   ================================================================= */
.new-version-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 500;
    background: #f5f7fa;
}

.new-version-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.switch-back-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    color: #374151;
    border: 1px solid #e1e5e9;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 501;
    transition: all 0.2s ease;
}

.switch-back-btn:hover {
    background: #f3f4f6;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

/* Compact Header Variant */
.sidebar-header.compact {
    padding: 8px 16px;
}

.sidebar-header.compact img,
.sidebar-header.compact .logo-icon {
    width: 24px;
    height: 24px;
}

.sidebar-header.compact .sidebar-title,
.sidebar-header.compact .logo-text {
    font-size: 14px;
}


