/* ===================================
   CMMS Pro - Main Styles
   Modern Professional Design System
   =================================== */

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System - Professional & Modern */
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-primary-light: #60a5fa;
    --color-secondary: #8b5cf6;
    --color-accent: #ec4899;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #06b6d4;

    /* Backgrounds - Rich Dark Theme */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-elevated: #374151;
    --bg-surface: #1e293b;
    --bg-hover: rgba(59, 130, 246, 0.1);

    /* Text Colors */
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-inverse: #111827;

    /* Status Colors */
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-error: #ef4444;
    --status-info: #06b6d4;

    /* Priority Colors */
    --priority-critical: #dc2626;
    --priority-high: #f97316;
    --priority-medium: #eab308;
    --priority-low: #22c55e;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.24);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.24);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.4);
    --shadow-glow-sm: 0 0 15px rgba(59, 130, 246, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-surface: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(10, 14, 26, 0) 0%, rgba(10, 14, 26, 0.95) 100%);

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(59, 130, 246, 0.3);
    --border-width: 1px;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* ===== GLOBAL STYLES ===== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== APP CONTAINER ===== */
#app {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== SCREEN MANAGEMENT ===== */
.screen {
    display: none !important;
    min-height: 100vh;
}

.screen.active {
    display: block !important;
    animation: fadeIn 0.4s ease-out;
}

/* Ensure main screen is hidden by default */
#main-screen {
    display: none !important;
    z-index: 1;
}

#main-screen.active {
    display: flex !important;
    z-index: 1;
}

/* ===== LOGIN SCREEN ===== */
#login-screen {
    background: var(--bg-primary);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

/* Hide login screen when not active */
#login-screen:not(.active) {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

#login-screen.active {
    z-index: 9999;
    display: flex !important;
    visibility: visible;
    opacity: 1;
}

#login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.login-brand {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    filter: drop-shadow(var(--shadow-glow-sm));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
}

.login-form {
    background: var(--bg-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.input-group {
    margin-bottom: var(--space-lg);
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.01em;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-base);
    outline: none;
}

.input-group input:focus {
    border-color: var(--color-primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    outline: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.btn:hover svg {
    transform: scale(1.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.3);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.5),
        0 4px 12px rgba(59, 130, 246, 0.3),
        var(--shadow-glow-sm);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: var(--border-width) solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-color-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Button Color Variants */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: none;
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Button Sizes */
.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-icon-only {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon-only svg {
    width: 22px;
    height: 22px;
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.login-demo-hint {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

.login-demo-hint p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-family: var(--font-mono);
}

.login-demo-hint p:first-child {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-family: var(--font-family);
}

/* Login improvements */
.login-error {
    margin-top: var(--space-md);
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, rgba(255,56,92,0.08), rgba(255,184,0,0.04));
    border: 1px solid rgba(255,56,92,0.12);
    color: var(--status-error);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}
.hidden { display: none !important; }

.form-row {
    display:flex; 
    justify-content:space-between; 
    align-items:center; 
    gap:1rem; 
    margin-bottom:1rem;
}

.remember-me {
    display:flex; 
    align-items:center; 
    gap:0.5rem; 
    color:var(--text-secondary); 
    font-size:0.95rem;
}

.forgot-link {
    color:var(--text-secondary); 
    font-size:0.9rem; 
    text-decoration:none;
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

/* ===== MAIN SCREEN LAYOUT ===== */
#main-screen {
    display: flex;
    height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 85px;
    background: linear-gradient(180deg, #111827 0%, #0a0e1a 100%);
    border-right: var(--border-width) solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) 0;
    position: relative;
    z-index: var(--z-sticky);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.3) 50%, 
        transparent 100%);
    opacity: 0.5;
}

.sidebar-brand {
    margin-bottom: var(--space-3xl);
    padding: var(--space-md);
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.sidebar-brand:hover {
    transform: scale(1.05);
}

.sidebar-logo {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
    transition: all var(--transition-base);
    animation: pulse 3s ease-in-out infinite;
}

.sidebar-brand:hover .sidebar-logo {
    transform: rotate(10deg);
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.8));
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 var(--space-md);
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    position: relative;
    z-index: 1;
    width: 100%;
}

.nav-item {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: var(--border-width) solid transparent;
    border-radius: var(--radius-xl);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
    margin: 0 auto;
}

/* Tooltip on hover */
.nav-item[title]::before {
    content: attr(title);
    position: absolute;
    left: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    border: var(--border-width) solid var(--border-color);
    z-index: 10000;
}

.nav-item[title]::after {
    content: '';
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 0;
    border-color: transparent var(--bg-elevated) transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 9999;
}

.nav-item:hover[title]::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.nav-item:hover[title]::after {
    opacity: 1;
    visibility: visible;
}

.nav-item svg {
    width: 26px;
    height: 26px;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
    stroke-width: 2.2;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--color-primary);
    transform: scale(1.08);
}

.nav-item:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-item.active svg {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8));
}

.nav-item.active::before {
    left: -6px;
    width: 4px;
    height: 32px;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(59, 130, 246, 0.3);
    content: '';
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Active state indicator - override tooltip */
.nav-item.active[title]::before {
    content: attr(title);
    left: calc(100% + 16px);
    width: auto;
    height: auto;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-50%) translateX(-10px);
}

.nav-item.active:hover[title]::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* User Avatar in Sidebar - REMOVED (moved to header) */

/* Update App button - REMOVED (moved to header) */

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: var(--status-error);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
    animation: pulse 2s ease-in-out infinite;
}

.admin-only {
    display: none !important;
}

body.role-admin .admin-only {
    display: inline-flex !important;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

/* ===== TOP HEADER ===== */
.top-header {
    height: 72px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-2xl);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.top-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.5) 50%, 
        transparent 100%);
    opacity: 0.6;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Header Buttons */
.header-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.header-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.header-btn:hover::before {
    opacity: 1;
}

.header-btn svg {
    width: 20px;
    height: 20px;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.header-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.header-btn:hover svg {
    transform: scale(1.1);
    color: var(--color-primary);
}

.header-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

/* User Profile Button */
.user-profile-btn {
    padding: var(--space-xs) var(--space-md);
    gap: var(--space-md);
    min-width: 200px;
}

.user-profile-btn:hover .dropdown-icon {
    transform: translateY(2px);
}

.header-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: var(--font-weight-bold);
    color: white;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all var(--transition-base);
}

.user-profile-btn:hover .header-user-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
}

.header-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.header-user-name {
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.2;
}

.header-user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.dropdown-icon {
    width: 16px !important;
    height: 16px !important;
    color: var(--text-muted);
    transition: transform var(--transition-base);
}

/* Header Badge */
.header-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(239, 68, 68, 0.4),
        0 0 20px rgba(239, 68, 68, 0.3);
    border: 2px solid rgba(17, 24, 39, 0.95);
    animation: pulse 2s ease-in-out infinite;
}

.header-badge:empty {
    display: none;
}

/* Breadcrumb Inline */
.breadcrumb-inline {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ===== BREADCRUMB (OLD - Hidden) ===== */
.breadcrumb {
    display: none;
}

/* Breadcrumb Inline in Header */
.breadcrumb-inline {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.breadcrumb-inline .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.breadcrumb-inline .breadcrumb-item svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.breadcrumb-inline .breadcrumb-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.breadcrumb-inline .breadcrumb-item:hover svg {
    transform: scale(1.1);
}

.breadcrumb-inline .breadcrumb-item.active {
    color: var(--color-primary);
    cursor: default;
    font-weight: var(--font-weight-semibold);
    background: rgba(59, 130, 246, 0.2);
}

.breadcrumb-item:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%237b7b9e' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    margin-left: var(--space-sm);
}

/* ===== CONTENT CONTAINER ===== */
.content-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl);
}

/* Custom Scrollbar */
.content-container::-webkit-scrollbar {
    width: 8px;
}

.content-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.content-container::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}

.content-container::-webkit-scrollbar-thumb:hover {
    background: var(--bg-tertiary);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 30, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
    display: none;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-inner {
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--color-primary);
    border-right-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 400px;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 30, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    animation: fadeIn 0.2s ease-out;
}

.modal {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUpScale 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: var(--space-xl);
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-base);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.1);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(239, 68, 68, 0.4),
        0 0 20px rgba(239, 68, 68, 0.3);
    border: 2px solid var(--bg-primary);
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
}

/* ===== USER MENU POPUP ===== */
.user-menu-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    min-width: 280px;
    background: var(--bg-elevated);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 
        var(--shadow-xl),
        0 0 40px rgba(0, 0, 0, 0.3);
    padding: var(--space-lg);
    z-index: 99999;
    animation: slideInDown 0.3s ease-out;
    backdrop-filter: blur(20px);
}

.user-menu-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.user-menu-popup::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 24px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent var(--bg-elevated) transparent;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: var(--border-width) solid var(--border-color);
    position: relative;
    z-index: 1;
}

.user-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: white;
    letter-spacing: 0.5px;
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.user-details h3 {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.user-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 2px var(--space-sm);
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Session & Work Info */
.session-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.session-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
}

.session-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.session-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

.session-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* Attendance Section */
.attendance-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.attendance-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    color: var(--color-success);
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
}

.attendance-btn svg {
    width: 28px;
    height: 28px;
    transition: all var(--transition-base);
}

.attendance-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.2) 100%);
    border-color: var(--color-success);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.attendance-btn:hover:not(:disabled) svg {
    transform: scale(1.1);
}

.attendance-btn.clock-out {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--color-error);
}

.attendance-btn.clock-out:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: var(--color-error);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.attendance-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.user-menu-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    position: relative;
    z-index: 1;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
    text-align: left;
}

.user-menu-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.user-menu-item:hover {
    background: var(--bg-hover);
    color: var(--color-primary);
    transform: translateX(4px);
}

.user-menu-item:hover svg {
    color: var(--color-primary);
    transform: scale(1.1);
}

.user-menu-item.danger {
    color: var(--color-error);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: var(--border-width) solid var(--border-color);
}

.user-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.user-menu-item.danger svg {
    color: var(--color-error);
}

/* ===== NOTIFICATION PANEL ===== */
.notification-panel {
    position: fixed;
    top: 72px;
    right: 0;
    width: 420px;
    height: calc(100vh - 72px);
    background: var(--bg-elevated);
    border-left: var(--border-width) solid var(--border-color);
    box-shadow: 
        var(--shadow-2xl),
        -4px 0 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: var(--z-popover);
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(20px);
}

.notification-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        transparent 30%,
        rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
}

.notification-header {
    padding: var(--space-2xl) var(--space-xl);
    border-bottom: var(--border-width) solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.notification-header h2 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 var(--space-sm);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.notification-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.notification-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: scale(1.05);
}

.notification-filters {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: var(--border-width) solid var(--border-color);
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.filter-chip {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.filter-chip:hover {
    background: var(--bg-hover);
    border-color: var(--color-primary);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    position: relative;
    z-index: 1;
}

.notification-item {
    background: var(--bg-surface);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.notification-item:hover {
    transform: translateX(4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.notification-item:hover::before {
    opacity: 1;
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--color-primary);
}

.notification-item-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.notification-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    text-align: center;
    color: var(--text-muted);
}

.notification-empty-icon {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: var(--space-lg);
}

.notification-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: var(--border-width) solid var(--border-color);
    display: flex;
    gap: var(--space-md);
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }
    
    .top-header {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: var(--space-sm) 0;
    }
    
    .nav-item {
        width: 48px;
        height: 48px;
    }
    
    .nav-item svg {
        width: 22px;
        height: 22px;
    }
    
    .top-header {
        padding: 0 var(--space-md);
        height: 64px;
        gap: var(--space-sm);
    }
    
    .header-user-info {
        display: none;
    }
    
    .user-profile-btn {
        min-width: auto;
        padding: var(--space-xs);
    }
    
    .dropdown-icon {
        display: none;
    }
    
    .header-btn {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .header-btn svg {
        width: 18px;
        height: 18px;
    }

    .content-container {
        padding: var(--space-md);
        height: calc(100vh - 64px);
    }

    .breadcrumb-inline {
        display: none;
    }

    .notification-panel {
        width: 100%;
        max-width: 100vw;
        top: 64px;
        height: calc(100vh - 64px);
    }

    .user-menu-popup {
        left: 10px;
        right: 10px;
        width: auto;
        top: 70px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 56px;
        padding: var(--space-xs) 0;
    }
    
    .sidebar-logo {
        width: 36px;
        height: 36px;
    }
    
    .nav-item {
        width: 44px;
        height: 44px;
    }
    
    .nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .top-header {
        padding: 0 var(--space-sm);
        height: 56px;
    }
    
    .header-user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .content-container {
        padding: var(--space-sm);
        height: calc(100vh - 56px);
    }
    
    .notification-panel {
        top: 56px;
        height: calc(100vh - 56px);
    }
    
    .user-menu-popup {
        top: 60px;
        min-width: auto;
    }
    
    .session-info,
    .attendance-section {
        padding: var(--space-sm);
    }
    
    .attendance-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }
    
    .session-item {
        font-size: 0.85rem;
    }
}