/* Custom styles for Educational Visit Management System */

/* Body and general styles */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    color: var(--stm-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Footer styles */
.footer {
    margin-top: auto;
    padding: 1.5rem 0;
    background-color: var(--stm-blue);
    color: #fff;
    font-size: 0.875rem;
}

.footer p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Card styles */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(40, 41, 76, 0.05);
    transition: all 0.2s ease;
}

.card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.card-header {
    background: var(--stm-blue2, #434473);
    color: #fff;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(40, 41, 76, 0.08);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(40, 41, 76, 0.08);
    padding: 1rem 1.25rem;
}

/* Button styles */
.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 41, 76, 0.08);
}

.btn-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
    border-radius: 0.25rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

/* Form styles */
.form-control {
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(40, 41, 76, 0.15);
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: var(--stm-blue3);
    box-shadow: 0 0 0 0.25rem rgba(83, 84, 141, 0.25);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

/* Badge styles */
.badge {
    padding: 0.25em 0.5em;
    font-weight: 500;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.role-badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    margin: 0.125em;
    background-color: var(--stm-yellow);
    color: var(--stm-blue);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* List group styles */
.list-group-item {
    padding: 0.875rem 1rem;
    border-color: rgba(40, 41, 76, 0.08);
    font-size: 0.875rem;
}

.list-group-item:hover {
    background-color: rgba(40, 41, 76, 0.02);
    transform: translateX(2px);
}

.list-group-item:first-child {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.list-group-item:last-child {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

/* Table styles */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table th {
    font-weight: 600;
    padding: 0.75rem;
    border-top: none;
    background-color: rgba(40, 41, 76, 0.02);
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(40, 41, 76, 0.02);
}

/* Status badges */
.badge.bg-draft {
    background-color: var(--stm-blue2) !important;
}

.badge.bg-pending {
    background-color: var(--stm-yellow) !important;
    color: var(--stm-blue) !important;
}

.badge.bg-approved {
    background-color: #2ecc71 !important;
}

.badge.bg-rejected {
    background-color: #e74c3c !important;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    height: 100%;
    width: 1px;
    background: var(--stm-blue3);
    opacity: 0.15;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.125rem;
    top: 0.125rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--stm-blue3);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(83, 84, 141, 0.15);
}

/* Typography */
h1, .h1 { font-size: 1.75rem; }
h2, .h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.875rem; }

.text-muted {
    color: rgba(40, 41, 76, 0.6) !important;
}

/* Navbar customization */
.navbar {
    padding: 0.5rem 0;
    box-shadow: 0 1px 3px rgba(40, 41, 76, 0.1);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: var(--stm-blue);
    height: 50px;
}

body {
    padding-top: 50px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff !important;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    color: var(--stm-yellow);
}

.nav-link {
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(67, 68, 115, 0.5);
}

.nav-link .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    min-width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item {
    position: relative;
    margin-left: 0.5rem;
}

.navbar .dropdown-menu {
    margin-top: 0.25rem;
    border: none;
    box-shadow: 0 2px 8px rgba(40, 41, 76, 0.1);
    border-radius: 0.5rem;
    background-color: var(--stm-blue2);
    padding: 0.375rem;
    min-width: 180px;
}

.navbar .dropdown-item {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.navbar .dropdown-item i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
    color: var(--stm-yellow);
    font-size: 0.875rem;
}

.navbar .dropdown-item:hover {
    background-color: var(--stm-blue3);
    color: #fff;
    transform: translateX(4px);
}

.navbar .dropdown-header {
    color: var(--stm-yellow);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.375rem 0.75rem;
    opacity: 0.8;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-divider {
    height: 24px;
    width: 1px;
    background: var(--stm-blue3);
    margin: 0 0.75rem;
}

@media (max-width: 991.98px) {
    .nav-divider {
        display: none;
    }
    .navbar-nav {
        padding: 0.5rem 0;
    }
    .user-nav {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar .dropdown-menu {
        border: none;
        background: transparent;
        box-shadow: none;
        padding-left: 1rem;
    }
    .navbar .dropdown-item {
        padding: 0.5rem 1rem;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 220px;
    z-index: 100;

    padding-top: 44px;
    background-color: var(--stm-blue2);
    transition: width 0.2s;
}

.sidebar-sticky {
    position: sticky;
    top: 50px;
    height: calc(100vh - 50px);

    overflow-x: hidden;
    overflow-y: auto;
    transition: padding 0.2s, opacity 0.2s;
}

.sidebar .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: var(--stm-blue4);
    transform: translateX(2px);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: var(--stm-blue3);
    box-shadow: 0 2px 4px rgba(40, 41, 76, 0.2);
}

.sidebar .nav-link i {
    width: 1.25rem;
    font-size: 1rem;
    text-align: center;
    color: var(--stm-yellow);

    transition: transform 0.2s ease;
}

.sidebar .nav-link:hover i {
    transform: scale(1.1);
}

#adminSubmenu {
    background-color: rgba(67, 68, 115, 0.08);
    border-radius: 0.375rem;
    padding: 0.375rem;
    margin: 0.375rem 0;
}

#adminSubmenu .nav-link {
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    font-size: 0.8125rem;
    margin-bottom: 0.125rem;
}

.sidebar .nav-link[data-bs-toggle="collapse"] .fas.fa-chevron-down {
    position: absolute;
    right: 0.75rem;
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Main content spacing */
.main-content {
    margin-left: 220px;
    padding: 1.5rem;
    min-height: calc(100vh - 50px);
    background-color: #f8f9fa;
    transition: margin 0.2s ease;
}

/* Scrollbar styling */
.sidebar-sticky::-webkit-scrollbar {
    width: 3px;
}

.sidebar-sticky::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: var(--stm-blue3);
    border-radius: 3px;
}

/* Responsive sidebar */
@media (max-width: 767.98px) {
    .sidebar {
        width: 100%;
        position: relative;
        padding-top: 0;
    }
    
    .sidebar-sticky {
        height: auto;
     
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 1rem;
    }
}

/* Sidebar icon circle style (matches toggle button) */
.sidebar-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    background: rgba(40,41,76,0.92);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: #ffd600;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.sidebar .nav-link:hover .sidebar-icon-circle {
    background: #ffd600;
    color: #28294C;
}

.sidebar .nav-link:hover .sidebar-icon-circle i {
    color: #28294C;
    transform: scale(0.88);
    transition: transform 0.18s;
}

.sidebar-label {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    vertical-align: middle;
    opacity: 1;
    transition: opacity 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

/* Remove margin-left from nav-item */
.sidebar .nav-item {
    margin-left: 0 !important;
}

#adminSubmenu .sidebar-icon-circle {
    background: #ffd600;
    color: #28294C;
}
#adminSubmenu .sidebar-icon-circle i {
    color: inherit;
}
#adminSubmenu .nav-link:hover .sidebar-icon-circle {
    background: #28294C;
    color: #ffd600;
}

.navbar-brand {
    font-weight: bold;
}

/* Dashboard stats cards */
.card .fa-2x {
    transition: transform 0.3s ease-in-out;
}

.card:hover .fa-2x {
    transform: scale(1.1);
}

/* List group item hover */
.list-group-item {
    transition: background-color 0.2s ease-in-out;
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Form validation styles */
.was-validated .form-control:valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
    }
    
    .table td, .table th {
        padding: 0.625rem;
    }
}

/* Make dropdown items more visible on hover */
.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Style for required form fields */
.form-label.required:after {
    content: " *";
    color: red;
}

/* Custom badge positioning for notifications */
.nav-link .badge {
    font-size: 0.75em;
    margin-left: -0.5em;
    margin-top: -0.5em;
}

/* Card hover effect */
.card-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

/* Custom table styles */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Form validation feedback */
.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

:root {
    /* Primary Colors */
    --stm-blue: #28294C;
    --stm-blue2: #434473;
    --stm-blue3: #53548D;
    --stm-blue4: #7AA4CE;
    --stm-sixth: #59C1C1;
    --stm-gold: #B3A26E;
    --stm-yellow: #F3CC31;

    /* Utility Colors */
    --stm-text: var(--stm-blue);
    --stm-link: var(--stm-blue3);
    --stm-link-hover: var(--stm-blue4);
    --stm-border: rgba(40, 41, 76, 0.1);
}

/* Global Styles */
body {
    color: var(--stm-text);
}

/* Link Styles */
a {
    color: var(--stm-link);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--stm-link-hover);
}

/* Button Styles */
.btn-primary {
    background-color: var(--stm-blue);
    border-color: var(--stm-blue);
}

.btn-primary:hover {
    background-color: var(--stm-blue2);
    border-color: var(--stm-blue2);
}

.btn-secondary {
    background-color: var(--stm-sixth);
    border-color: var(--stm-sixth);
}

.btn-secondary:hover {
    background-color: var(--stm-blue4);
    border-color: var(--stm-blue4);
}

/* Alert Styles */
.alert-primary {
    background-color: var(--stm-blue4);
    border-color: var(--stm-blue3);
    color: var(--stm-blue);
}

.alert-secondary {
    background-color: var(--stm-sixth);
    border-color: var(--stm-gold);
    color: var(--stm-blue);
}

/* Badge Styles */
.badge.bg-primary {
    background-color: var(--stm-blue) !important;
}

.badge.bg-secondary {
    background-color: var(--stm-sixth) !important;
}

.badge.bg-danger {
    background-color: var(--stm-gold) !important;
} 

/* Trip List Page Filters and Table Styles */
.column-filter, .date-range-filter {
    min-width: 120px;
}

.table thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    padding: 1rem 0.5rem;
}

.column-filter, .date-range-filter {
    border: 1px solid #dee2e6;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.column-filter:hover, .date-range-filter:hover {
    border-color: #adb5bd;
}

.column-filter:focus, .date-range-filter:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Trip New Page Styles */
.year-group-container {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 10px;
    background-color: #fff;
}
.form-check-inline {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}
.invalid-feedback.show {
    display: block;
}

/* Year planner-specific styles moved to year_planner.css */

/* Calendar Page Styles */
.calendar-filter-badge { cursor: pointer; opacity: 1; transition: opacity 0.2s, border 0.2s; border: 2px solid transparent; }
.calendar-filter-badge.inactive { opacity: 0.4; border: 2px solid #ccc; }
.calendar-spinner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
#calendar { position: relative; min-height: 600px; }
.fc-toolbar-title { font-size: 1.25rem; font-weight: 600; }

/* Improved event text contrast */
.fc-event {
    font-weight: 500;
}
.fc-event .fc-event-title {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.fc-event .fc-event-time {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-weight: 400;
}

/* Specific color adjustments for different event types */
.fc-event[data-event-type="approved"] { 
    background-color: #2ecc71 !important;
    color: #fff !important;
}
.fc-event[data-event-type="pending"] { 
    background-color: #F3CC31 !important;
    color: #28294C !important;
}
.fc-event[data-event-type="rejected"] { 
    background-color: #e74c3c !important;
    color: #fff !important;
}
.fc-event[data-event-type="holiday"] { 
    background-color: #7AA4CE !important;
    color: #fff !important;
}
.fc-event[data-event-type="training"] { 
    background-color: #B3A26E !important;
    color: #fff !important;
}
.fc-event[data-event-type="bank_holiday"] { 
    background-color: #53548D !important;
    color: #fff !important;
}
.fc-event[data-event-type="other"] { 
    background-color: #888 !important;
    color: #fff !important;
}

/* Remove text shadow for pending events */
.fc-event[data-event-type="pending"] .fc-event-title,
.fc-event[data-event-type="pending"] .fc-event-time {
    text-shadow: none;
}

/* Ensure text colors are properly inherited */
.fc-event[data-event-type="pending"] .fc-event-title,
.fc-event[data-event-type="pending"] .fc-event-time,
.fc-event[data-event-type="pending"] .fa {
    color: #28294C !important;
}

/* Improve event hover state */
.fc-event:hover {
    filter: brightness(1.1);
}

/* Improve event content padding */
.fc-event .fc-event-main {
    padding: 2px 4px;
}

/* Improve event icon visibility */
.fc-event .fa {
    opacity: 0.9;
    margin-right: 4px;
}

@media (max-width: 991.98px) {
    .d-flex.flex-wrap.align-items-center.justify-content-between.gap-2.mb-3 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
        padding: 1rem 0.5rem !important;
    }
    #calendarFilterBadges {
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 0.5rem;
    }
    .d-flex.align-items-center.gap-2, .d-flex.flex-wrap.align-items-center.gap-2.ms-auto {
        flex-wrap: wrap;
        gap: 0.5rem !important;
        justify-content: flex-start;
    }
    #calendarViewSelect {
        min-width: 110px;
        margin-left: 0 !important;
    }
    .fc-toolbar-title { font-size: 1rem; }
}
@media (max-width: 600px) {
    .calendar-responsive-container { max-width: 100vw; min-width: 0; }
    #calendar { min-height: 400px; }
    .fc-toolbar-title { font-size: 0.95rem; }
    .calendar-filter-badge { font-size: 0.85em; padding: 0.3em 0.7em; }
    .d-flex.flex-wrap.align-items-center.justify-content-between.gap-2.mb-3 {
        padding: 0.5rem 0.2rem !important;
    }
}
.event-modal-row {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.25em;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.event-modal-row .fa {
    min-width: 1.25em;
    text-align: center;
    font-size: 1.1em;
    opacity: 0.85;
}
.event-modal-row strong {
    margin-right: 0.25em;
}
.event-modal-row span {
    display: inline;
}
.fc-day-sat, .fc-day-sun {
    background-color: #f6f7fa !important;
}
.fc .fc-col-header-cell {
    background: #28294C !important;
    color: #f8f9fa !important;
    font-weight: 700;
    border-bottom: 1px solid #222 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.fc .fc-col-header-cell a {
    pointer-events: none;
    color: inherit !important;
    text-decoration: none !important;
    cursor: default !important;
    background: none !important;
}

/* Utility class for smaller text */
.smaller {
    font-size: 0.75rem;
}

/* Unified event dot color utility classes */
.event-dot-approved { background: #2ecc71 !important; }
.event-dot-pending { background: #F3CC31 !important; }
.event-dot-rejected { background: #e74c3c !important; }
.event-dot-holiday { background: #7AA4CE !important; }
.event-dot-training { background: #B3A26E !important; }
.event-dot-bank_holiday { background: #53548D !important; }
.event-dot-other { background: #888 !important; }

/* Calendar management-specific styles moved to calendar_management.css */

/* Department-specific styles moved to departments.css */

/* Compact card header for global consistency */
.card-header-compact {
  padding: 0.5rem 1rem;
  background: var(--stm-blue2, #434473);
  color: #fff;
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 1px solid rgba(40, 41, 76, 0.08);
  font-size: 1rem;
  font-weight: 500;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}

/* --- FullCalendar All-Day Event Bar Styling --- */
.fc-daygrid-event.fc-daygrid-block-event[data-event-type="holiday"] {
  background-color: #7AA4CE !important;
  color: #fff !important;
  border-radius: 0.5em;
  font-weight: 500;
  border: none !important;
}
.fc-daygrid-event.fc-daygrid-block-event[data-event-type="training"] {
  background-color: #B3A26E !important;
  color: #fff !important;
  border-radius: 0.5em;
  font-weight: 500;
  border: none !important;
}
.fc-daygrid-event.fc-daygrid-block-event[data-event-type="bank_holiday"] {
  background-color: #53548D !important;
  color: #fff !important;
  border-radius: 0.5em;
  font-weight: 500;
  border: none !important;
}
.fc-daygrid-event.fc-daygrid-block-event[data-event-type="other"] {
  background-color: #888 !important;
  color: #fff !important;
  border-radius: 0.5em;
  font-weight: 500;
  border: none !important;
}
/* Add a small icon before the event title if a data-icon attribute is present (for future extensibility) */
.fc-daygrid-event.fc-daygrid-block-event[data-icon]:before {
  content: attr(data-icon);
  margin-right: 0.5em;
  font-family: 'Font Awesome 5 Free', 'FontAwesome', Arial, sans-serif;
  font-weight: 900;
  font-size: 1em;
  vertical-align: middle;
}
/* Slightly increase padding for better appearance */
.fc-daygrid-event .fc-event-main {
  padding: 0.25em 0.7em;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* Remove background only for timed events, not all-day block events */
.fc-timegrid-event {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* --- Dashboard Statistics Card Redesign --- */
.stat-card {
  transition: box-shadow 0.2s;
}
.stat-card:hover {
  box-shadow: 0 4px 16px rgba(40,41,76,0.10);
  transform: translateY(-2px) scale(1.02);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(40,41,76,0.08);
}
.stat-value {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.stat-label {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.01em;
}
@media (max-width: 767.98px) {
  .stat-value { font-size: 1.5rem; }
  .stat-icon { width: 38px; height: 38px; font-size: 1.2rem; }
}

.backup-status-card {
    background-color: #eaf1fb !important; /* Soft blue background */
    border-left: 4px solid #17a2b8;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(40,41,76,0.06);
}

 