/* ==========================================================================
   MASTER DESIGN SYSTEM & DESIGN VARIABLES (LIGHT ERP THEME)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Main Layout Colors */
    --bg-base: #f0fdfa;          /* Teal-50 (Very light medical teal) */
    --bg-workspace: #f8fafc;     /* slate-50 */
    --bg-card: #ffffff;
    
    /* Premium Sidebar Color Palette (Nursing Teal Gradient) */
    --sidebar-bg: linear-gradient(185deg, #0d9488 0%, #0f766e 50%, #042f2e 100%);
    --sidebar-text: #e2fef9;     /* Brighter cyan/white for high readability */
    --sidebar-text-active: #ffffff;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.08);
    --sidebar-active-bg: linear-gradient(90deg, rgba(20, 184, 166, 0.25) 0%, rgba(56, 189, 248, 0.15) 100%);
    --sidebar-bullet: #2dd4bf;

    /* Theme Accents (Modern Nursing Teals & Medical Blues) */
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --secondary: #0ea5e9;
    --accent: #14b8a6;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e1;     /* slightly darker for crisp fields */
    --input-focus: #0d9488;
    
    /* Feedback States */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    
    /* Typography Font Stacks */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Elevations */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 10px 20px rgba(13, 148, 136, 0.08);
    
    /* Layout Dimensions */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 70px;
    
    /* Smooth Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

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

body.erp-body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Structural Flex Layout */
.erp-layout-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    width: 100%;
}

/* Backdrop overlay on mobile sidebar expansion */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   AUTHENTICATION LAYOUT — PREMIUM DARK SPLIT DESIGN (Login Page only)
   ========================================================================== */
body {
    font-family: var(--font-body);
    background-color: #032f30;
    color: var(--text-primary);
    min-height: 100vh;
}

/* ── Full-screen aurora mesh background ── */
.bg-gradient-shapes {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 80% at 20% 10%, rgba(45, 212, 191, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 80%, rgba(56, 189, 248, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(20, 184, 166, 0.12) 0%, transparent 60%),
        linear-gradient(135deg, #022c22 0%, #0f766e 50%, #042f2e 100%);
    animation: auroraPulse 18s ease-in-out infinite alternate;
}

@keyframes auroraPulse {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    50%  { filter: hue-rotate(10deg) brightness(1.04); }
    100% { filter: hue-rotate(-8deg) brightness(1); }
}

/* ── Animated floating orbs ── */
.ambient-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    animation: floatBlob 22s ease-in-out infinite;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.50) 0%, rgba(56, 189, 248, 0.20) 70%);
    top: -160px;
    right: -120px;
    animation-duration: 26s;
}

.blob-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, rgba(14, 165, 233, 0.15) 70%);
    bottom: -140px;
    left: -100px;
    animation-delay: -8s;
    animation-duration: 30s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
    top: 40%;
    left: 15%;
    animation-delay: -14s;
    animation-duration: 35s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -50px) scale(1.08); }
    66%       { transform: translate(-20px, 30px) scale(0.95); }
}

/* ── Grid dot texture overlay ── */
.bg-gradient-shapes::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

/* ── Particle stars ── */
.login-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.login-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    animation: twinkle var(--dur, 4s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50%       { opacity: 0.8; transform: scale(1.4); }
}

/* ── Auth Container ── */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    padding: 32px 16px;
}

/* ── Premium Glassmorphism Card ── */
.auth-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    padding: 52px 44px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 32px 64px rgba(0, 0, 0, 0.55),
        0 4px 24px rgba(99, 102, 241, 0.12);
    animation: cardEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

/* Glossy top-left shine on card */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.30) 30%,
        rgba(139,92,246,0.50) 60%,
        transparent 100%);
    border-radius: 28px 28px 0 0;
}

/* Subtle inner glow ring */
.auth-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 29px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.18) 0%,
        transparent 40%,
        rgba(16, 185, 129, 0.10) 100%);
    pointer-events: none;
    z-index: 0;
}

.auth-card > * { position: relative; z-index: 1; }

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Login Header ── */
.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    border-radius: 20px;
    color: #ffffff;
    margin-bottom: 22px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.15) inset,
        0 12px 32px rgba(13, 148, 136, 0.45),
        0 0 60px rgba(13, 148, 136, 0.20);
    font-size: 30px;
    font-weight: 800;
    font-family: var(--font-heading);
    animation: pulseLogo 3s ease-in-out infinite;
    position: relative;
    letter-spacing: -1px;
}

/* Ring pulse around logo */
.logo-container::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    border: 1.5px solid rgba(20, 184, 166, 0.4);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.08); opacity: 0.15; }
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%       { transform: scale(1.05) rotate(1deg);
                box-shadow: 0 16px 40px rgba(13, 148, 136, 0.6), 0 0 80px rgba(20, 184, 166, 0.25); }
}

.auth-header h2, .auth-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.6px;
    text-shadow: 0 2px 20px rgba(13, 148, 136, 0.3);
}

.auth-header p {
    font-size: 14px;
    color: rgba(148, 163, 184, 0.85);
    font-weight: 400;
    letter-spacing: 0.1px;
}

/* ── Institute badge strip under subtitle ── */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 6px 16px;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    color: #2dd4bf;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.auth-badge svg {
    width: 14px;
    height: 14px;
    color: #2dd4bf;
    flex-shrink: 0;
}

/* ── Divider line ── */
.auth-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(255,255,255,0.08) 30%,
        rgba(99,102,241,0.2) 50%,
        rgba(255,255,255,0.08) 70%, transparent);
    margin-bottom: 28px;
}

/* ── Form Label ── */
.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 9px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* ── Input Wrapper ── */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(100, 116, 139, 0.7);
    pointer-events: none;
    transition: var(--transition-smooth);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-input {
    width: 100%;
    padding: 15px 16px 15px 48px;
    font-family: var(--font-body);
    font-size: 15px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.60);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) inset;
    caret-color: #818cf8;
}

.form-input::placeholder {
    color: rgba(100, 116, 139, 0.55);
    font-size: 14px;
}

.form-input[type="password"],
.form-input.password-field {
    padding-right: 50px;
}

.form-input:focus {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(15, 23, 42, 0.80);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.18),
        0 2px 8px rgba(0,0,0,0.3) inset;
}

.form-input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
    color: #818cf8;
}

/* ── Light environment styling for inputs (Modals & Workspace overrides) ── */
.modal-content .form-input,
.erp-content-workspace .form-input {
    color: var(--text-primary) !important;
    background: #ffffff !important;
    border: 1.5px solid var(--border-color) !important;
    box-shadow: none !important;
    caret-color: var(--primary) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
}

.modal-content .form-input::placeholder,
.erp-content-workspace .form-input::placeholder {
    color: var(--text-muted) !important;
}

.modal-content .form-input:focus,
.erp-content-workspace .form-input:focus {
    border-color: var(--primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
}

/* Select dropdown specific styling */
.modal-content select.form-input,
.erp-content-workspace select.form-input {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px !important;
    padding-right: 36px !important;
}

/* ── Password Toggle ── */
.password-toggle-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(100, 116, 139, 0.6);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: var(--primary);
    background: rgba(20, 184, 166, 0.12);
}

/* ── Form Actions Row ── */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

/* ── Custom Checkbox ── */
.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 0;
}

.remember-me input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    height: 18px;
    width: 18px;
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.remember-me:hover input ~ .checkbox-custom {
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.remember-me input:checked ~ .checkbox-custom {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.4);
}

.checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me input:checked ~ .checkbox-custom::after { display: block; }

.checkbox-label {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.8);
}

/* ── Forgot Password ── */
.forgot-password {
    font-size: 13px;
    font-weight: 600;
    color: #2dd4bf;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2dd4bf;
    transition: width 0.3s ease;
}

.forgot-password:hover { color: #99f6e4; }
.forgot-password:hover::after { width: 100%; }

/* ── Submit Button ── */
.btn-submit {
    width: 100%;
    padding: 15px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 60%, var(--secondary) 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow:
        0 4px 24px rgba(13, 148, 136, 0.45),
        0 1px 0 rgba(255,255,255,0.12) inset;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

/* Shimmer sweep on hover */
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
        transparent 0%,
        rgba(255,255,255,0.22) 50%,
        transparent 100%);
    transition: left 0.55s ease;
    pointer-events: none;
}

.btn-submit:hover::before { left: 160%; }

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 36px rgba(13, 148, 136, 0.55),
        0 1px 0 rgba(255,255,255,0.15) inset;
    background-position: right center;
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
}

.btn-submit .btn-text { transition: var(--transition-smooth); letter-spacing: 0.5px; }

.btn-submit .spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    opacity: 0;
    transform: scale(0.6);
    transition: var(--transition-smooth);
}

.btn-submit.loading { pointer-events: none; }
.btn-submit.loading .btn-text  { opacity: 0; transform: scale(0.8); }
.btn-submit.loading .spinner   { opacity: 1; transform: scale(1); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alert Messages ── */
.alert {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    animation: alertBounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    backdrop-filter: blur(8px);
}

@keyframes alertBounceIn {
    0%   { transform: scale(0.88) translateY(-6px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.30);
    color: #fca5a5;
    box-shadow: 0 0 20px rgba(239,68,68,0.08);
}
.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.30);
    color: #6ee7b7;
    box-shadow: 0 0 20px rgba(16,185,129,0.08);
}
.alert-icon    { flex-shrink: 0; margin-right: 12px; width: 18px; height: 18px; margin-top: 1px; }
.alert-content { flex-grow: 1; }

/* ── Footer ── */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12.5px;
    color: rgba(100, 116, 139, 0.6);
    letter-spacing: 0.2px;
}

/* ==========================================================================
   ADMIN LAYOUT COMPONENT: COLLAPSIBLE SIDEBAR
   ========================================================================== */
.erp-sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.2);
}

/* Collapsed Sidebar State styling (Desktop) */
.erp-layout-wrapper.sidebar-collapsed .erp-sidebar {
    width: var(--sidebar-collapsed-width);
}

/* Brand Section (Topbar Logo in sidebar) */
.brand-section {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    gap: 14px;
    overflow: hidden;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.brand-info {
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--sidebar-text-active);
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 10px;
    color: var(--sidebar-text);
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Collapse brand text when sidebar collapses */
.erp-layout-wrapper.sidebar-collapsed .brand-info {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    width: 0;
}

/* Scrollable Navigation Sidebar Menu */
.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px 16px;
    /* Hide scrollbars but keep functionality */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.menu-group {
    margin-bottom: 28px;
}

.menu-group-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #2dd4bf;
    opacity: 0.65;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    padding-left: 12px;
    display: block;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

/* Hide Group Titles on Collapse */
.erp-layout-wrapper.sidebar-collapsed .menu-group-title {
    opacity: 0;
    transform: translateX(-5px);
}

.menu-list {
    list-style: none;
}

.menu-item {
    position: relative;
    margin-bottom: 4px;
}

.menu-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--sidebar-text);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    transition: var(--transition-smooth);
    gap: 12px;
    position: relative;
    white-space: nowrap;
}

.menu-link:hover {
    color: var(--sidebar-text-active);
    background-color: var(--sidebar-hover-bg);
}

.menu-link.active {
    color: var(--sidebar-text-active);
    background: var(--sidebar-active-bg);
    font-weight: 600;
}

/* Indigo Left active bar */
.menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 4px;
    background-color: var(--accent);
    border-radius: 0 4px 4px 0;
}

.menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
    transition: var(--transition-smooth);
}

.menu-icon svg {
    width: 100%;
    height: 100%;
}

.menu-text {
    flex-grow: 1;
    transition: var(--transition-smooth);
    opacity: 1;
}

/* Collapsed menu styling */
.erp-layout-wrapper.sidebar-collapsed .menu-text,
.erp-layout-wrapper.sidebar-collapsed .chevron-icon {
    opacity: 0;
    pointer-events: none;
    width: 0;
    margin: 0;
}

.erp-layout-wrapper.sidebar-collapsed .menu-link {
    justify-content: center;
    padding: 12px;
}

.erp-layout-wrapper.sidebar-collapsed .menu-link::before {
    display: none;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

.chevron-icon svg {
    width: 100%;
    height: 100%;
}

/* Rotate Chevron on Accordion Open */
.menu-item.open > .menu-link > .chevron-icon {
    transform: rotate(90deg);
    color: var(--sidebar-text-active);
}

/* ==========================================================================
   MULTI-LEVEL DROPDOWN ACCORDION MENUS (SIDEBAR)
   ========================================================================== */
.submenu-list {
    list-style: none;
    padding-left: 12px;
    margin-left: 20px;
    border-left: 1.5px dashed var(--sidebar-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-out;
}

/* Collapse submenu fully if parent sidebar collapses */
.erp-layout-wrapper.sidebar-collapsed .submenu-list {
    display: none !important;
}

.menu-item.open > .submenu-list {
    opacity: 1;
    margin-top: 4px;
    margin-bottom: 8px;
}

.submenu-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
    position: relative;
}

.submenu-link:hover {
    color: var(--sidebar-text-active);
    background-color: var(--sidebar-hover-bg);
}

.submenu-link.active {
    color: var(--sidebar-text-active);
    font-weight: 600;
}

.submenu-bullet {
    color: var(--sidebar-border);
    font-size: 12px;
    transition: var(--transition-smooth);
}

.submenu-link.active .submenu-bullet {
    color: var(--sidebar-bullet);
}

/* Nested submenus level-2 rules */
.nested-submenu {
    position: relative;
    margin-bottom: 2px;
}

.nested-submenu > .submenu-list {
    padding-left: 8px;
    margin-left: 10px;
    border-left: 1px dashed var(--sidebar-border);
}

.nested-submenu.open > .submenu-link > .chevron-icon {
    transform: rotate(90deg);
    color: var(--sidebar-text-active);
}

/* ==========================================================================
   ADMIN LAYOUT COMPONENT: VIEWPORT & TOPBAR
   ========================================================================== */
.erp-main-viewport {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 100vh;
    width: 100%;
    min-width: 0; /* Prevents flexbox container blowouts */
    background-color: var(--bg-base);
}

.erp-topbar {
    height: var(--topbar-height);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-toggle-sidebar {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.btn-toggle-sidebar:hover {
    color: var(--primary);
    background-color: var(--bg-base);
    border-color: rgba(99, 102, 241, 0.2);
}

.toggle-icon {
    width: 20px;
    height: 20px;
}

.portal-badge {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    background-color: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Academic Year Selector */
.academic-year-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-base);
    border-radius: 10px;
    padding: 4px 6px 4px 12px;
    border: 1px solid var(--border-color);
}

.academic-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.select-academic-year {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    border: none;
    background: none;
    outline: none;
    cursor: pointer;
    padding: 4px 18px 4px 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' 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 center;
    background-size: 14px;
}

.topbar-actions {
    display: flex;
    align-items: center;
}

.btn-topbar-action {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.btn-topbar-action:hover {
    color: var(--primary);
    background-color: var(--bg-base);
}

.notification-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--error);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

/* User Profile Badge Box */
.topbar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1.5px solid var(--border-color);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
}

.profile-meta {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-role {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   DYNAMIC MAIN CONTENT AREA
   ========================================================================== */
.erp-content-workspace {
    flex-grow: 1;
    padding: 40px;
    background-color: var(--bg-workspace);
    overflow-y: auto;
    width: 100%;
}

.erp-footer {
    padding: 20px 40px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Page Headers & Breadcrumbs */
.page-header {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--border-color);
    font-size: 11px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* ==========================================================================
   DASHBOARD TILES & INFORMATION CARD GRIDS
   ========================================================================== */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.2);
}

.info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.info-card:hover::after {
    background-color: var(--accent);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.06);
    transition: var(--transition-smooth);
}

.info-card:hover .card-icon {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.card-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

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

/* ==========================================================================
   TABLE SYSTEM, FILTERS, SEARCH INPUTS
   ========================================================================== */
.table-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 32px;
}

/* Card filter panel */
.table-filter-bar {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background-color: rgba(248, 250, 252, 0.5);
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    border-radius: 10px;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.select-filter {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 32px 10px 14px;
    border-radius: 10px;
    background-color: var(--bg-card);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' 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 14px center;
    background-size: 14px;
    transition: var(--transition-smooth);
}

.select-filter:focus {
    border-color: var(--input-focus);
}

.btn-filter-action {
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-filter-action:hover {
    color: var(--primary);
    background-color: var(--bg-base);
    border-color: rgba(99, 102, 241, 0.2);
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.btn-primary-action:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

/* Core Responsive Table Style */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-erp {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
    color: var(--text-secondary);
}

.table-erp th {
    background-color: rgba(241, 245, 249, 0.4);
    padding: 16px 24px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-erp td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    font-weight: 500;
}

.table-erp tr:last-child td {
    border-bottom: none;
}

.table-erp tbody tr:hover td {
    background-color: rgba(248, 250, 252, 0.8);
    color: var(--text-primary);
}

/* Table badging */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status.success { background-color: var(--success-bg); color: var(--success); }
.badge-status.warning { background-color: #fef3c7; color: #d97706; }
.badge-status.info { background-color: rgba(99, 102, 241, 0.08); color: var(--primary); }

/* ==========================================================================
   RESPONSIVE OVERLAY & DRAWER ADAPTATIONS
   ========================================================================== */
@media (max-width: 1024px) {
    /* Transform Sidebar into dynamic drawer */
    .erp-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 100;
        box-shadow: none;
    }

    .erp-layout-wrapper.sidebar-active .erp-sidebar {
        left: 0;
        box-shadow: 15px 0 45px rgba(15, 23, 42, 0.35);
    }

    /* Disable desktop collapse state in mobile viewports */
    .erp-layout-wrapper.sidebar-collapsed .erp-sidebar {
        width: var(--sidebar-width);
    }

    .erp-layout-wrapper.sidebar-collapsed .brand-info,
    .erp-layout-wrapper.sidebar-collapsed .menu-text,
    .erp-layout-wrapper.sidebar-collapsed .chevron-icon {
        opacity: 1;
        pointer-events: auto;
        width: auto;
    }

    .erp-layout-wrapper.sidebar-collapsed .menu-link {
        justify-content: flex-start;
        padding: 12px 14px;
    }

    /* Content fills full width since sidebar is off-canvas */
    .erp-main-viewport {
        width: 100%;
    }
}

/* ===== TABLET BREAKPOINT (768px) ===== */
@media (max-width: 768px) {
    /* Topbar */
    .erp-topbar {
        padding: 0 16px;
        gap: 12px;
    }

    .topbar-right {
        gap: 12px;
    }

    .academic-year-container {
        display: none;
    }

    /* Reduce profile meta text to just avatar on very small */
    .profile-role {
        display: none;
    }

    .profile-name {
        font-size: 13px;
    }

    .topbar-profile {
        padding-left: 12px;
        gap: 8px;
    }

    /* Content Workspace */
    .erp-content-workspace {
        padding: 20px 16px;
    }

    .erp-footer {
        padding: 16px;
    }

    /* Page Header */
    .page-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 22px;
    }

    /* Stats Grid: 2 columns on tablet, 1 on small mobile */
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .card-value {
        font-size: 26px;
    }

    /* Table filter bar */
    .table-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .filter-left {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-right {
        display: flex;
        justify-content: flex-end;
    }

    .search-wrapper {
        width: 100%;
    }

    .select-filter {
        width: 100%;
    }

    .btn-filter-action {
        width: 100%;
        justify-content: center;
    }

    .filter-right .btn-filter-action {
        width: auto;
    }

    /* Tables */
    .table-erp th,
    .table-erp td {
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Modals */
    .erp-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 20px 20px 0 0 !important;
        max-height: 90vh;
        overflow-y: auto;
        padding: 24px 20px !important;
        max-width: 100% !important;
    }

    .modal-title {
        font-size: 18px;
    }

    /* Grid form in modals: single column on mobile */
    .grid-form {
        grid-template-columns: 1fr !important;
    }

    .form-span-2 {
        grid-column: span 1 !important;
    }

    .modal-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions .btn-filter-action {
        width: 100%;
        justify-content: center;
    }

    /* Invoice Sheet Mobile */
    .billing-invoice-sheet {
        padding: 16px;
        font-size: 12px;
    }

    .invoice-branding-section {
        flex-direction: column;
        gap: 12px;
    }

    .invoice-summary-grid {
        grid-template-columns: 1fr;
    }

    /* Auth / Login page */
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
        margin: 16px;
    }

    .auth-header h2,
    .auth-header h1 {
        font-size: 24px;
    }

    /* Breadcrumb wrap */
    .breadcrumb {
        flex-wrap: wrap;
    }

    /* Info card padding */
    .info-card {
        padding: 18px;
    }
}

/* ===== MOBILE BREAKPOINT (480px) ===== */
@media (max-width: 480px) {
    /* Topbar squeeze */
    .erp-topbar {
        padding: 0 12px;
        height: 60px;
    }

    :root {
        --topbar-height: 60px;
    }

    .portal-badge {
        display: none;
    }

    .profile-meta {
        display: none;
    }

    .topbar-profile {
        border-left: none;
        padding-left: 0;
    }

    .btn-toggle-sidebar {
        width: 36px;
        height: 36px;
    }

    .btn-topbar-action {
        width: 36px;
        height: 36px;
    }

    /* Content */
    .erp-content-workspace {
        padding: 16px 12px;
    }

    /* Stats Grid: 1 column on mobile */
    .grid-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-value {
        font-size: 24px;
    }

    .info-card {
        padding: 16px;
        border-radius: 16px;
    }

    /* Page title */
    .page-title {
        font-size: 20px;
    }

    /* Table card */
    .table-card {
        border-radius: 16px;
    }

    .table-filter-bar {
        padding: 12px;
        gap: 10px;
    }

    .table-erp th,
    .table-erp td {
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Modal: full-screen bottom sheet on tiny screens */
    .erp-modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 20px 20px 0 0 !important;
        max-height: 95vh;
        width: 100%;
        padding: 20px 16px !important;
    }

    /* Auth Login Card */
    .auth-card {
        padding: 28px 16px;
        border-radius: 16px;
        margin: 12px;
    }

    .auth-container {
        align-items: flex-start;
        padding-top: 40px;
    }

    .logo-container {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .auth-header h2,
    .auth-header h1 {
        font-size: 22px;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .forgot-password {
        align-self: flex-end;
    }

    /* Sidebar full width on tiny screens */
    .erp-sidebar {
        width: 100% !important;
        max-width: 300px;
    }

    /* Footer text */
    .erp-footer {
        padding: 12px;
        font-size: 12px;
    }
}

/* ===== EXTRA SMALL (360px) ===== */
@media (max-width: 360px) {
    .erp-content-workspace {
        padding: 12px 10px;
    }

    .page-title {
        font-size: 18px;
    }

    .card-value {
        font-size: 22px;
    }

    .auth-card {
        padding: 24px 14px;
        margin: 8px;
    }

    .table-erp th,
    .table-erp td {
        padding: 8px 10px;
        font-size: 11.5px;
    }
}

/* ===== PRINT MEDIA: Clean Invoice Print ===== */
@media print {
    .erp-sidebar,
    .erp-topbar,
    .erp-footer,
    .btn-filter-action,
    .btn-close-modal,
    .modal-actions,
    .sidebar-overlay {
        display: none !important;
    }

    .erp-modal {
        position: static !important;
        background: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
    }

    .modal-content {
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .erp-content-workspace {
        padding: 0 !important;
    }

    body {
        background: white !important;
    }
}

 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       P R E M I U M   D A S H B O A R D   C A R D S   &   S T A T S 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 . g l a s s - c a r d   { 
         b a c k g r o u n d :   v a r ( - - b g - c a r d ) ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ; 
         b o r d e r - r a d i u s :   1 6 p x ; 
         p a d d i n g :   1 . 5 r e m ; 
         b o x - s h a d o w :   v a r ( - - s h a d o w - m d ) ; 
         t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   e a s e ,   b o x - s h a d o w   0 . 3 s   e a s e ,   b o r d e r - c o l o r   0 . 3 s   e a s e ; 
 } 
 
 . g l a s s - c a r d : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 3 p x ) ; 
         b o x - s h a d o w :   v a r ( - - s h a d o w - h o v e r ,   0   1 0 p x   2 0 p x   r g b a ( 1 3 ,   1 4 8 ,   1 3 6 ,   0 . 1 2 ) ) ; 
         b o r d e r - c o l o r :   r g b a ( 1 3 ,   1 4 8 ,   1 3 6 ,   0 . 2 5 ) ; 
 } 
 
 . d a s h b o a r d - g r i d   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 2 4 0 p x ,   1 f r ) ) ; 
         g a p :   1 . 5 r e m ; 
         m a r g i n - b o t t o m :   2 r e m ; 
 } 
 
 . s t a t - c a r d   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         g a p :   1 r e m ; 
 } 
 . s t a t - i c o n   { 
         w i d t h :   6 0 p x ;   h e i g h t :   6 0 p x ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         d i s p l a y :   f l e x ;   a l i g n - i t e m s :   c e n t e r ;   j u s t i f y - c o n t e n t :   c e n t e r ; 
         f o n t - s i z e :   1 . 5 r e m ;   c o l o r :   w h i t e ; 
 } 
 . s t a t - i n f o   h 3   {   f o n t - s i z e :   1 . 8 r e m ;   m a r g i n :   0 ;   f o n t - w e i g h t :   7 0 0 ;   c o l o r :   v a r ( - - t e x t - p r i m a r y ) ;   } 
 . s t a t - i n f o   p   {   m a r g i n :   0 ;   c o l o r :   v a r ( - - t e x t - m u t e d ) ;   f o n t - s i z e :   0 . 8 5 r e m ;   t e x t - t r a n s f o r m :   u p p e r c a s e ;   l e t t e r - s p a c i n g :   1 p x ;   f o n t - w e i g h t :   6 0 0 ;   } 
 
 . b g - g r a d i e n t - 1   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 3 B 8 2 F 6 ,   # 2 5 6 3 E B ) ;   } 
 . b g - g r a d i e n t - 2   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 1 0 B 9 8 1 ,   # 0 5 9 6 6 9 ) ;   } 
 . b g - g r a d i e n t - 3   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # F 5 9 E 0 B ,   # D 9 7 7 0 6 ) ;   } 
 . b g - g r a d i e n t - 4   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # E F 4 4 4 4 ,   # D C 2 6 2 6 ) ;   } 
 . b g - g r a d i e n t - 5   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 8 B 5 C F 6 ,   # 7 C 3 A E D ) ;   } 
 . b g - g r a d i e n t - 6   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # E C 4 8 9 9 ,   # D B 2 7 7 7 ) ;   } 
  
 / *   - - -   M o d e r n   D a s h b o a r d   W r a p p e r   - - -   * / 
 . d a s h b o a r d - c o n t a i n e r   { 
         p a d d i n g :   2 4 p x ; 
         b a c k g r o u n d :   v a r ( - - b g - w o r k s p a c e ) ; 
         m i n - h e i g h t :   c a l c ( 1 0 0 v h   -   7 0 p x ) ; 
         f o n t - f a m i l y :   ' O u t f i t ' ,   s a n s - s e r i f ; 
 } 
 . p a g e - h e a d e r   { 
         m a r g i n - b o t t o m :   2 4 p x ; 
 } 
 . p a g e - t i t l e   { 
         f o n t - s i z e :   2 8 p x ; 
         f o n t - w e i g h t :   7 0 0 ; 
         c o l o r :   v a r ( - - p r i m a r y ) ; 
         m a r g i n :   0 ; 
 } 
 . b r e a d c r u m b   { 
         l i s t - s t y l e :   n o n e ; 
         p a d d i n g :   0 ; 
         m a r g i n :   0   0   8 p x   0 ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         g a p :   8 p x ; 
         f o n t - s i z e :   1 4 p x ; 
         c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
 } 
 . b r e a d c r u m b   a   { 
         c o l o r :   v a r ( - - s e c o n d a r y ) ; 
         t e x t - d e c o r a t i o n :   n o n e ; 
         f o n t - w e i g h t :   5 0 0 ; 
 } 
 . b r e a d c r u m b   a : h o v e r   { 
         t e x t - d e c o r a t i o n :   u n d e r l i n e ; 
 }  
 