/**
 * DataLens - Shared Styles
 * Consistent styling across all pages
 * 
 * @package DataLens
 * @version 2.3.0
 */

/* =====================================================
   CSS VARIABLES - Design System
   ===================================================== */
:root {
    /* Primary Colors */
    --dl-primary: #1e40af;
    --dl-primary-dark: #1e3a8a;
    --dl-primary-light: #3b82f6;
    --dl-primary-subtle: #dbeafe;
    
    /* Secondary Colors */
    --dl-success: #059669;
    --dl-success-light: #10b981;
    --dl-success-subtle: #d1fae5;
    --dl-danger: #dc2626;
    --dl-danger-subtle: #fee2e2;
    --dl-warning: #d97706;
    --dl-warning-subtle: #fef3c7;
    --dl-info: #0891b2;
    --dl-info-subtle: #cffafe;
    
    /* Neutral Colors */
    --dl-bg: #f8fafc;
    --dl-bg-card: #ffffff;
    --dl-border: #e2e8f0;
    --dl-border-light: #f1f5f9;
    --dl-text: #1e293b;
    --dl-text-muted: #64748b;
    --dl-text-light: #94a3b8;
    
    /* Shadows */
    --dl-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --dl-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --dl-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --dl-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    /* Layout */
    --dl-sidebar-width: 260px;
    --dl-sidebar-collapsed: 60px;
    --dl-header-height: 60px;
    --dl-radius-sm: 6px;
    --dl-radius: 8px;
    --dl-radius-lg: 12px;
    --dl-radius-xl: 16px;
    
    /* Typography */
    --dl-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --dl-font-mono: 'SF Mono', Monaco, 'Courier New', monospace;
    --dl-font-size-xs: 0.7rem;
    --dl-font-size-sm: 0.8rem;
    --dl-font-size-base: 0.875rem;
    --dl-font-size-lg: 1rem;
    --dl-font-size-xl: 1.125rem;
    --dl-font-size-2xl: 1.25rem;
    --dl-font-size-3xl: 1.5rem;
    
    /* Transitions */
    --dl-transition: all 0.2s ease;
    --dl-transition-slow: all 0.3s ease;
}

/* =====================================================
   BASE STYLES
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--dl-font-family);
    font-size: var(--dl-font-size-base);
    line-height: 1.5;
    color: var(--dl-text);
    background: var(--dl-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   ADMIN SIDEBAR
   ===================================================== */
.dl-sidebar {
    width: var(--dl-sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, var(--dl-primary-dark) 0%, var(--dl-primary) 100%);
    color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--dl-transition-slow);
}

.dl-sidebar.collapsed {
    width: var(--dl-sidebar-collapsed);
    min-width: var(--dl-sidebar-collapsed);
    max-width: var(--dl-sidebar-collapsed);
}

.dl-sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.dl-sidebar-brand .brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dl-sidebar-brand .brand-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dl-sidebar-brand h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    line-height: 1.2;
}

.dl-sidebar-brand .brand-tagline {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 2px;
}

.dl-sidebar-brand .brand-meta {
    font-size: 0.6rem;
    opacity: 0.5;
    margin-top: 1px;
}

.dl-sidebar-brand small {
    display: block;
    font-size: var(--dl-font-size-xs);
    opacity: 0.6;
}

/* Sidebar toggle button - centered below brand */
.dl-sidebar-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--dl-transition);
    margin: 0 auto;
}

.dl-sidebar-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.dl-sidebar.collapsed .dl-sidebar-toggle {
    transform: rotate(180deg);
}

.dl-sidebar.collapsed .brand-text,
.dl-sidebar.collapsed .dl-nav-text,
.dl-sidebar.collapsed .admin-details {
    display: none;
}

/* Section titles - maintain height in collapsed mode to prevent icon shifting */
.dl-nav-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    padding: 10px 20px 6px;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.dl-sidebar.collapsed .dl-nav-section-title {
    font-size: 0;
    color: transparent;
    padding: 6px 0;
    height: auto;
    min-height: 8px;
}

.dl-sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Modern scrollbar for sidebar */
.dl-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.dl-sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.dl-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.dl-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.35);
}

/* Firefox scrollbar */
.dl-sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) rgba(255,255,255,0.05);
}

.dl-nav-link {
    color: rgba(255,255,255,0.75);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--dl-transition);
    border-left: 3px solid transparent;
    font-size: var(--dl-font-size-sm);
}

.dl-nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.dl-nav-link.active {
    color: white;
    background: rgba(255,255,255,0.12);
    border-left-color: #60a5fa;
}

.dl-nav-link i {
    width: 20px;
    min-width: 20px;
    margin-right: 12px;
    font-size: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.dl-sidebar.collapsed .dl-nav-link {
    justify-content: center;
    padding: 14px 0;
}

.dl-sidebar.collapsed .dl-nav-link i {
    margin: 0;
}

.dl-sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.dl-admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-admin-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--dl-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--dl-font-size-sm);
    flex-shrink: 0;
}

.admin-details h6 {
    margin: 0;
    font-size: var(--dl-font-size-sm);
    font-weight: 600;
}

.admin-details small {
    color: rgba(255,255,255,0.6);
    font-size: var(--dl-font-size-xs);
}

.dl-sidebar.collapsed .dl-admin-avatar {
    margin: 0 auto;
}

/* Fix collapsed sidebar alignment */
.dl-sidebar.collapsed .dl-sidebar-brand {
    padding: 18px 10px;
    justify-content: center;
}

.dl-sidebar.collapsed .brand-content {
    justify-content: center;
}

.dl-sidebar.collapsed .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.dl-sidebar.collapsed .brand-content i {
    font-size: 1.1rem;
}

.dl-sidebar.collapsed .sidebar-logo {
    height: 24px !important;
    max-width: 40px;
}

.dl-sidebar.collapsed .dl-sidebar-footer {
    padding: 14px 10px;
    display: flex;
    justify-content: center;
}

/* Hide scrollbar when sidebar collapsed */
.dl-sidebar.collapsed .dl-sidebar-nav {
    overflow: hidden;
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */
.dl-main-wrapper {
    margin-left: var(--dl-sidebar-width);
    min-height: 100vh;
    transition: var(--dl-transition-slow);
}

.dl-main-wrapper.expanded {
    margin-left: var(--dl-sidebar-collapsed);
}

.dl-top-header {
    height: var(--dl-header-height);
    background: var(--dl-bg-card);
    border-bottom: 1px solid var(--dl-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dl-page-title {
    font-size: var(--dl-font-size-xl);
    font-weight: 600;
    margin: 0;
    color: var(--dl-text);
}

.dl-page-subtitle {
    font-size: var(--dl-font-size-sm);
    color: var(--dl-text-muted);
    margin: 2px 0 0;
}

.dl-main-content {
    padding: 24px;
}

/* =====================================================
   CARDS
   ===================================================== */
.dl-card {
    background: var(--dl-bg-card);
    border-radius: var(--dl-radius-lg);
    box-shadow: var(--dl-shadow);
    margin-bottom: 20px;
}

.dl-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--dl-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dl-card-title {
    margin: 0;
    font-size: var(--dl-font-size-base);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-card-body {
    padding: 20px;
}

.dl-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--dl-border);
    background: var(--dl-bg);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--dl-radius);
    font-size: var(--dl-font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--dl-transition);
    text-decoration: none;
}

.dl-btn-primary {
    background: var(--dl-primary);
    color: white;
}

.dl-btn-primary:hover {
    background: var(--dl-primary-dark);
    color: white;
}

.dl-btn-success {
    background: var(--dl-success);
    color: white;
}

.dl-btn-success:hover {
    background: #047857;
    color: white;
}

.dl-btn-danger {
    background: var(--dl-danger);
    color: white;
}

.dl-btn-danger:hover {
    background: #b91c1c;
    color: white;
}

.dl-btn-light {
    background: var(--dl-bg);
    color: var(--dl-text);
    border: 1px solid var(--dl-border);
}

.dl-btn-light:hover {
    background: var(--dl-border-light);
    color: var(--dl-text);
}

.dl-btn-sm {
    padding: 6px 12px;
    font-size: var(--dl-font-size-xs);
}

/* =====================================================
   SEARCHABLE FILTER
   ===================================================== */
.dl-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.dl-filter-item {
    position: relative;
}

.dl-filter-label {
    display: block;
    font-size: var(--dl-font-size-xs);
    font-weight: 600;
    color: var(--dl-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.dl-filter-wrapper {
    position: relative;
}

.dl-filter-input {
    width: 100%;
    padding: 9px 32px 9px 10px;
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    font-size: var(--dl-font-size-sm);
    background: white;
    cursor: pointer;
    transition: var(--dl-transition);
}

.dl-filter-input:focus {
    outline: none;
    border-color: var(--dl-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.dl-filter-input.has-value {
    border-color: var(--dl-success);
    background: var(--dl-success-subtle);
}

.dl-filter-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dl-text-light);
    pointer-events: none;
    font-size: 0.75rem;
}

.dl-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    box-shadow: var(--dl-shadow-lg);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.dl-filter-dropdown.show {
    display: block;
}

.dl-filter-option {
    padding: 9px 12px;
    cursor: pointer;
    font-size: var(--dl-font-size-sm);
    border-bottom: 1px solid var(--dl-border-light);
    transition: var(--dl-transition);
}

.dl-filter-option:last-child {
    border-bottom: none;
}

.dl-filter-option:hover,
.dl-filter-option.highlighted {
    background: var(--dl-primary-subtle);
}

.dl-filter-option.selected {
    background: var(--dl-primary-subtle);
    font-weight: 500;
}

.dl-filter-option-all {
    color: var(--dl-text-muted);
    font-style: italic;
}

.dl-no-options {
    padding: 12px;
    text-align: center;
    color: var(--dl-text-light);
    font-size: var(--dl-font-size-sm);
}

/* Active Filter Tags */
.dl-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--dl-border);
}

.dl-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dl-primary-subtle);
    color: var(--dl-primary);
    padding: 5px 10px;
    border-radius: 16px;
    font-size: var(--dl-font-size-xs);
    font-weight: 500;
}

.dl-filter-tag button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    line-height: 1;
}

.dl-filter-tag button:hover {
    opacity: 1;
}

/* =====================================================
   DATA TABLE
   ===================================================== */
.dl-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--dl-font-size-sm);
}

.dl-table th {
    background: var(--dl-bg);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--dl-text-muted);
    font-size: var(--dl-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 2px solid var(--dl-border);
    position: sticky;
    top: 0;
}

.dl-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--dl-border-light);
    white-space: nowrap;
}

.dl-table tbody tr:hover {
    background: var(--dl-bg);
}

/* =====================================================
   BADGES
   ===================================================== */
.dl-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: var(--dl-font-size-xs);
    font-weight: 500;
}

.dl-badge-success {
    background: var(--dl-success-subtle);
    color: var(--dl-success);
}

.dl-badge-danger {
    background: var(--dl-danger-subtle);
    color: var(--dl-danger);
}

.dl-badge-info {
    background: var(--dl-info-subtle);
    color: var(--dl-info);
}

.dl-badge-secondary {
    background: var(--dl-bg);
    color: var(--dl-text-muted);
}

/* =====================================================
   FORMS
   ===================================================== */
.dl-form-label {
    display: block;
    font-size: var(--dl-font-size-sm);
    font-weight: 500;
    color: var(--dl-text);
    margin-bottom: 6px;
}

.dl-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    font-size: var(--dl-font-size-sm);
    transition: var(--dl-transition);
}

.dl-form-control:focus {
    outline: none;
    border-color: var(--dl-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* =====================================================
   ALERTS
   ===================================================== */
.dl-alert {
    padding: 14px 16px;
    border-radius: var(--dl-radius);
    font-size: var(--dl-font-size-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.dl-alert-success {
    background: var(--dl-success-subtle);
    color: #065f46;
}

.dl-alert-danger {
    background: var(--dl-danger-subtle);
    color: #991b1b;
}

.dl-alert-warning {
    background: var(--dl-warning-subtle);
    color: #92400e;
}

.dl-alert-info {
    background: var(--dl-info-subtle);
    color: #0e7490;
}

/* =====================================================
   LOADING SPINNER
   ===================================================== */
.dl-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.dl-loading-overlay.active {
    display: flex;
}

.dl-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dl-border);
    border-top-color: var(--dl-primary);
    border-radius: 50%;
    animation: dl-spin 0.8s linear infinite;
}

@keyframes dl-spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   FOOTER
   ===================================================== */
.dl-footer {
    text-align: center;
    padding: 20px;
    color: var(--dl-text-muted);
    font-size: var(--dl-font-size-xs);
    border-top: 1px solid var(--dl-border);
    background: var(--dl-bg-card);
    margin-top: auto;
}

.dl-footer a {
    color: var(--dl-primary);
    text-decoration: none;
}

.dl-footer a:hover {
    text-decoration: underline;
}

.dl-footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dl-footer .footer-links a {
    color: var(--dl-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.dl-footer .footer-links a:hover {
    color: var(--dl-primary);
}

/* =====================================================
   STAT CARDS - Fix text cutoff
   ===================================================== */
.dl-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.dl-stat-card .dl-stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--dl-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dl-stat-card .dl-stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.dl-stat-card .dl-stat-info p {
    font-size: var(--dl-font-size-sm);
    color: var(--dl-text-muted);
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================================
   FULLSCREEN DATA VIEW MODE
   ===================================================== */
.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: var(--dl-bg-card) !important;
    overflow: auto !important;
}

.fullscreen-mode .dl-card-body {
    max-height: calc(100vh - 200px);
    overflow: auto;
}

.fullscreen-mode .dl-table-wrapper {
    max-height: calc(100vh - 280px) !important;
}

.fullscreen-overlay {
    display: none;
}

body.has-fullscreen {
    overflow: hidden;
}

body.has-fullscreen .dl-sidebar,
body.has-fullscreen .dl-top-header,
body.has-fullscreen .dl-main-wrapper > *:not(.fullscreen-mode) {
    display: none !important;
}

body.has-fullscreen .dl-main-wrapper {
    margin-left: 0 !important;
}

.btn-fullscreen {
    background: var(--dl-bg);
    border: 1px solid var(--dl-border);
    color: var(--dl-text);
    padding: 6px 12px;
    border-radius: var(--dl-radius);
    font-size: var(--dl-font-size-sm);
    cursor: pointer;
    transition: var(--dl-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-fullscreen:hover {
    background: var(--dl-primary-subtle);
    border-color: var(--dl-primary);
    color: var(--dl-primary);
}

.fullscreen-mode .btn-fullscreen {
    background: var(--dl-danger-subtle);
    border-color: var(--dl-danger);
    color: var(--dl-danger);
}

.fullscreen-mode .btn-fullscreen:hover {
    background: var(--dl-danger);
    color: white;
}

/* User Panel Fullscreen Mode */
body.has-fullscreen .app-header,
body.has-fullscreen .file-info-bar,
body.has-fullscreen .bottom-nav-menu,
body.has-fullscreen .app-footer,
body.has-fullscreen .info-section {
    display: none !important;
}

body.has-fullscreen .main-content {
    padding: 0 !important;
    max-width: 100% !important;
}

body.has-fullscreen .filter-section.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: var(--dl-bg-card) !important;
    overflow: auto !important;
    padding: 20px !important;
}

body.has-fullscreen .filter-section.fullscreen-mode .table-wrapper {
    max-height: calc(100vh - 350px) !important;
}

/* =====================================================
   BOTTOM NAVIGATION MENU (User Panel)
   ===================================================== */
.bottom-nav-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dl-bg-card);
    border-top: 1px solid var(--dl-border);
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 24px;
    color: var(--dl-text-muted);
    text-decoration: none;
    font-size: var(--dl-font-size-xs);
    transition: var(--dl-transition);
    border-radius: var(--dl-radius);
    margin: 0 4px;
}

.bottom-nav-item:hover {
    color: var(--dl-primary);
    background: var(--dl-primary-subtle);
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item span {
    font-weight: 500;
}

/* Adjust footer when bottom nav is present */
body:has(.bottom-nav-menu) .app-footer {
    margin-bottom: 70px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
    .dl-sidebar {
        width: var(--dl-sidebar-collapsed);
    }
    
    .dl-sidebar .brand-text,
    .dl-sidebar .dl-nav-text,
    .dl-sidebar .dl-nav-section-title,
    .dl-sidebar .admin-details {
        display: none;
    }
    
    .dl-sidebar .dl-nav-link {
        justify-content: center;
        padding: 14px 0;
    }
    
    .dl-sidebar .dl-nav-link i {
        margin: 0;
    }
    
    .dl-sidebar .dl-admin-avatar {
        margin: 0 auto;
    }
    
    .dl-main-wrapper {
        margin-left: var(--dl-sidebar-collapsed);
    }
    
    .dl-sidebar-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .dl-main-content {
        padding: 16px;
    }
    
    .dl-top-header {
        padding: 0 16px;
    }
    
    .dl-filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .dl-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   GLOBAL FOOTER
   ===================================================== */
.dl-page-footer {
    background: linear-gradient(135deg, var(--dl-primary-dark) 0%, var(--dl-primary) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 24px 24px;
    text-align: center;
    margin-top: auto;
}

.dl-page-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dl-page-footer .footer-logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dl-page-footer .footer-brand-text {
    text-align: left;
}

.dl-page-footer .footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.dl-page-footer .footer-tagline {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

.dl-page-footer .footer-meta {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 3px;
}

.dl-page-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dl-page-footer .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.dl-page-footer .footer-links a:hover {
    color: white;
}

.dl-page-footer .footer-links a i {
    font-size: 0.9rem;
}
