/* Custom styles */
body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
}
.jumbotron {
    background: linear-gradient(135deg, #007bff, #0056b3);
}
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}
footer {
    margin-top: auto;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }

    .jumbotron h1 {
        font-size: 2rem;
    }
}
/* Custom button styles */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
/* Card styles */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-2px);
}

.alert-session-expired {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .card {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #333;
}

body.dark-mode .btn-outline-secondary {
    border-color: #555;
    color: #ffffff;
}

body.dark-mode .btn-outline-secondary:hover {
    background-color: #555;
    color: #ffffff;
}

body.dark-mode .table {
    color: #ffffff;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: #2a2a2a;
}

body.dark-mode .table-striped tbody tr:nth-of-type(even) {
    background-color: #1e1e1e;
}

body.dark-mode .badge {
    background-color: #555 !important;
}

body.dark-mode .progress-bar {
    background-color: #007bff !important;
}

body.dark-mode .text-muted {
    color: #cccccc !important;
}

body.dark-mode .bg-light {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

body.dark-mode .bg-primary {
    background-color: #0056b3 !important;
}

body.dark-mode .bg-info {
    background-color: #0d6efd !important;
}

body.dark-mode .bg-warning {
    background-color: #fd7e14 !important;
}

body.dark-mode .bg-success {
    background-color: #198754 !important;
}

/* ─── Mobile navbar improvements ────────────────────────────── */

/* Make dropdown items easier to tap on mobile */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        border: none;
        background: rgba(0, 0, 0, 0.15);
        padding: 0;
        margin-top: 0;
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
        white-space: normal;
    }

    .navbar-nav .dropdown-menu .dropdown-item:hover,
    .navbar-nav .dropdown-menu .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* Slightly larger touch targets on very small screens */
@media (max-width: 575.98px) {
    .navbar-nav .nav-link {
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        padding: 0.7rem 1.5rem;
    }
}

/* ─── Admin header links ───────────────────────────────────────── */
.admin-link {
    color: #fff !important;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.admin-link i,
.admin-link .bi {
    color: #fff;
}

@media (max-width: 576px) {
    .admin-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
}
