/* ============================================
   Taakbeheer - Albero Servicedesk Style
   Brand: alberoscholen.nl
   Primary #d5075e · Accent #a7cc45
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Albero Brand */
    --primary: #d5075e;
    --primary-dark: #a40548;
    --primary-light: #fdf0f5;
    --primary-lighter: #fef8fa;
    --primary-darker: #7a0335;
    --primary-rgb: 213, 7, 94;

    --accent: #a7cc45;
    --accent-dark: #8ab434;
    --accent-light: #f3f9e4;
    --accent-rgb: 167, 204, 69;

    /* Sidebar Albero gradient theme */
    --sidebar-bg: linear-gradient(180deg, #6b0a30 0%, #4a0825 35%, #2e0518 100%);
    --sidebar-bg-flat: #4a0825;
    --sidebar-bg-hover: rgba(255, 255, 255, 0.08);
    --sidebar-bg-active: rgba(167, 204, 69, 0.12);
    --sidebar-text: rgba(255, 255, 255, 0.65);
    --sidebar-text-active: #ffffff;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-header-bg: linear-gradient(135deg, #7a0e38 0%, #5c0a2b 100%);

    /* Neutrals */
    --bg-body: #f0f2f8;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1e2028;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-on-primary: #ffffff;
    --border-color: #e2e5ef;
    --border-light: #f0f1f5;

    /* Status */
    --status-open: #10b981;
    --status-open-bg: #dcfce7;
    --status-in-progress: #f59e0b;
    --status-in-progress-bg: #fef3c7;
    --status-completed: #9ca3af;
    --status-completed-bg: #f3f4f6;

    /* Priority */
    --priority-laag: #9ca3af;
    --priority-normaal: #3b82f6;
    --priority-hoog: #f59e0b;
    --priority-urgent: #ef4444;

    /* Layout */
    --sidebar-width: 268px;
    --topbar-height: 60px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ---- Base ---- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 0.875rem;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* ===========================================
   SIDEBAR
   =========================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 30px rgba(74, 8, 37, 0.25);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark), var(--primary));
    z-index: 1;
}

.sidebar-header {
    padding: 1.1rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 100px;
    background: var(--sidebar-header-bg);
    border-bottom: 1px solid var(--sidebar-border);
    position: relative;
    overflow: hidden;
}

/* Decorative circles in header */
.sidebar-header::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(167, 204, 69, 0.07);
    pointer-events: none;
}

.sidebar-header .sidebar-logo {
    width: 45px;
    height: 45px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: #1a1d2e;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(var(--accent-rgb), 0.3));
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.sidebar-header:hover .sidebar-logo {
    transform: scale(1.1);
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.sidebar-header h4 small {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 2px;
}

.sidebar-section {
    padding: 0.85rem 0;
    flex: 1;
}

.sidebar-section-label {
    padding: 0.65rem 1.35rem 0.4rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(167, 204, 69, 0.5);
    font-weight: 700;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 0.62rem 1.1rem;
    border-radius: var(--radius);
    margin: 2px 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.84rem;
    white-space: nowrap;
    font-weight: 450;
    position: relative;
    border-left: 3px solid transparent;
}

.sidebar .nav-link i {
    font-size: 1.1rem;
    width: 1.3rem;
    text-align: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.sidebar .nav-link:hover {
    background: var(--sidebar-bg-hover);
    color: #ffffff;
    border-left-color: var(--accent);
}

.sidebar .nav-link:hover i {
    color: var(--accent);
}

.sidebar .nav-link.active {
    background: var(--sidebar-bg-active);
    color: #ffffff;
    font-weight: 600;
    border-left-color: var(--accent);
}

.sidebar .nav-link.active i {
    color: var(--accent);
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    right: -0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 55%;
    background: var(--accent);
    border-radius: 3px 0 0 3px;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    min-width: 0;
}

.sidebar-footer .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    color: #1a1d2e;
    box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.3);
    transition: var(--transition);
}

.sidebar-footer:hover .user-avatar {
    transform: scale(1.08);
}

.sidebar-footer .user-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    color: #ffffff;
}

.sidebar-footer .user-role {
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 500;
}

.sidebar-footer .user-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    text-decoration: none;
    transition: var(--transition-fast);
}

.sidebar-footer .user-action-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
    background: var(--bg-body);
}

/* ===========================================
   TOPBAR
   =========================================== */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    animation: fadeInDown 0.4s ease both;
}

.topbar .page-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

/* ===========================================
   CONTENT WRAPPER
   =========================================== */
.content-wrapper {
    padding: 1.75rem;
    animation: fadeInUp 0.5s ease both;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: fadeInLeft 0.4s ease both;
}

.page-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.84rem;
}

/* ===========================================
   CARDS
   =========================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header i {
    color: var(--primary);
}

.card-body {
    padding: 1.25rem;
}

/* ===========================================
   STAT CARDS
   =========================================== */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: visible;
    box-shadow: var(--shadow-card);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.stat-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.stat-card.stat-open::before { background: linear-gradient(90deg, var(--status-open), #059669); }
.stat-card.stat-in-progress::before { background: linear-gradient(90deg, var(--status-in-progress), #d97706); }
.stat-card.stat-completed::before { background: linear-gradient(90deg, var(--status-completed), #6b7280); }
.stat-card.stat-urgent::before { background: linear-gradient(90deg, var(--priority-urgent), #dc2626); }
.stat-card.stat-primary::before { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
.stat-card.stat-users::before { background: linear-gradient(90deg, var(--priority-normaal), #2563eb); }
.stat-card.stat-rejected::before { background: linear-gradient(90deg, var(--priority-urgent), #dc2626); }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-card.stat-open .stat-number { color: var(--status-open); }
.stat-card.stat-in-progress .stat-number { color: var(--status-in-progress); }
.stat-card.stat-completed .stat-number { color: var(--status-completed); }
.stat-card.stat-urgent .stat-number { color: var(--priority-urgent); }

.stat-label {
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.4rem;
    font-weight: 600;
}

.stat-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.stat-card.stat-open .stat-icon {
    background: var(--status-open-bg);
    color: var(--status-open);
}
.stat-card.stat-in-progress .stat-icon {
    background: var(--status-in-progress-bg);
    color: var(--status-in-progress);
}
.stat-card.stat-completed .stat-icon {
    background: var(--status-completed-bg);
    color: var(--status-completed);
}
.stat-card.stat-primary .stat-icon {
    background: var(--primary-light);
    color: var(--primary);
}
.stat-card.stat-users .stat-icon {
    background: #dbeafe;
    color: var(--priority-normaal);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

/* ===========================================
   WELCOME BANNER
   =========================================== */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 60%, #2e0518 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: visible;
    animation: fadeInUp 0.5s ease both;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(167, 204, 69, 0.08);
    pointer-events: none;
}

.dashboard-welcome h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    position: relative;
}

.dashboard-welcome p {
    opacity: 0.8;
    margin-bottom: 0;
    font-size: 0.88rem;
    position: relative;
}

/* ===========================================
   BADGES
   =========================================== */
.badge-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3em 0.7em;
    border-radius: 50px;
    text-transform: capitalize;
}

.badge-status-open { background: #dcfce7; color: #166534; }
.badge-status-in_progress { background: #fef3c7; color: #92400e; }
.badge-status-completed { background: #f3f4f6; color: #4b5563; }

.badge-priority {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25em 0.6em;
    border-radius: 4px;
}

.badge-priority-laag { background: #f3f4f6; color: #6b7280; }
.badge-priority-normaal { background: #dbeafe; color: #1e40af; }
.badge-priority-hoog { background: #fef3c7; color: #b45309; }
.badge-priority-urgent { background: #fee2e2; color: #991b1b; }

/* ===========================================
   QUICK ACTIONS
   =========================================== */
.quick-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.84rem;
    transition: var(--transition);
    position: relative;
}

.quick-action-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    transition: width 0.2s ease;
}

.quick-action-link:hover {
    background: var(--primary-lighter);
    color: var(--primary);
    padding-left: 1.5rem;
}

.quick-action-link:hover::before {
    width: 3px;
}

.quick-action-link i:first-child {
    font-size: 1.05rem;
    color: var(--text-muted);
    width: 1.3rem;
    text-align: center;
    transition: var(--transition);
}

.quick-action-link:hover i:first-child {
    color: var(--primary);
}

.quick-action-link span:nth-child(2) { flex: 1; }

.quick-action-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: var(--transition);
}

.quick-action-link:hover .quick-action-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* ===========================================
   FORMS
   =========================================== */
.form-label {
    font-weight: 500;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.form-control,
.form-select {
    font-size: 0.84rem;
    border-color: var(--border-color);
    border-radius: var(--radius);
    padding: 0.55rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    background: var(--bg-white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    transform: translateY(-1px);
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    font-size: 0.84rem;
    font-weight: 500;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.btn-sm {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
}

/* ===========================================
   TABLES
   =========================================== */
.table-wrapper {
    overflow-x: auto;
}

.table { margin-bottom: 0; }

.table thead th {
    background: var(--bg-body);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 0.7rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.7rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.84rem;
    transition: background 0.15s;
}

.table tbody tr:hover {
    background: var(--primary-lighter);
}

/* ===========================================
   LOGIN PAGE WRAPPER
   =========================================== */
.login-page-wrapper {
    min-height: 100vh;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.login-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #2e0518 100%);
    border-radius: 0 0 60px 60px;
    z-index: 0;
}

/* ===========================================
   LOGIN PAGE
   =========================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #2e0518 100%);
    border-radius: 0 0 50px 50px;
}

.login-container::after {
    content: '';
    position: absolute;
    top: 5%;
    right: 10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(167, 204, 69, 0.06);
    pointer-events: none;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.02);
    width: 100%;
    max-width: 420px;
    padding: 2.75rem 2.25rem;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.login-card .login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .login-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: #1a1d2e;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 4px 12px rgba(var(--accent-rgb), 0.3));
    animation: float 4s ease-in-out infinite;
}

.login-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.login-card .btn-primary {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.login-card .form-control {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-lg);
}

.login-card hr {
    border-color: var(--border-light);
}

/* ===========================================
   ALERTS
   =========================================== */
.alert {
    border-radius: var(--radius-lg);
    animation: fadeInDown 0.4s ease both;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.alert-success {
    background: var(--status-open-bg);
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: var(--status-in-progress-bg);
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ===========================================
   EMPTY STATE
   =========================================== */
.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.25;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===========================================
   MODAL SECTION - Removed custom fixes
   Let Bootstrap handle modals naturally
   =========================================== */

/* ===========================================
   MOBILE NAVIGATION
   =========================================== */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.mobile-menu-toggle:hover {
    background: var(--bg-body);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1039;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.mobile-menu-open .mobile-overlay {
    display: block;
    opacity: 1;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1040;
    }
    
    body.mobile-menu-open .sidebar {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding-left: 1rem;
    }
}

@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ===========================================
   SITE SWITCHER
   =========================================== */
.switcher-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.switcher-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.5s ease both;
}

.switcher-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2.5rem;
    color: #1a1d2e;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 16px rgba(var(--accent-rgb), 0.3));
    animation: float 4s ease-in-out infinite;
}

.switcher-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.switcher-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.switcher-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.switcher-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}

.switcher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.switcher-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary);
}

.switcher-card:hover::before {
    width: 6px;
}

.switcher-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.switcher-card-icon i {
    font-size: 1.5rem;
}

.switcher-admin .switcher-card-icon {
    background: linear-gradient(135deg, var(--primary-light), #fce7ef);
    color: var(--primary);
}

.switcher-cvb .switcher-card-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.switcher-taken .switcher-card-icon {
    background: linear-gradient(135deg, var(--status-open-bg), #bbf7d0);
    color: #166534;
}

.switcher-servicedesk .switcher-card-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.switcher-card:hover .switcher-card-icon {
    transform: scale(1.1);
}

.switcher-card-content {
    flex: 1;
}

.switcher-card-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.switcher-card-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

.switcher-card-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.switcher-card:hover .switcher-card-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.switcher-footer {
    text-align: center;
    animation: fadeInUp 0.5s ease both;
    animation-delay: 0.3s;
}

/* ===========================================
   DEPARTMENT CHECKLIST
   =========================================== */
.department-checklist {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.department-check-item {
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition-fast);
    margin-bottom: 0.5rem;
}

.department-check-item:last-child {
    margin-bottom: 0;
}

.department-check-item:hover {
    background: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.department-check-item .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    cursor: pointer;
}

.department-check-item .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.department-check-item .form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* ===========================================
   QUICK ACTION LINKS
   =========================================== */
.quick-action-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.quick-action-link:last-child {
    border-bottom: none;
}

.quick-action-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.quick-action-link i:first-child {
    font-size: 1.25rem;
    width: 32px;
    color: var(--primary);
}

.quick-action-link span {
    flex: 1;
    font-weight: 500;
}

.quick-action-arrow {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.quick-action-link:hover .quick-action-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper { padding: 1rem; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .stat-number { font-size: 1.5rem; }
    .dashboard-welcome { padding: 1.5rem; }
    .dashboard-welcome h2 { font-size: 1.15rem; }
}
