/* -- Global Styles -- */
:root {
    /* Primary Brand Colors */
    --primary-color: #FE0123;
    --secondary-color: #000000;
    --color-surface: #ffffff;
    --background-color: #f3f4f6;
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;           
    --color-black: #000000;           
    --color-table-alt: #f9fafb;
    --color-border: #e5e7eb;
    
    /* Extended Color Palette for New Design */
    --surface-light: #ffffff;
    --surface-dark: #1e293b;
    --border-light: #e5e7eb;
    --border-dark: #334155;
    --text-slate-900: #0f172a;
    --text-slate-800: #1e293b;
    --text-slate-600: #475569;
    --text-slate-500: #64748b;
    --text-slate-400: #94a3b8;
    --text-slate-300: #cbd5e1;
    --bg-slate-50: #f8fafc;
    --bg-slate-100: #f1f5f9;
    --bg-slate-800: #1e293b;

    /* Typography */
    --font-family-display: "Inter", sans-serif;
    --font-family-body: "Inter", sans-serif;

    /* Border Radius */
    --radius-default: 0.5rem;     /* 8px */
    --radius-md: 0.625rem;        /* 10px */
    --radius-lg: 0.75rem;         /* 12px */
    --radius-xl: 1rem;            /* 16px */
    
    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Spacing & Sizes */
    --spacing-xs: 0.25rem;        /* 4px */
    --spacing-sm: 0.5rem;         /* 8px */
    --spacing-md: 1rem;           /* 16px */
    --spacing-lg: 1.5rem;         /* 24px */
    --spacing-xl: 2rem;           /* 32px */
    --spacing-2xl: 3rem;          /* 48px */
    
    --padding-xs: 0.5rem;
    --padding-sm: 1rem;
    --padding-base: 1rem;
    --padding-md: 2rem;
    --padding-lg: 3rem;
    --gap-base: 2rem;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--background-color);
    color: var(--color-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Material Symbols Outlined - Base Styles */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    user-select: none;
}
/* Search Filters */
.search-dropdowns {
    display: flex;
    align-items: center;
    gap: var(--padding-sm);
}
.filter-btn {
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: var( --color-surface);
    color: var(--color-text-primary);
    /* Remove default browser styling for Safari */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Add custom dropdown arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 0.75rem center;
    background-size: 1.25rem;
}
.filter-btn:hover {
    background-color: var(--background-color);
}
.filter-btn:focus {
    outline: none;
}
.filter-btn:disabled {
    opacity: 100%;
    cursor: not-allowed;
    background-color: var(--color-surface);
    color: var(--color-text-primary);
}

/* Logout Button (Used in user menus across the app) */
.logout-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background-color: var(--color-black);
    color: var(--color-surface);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background-color: var(--color-text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.logout-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Error and Success Messages */
.error-message,
.success-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-default);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

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

