/**
 * Master Application Stylesheet
 * Local Asset - Zero CDN Dependency - 100% IRANSansX Everywhere
 */
@import url('fonts.css');
@import url('liquid-glass.css');

/* CSS Reset & Global Typography Defaults */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'IRANSansX', sans-serif !important;
}

html {
    font-size: 14px;
    direction: rtl;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1280px) {
    html {
        font-size: 15.5px;
    }
}

body {
    font-family: 'IRANSansX', sans-serif !important;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

input, select, textarea {
    font: inherit;
}

/* Sidebar collapse transitions & styling */
.sidebar-collapsed #appSidebar {
    width: 4.75rem;
}

.sidebar-collapsed .sidebar-text {
    display: none !important;
}

.sidebar-collapsed .sidebar-badge {
    display: none !important;
}

.sidebar-collapsed #appSidebar a {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.sidebar-collapsed #appSidebar .sidebar-brand-area {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
}

.sidebar-collapsed #appSidebar .sidebar-brand-link {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
    justify-content: center !important;
    gap: 0 !important;
}

/* Floating Glass Navbar / Header */
.liquid-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

.dark .liquid-header {
    background: rgba(10, 15, 30, 0.65);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.5);
}

/* Floating Glass Sidebar */
.liquid-sidebar {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(36px) saturate(190%);
    -webkit-backdrop-filter: blur(36px) saturate(190%);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px -10px rgba(0, 0, 0, 0.05);
}

.dark .liquid-sidebar {
    background: rgba(11, 17, 33, 0.72);
    border-left: 1px solid var(--glass-border);
    box-shadow: -15px 0 40px -10px rgba(0, 0, 0, 0.6);
}

/* Responsive Floating Pill Badges */
.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-badge-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.25);
}

.dark .glass-badge-indigo {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.35);
}

.glass-badge-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.25);
}

.dark .glass-badge-emerald {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.35);
}

.glass-badge-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.25);
}

.dark .glass-badge-amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

/* Universal Print Mode Isolation Reset */
@media print {
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    ::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    .ambient-bg, .ambient-orb, header, aside, #appSidebar, #appHeader, #toastContainer, #sidebarBackdrop, footer {
        display: none !important;
        visibility: hidden !important;
    }
}
