@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/Google-Sans.ttf') format('truetype');
    font-weight: 100 900;   /* variable range */
    font-style: normal;
    font-display: swap;
}

body {
    font-size: 13px;
    font-family : 'Google Sans';
}

/* Full-screen overlay for the loader */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* ✅ black with 60% opacity */
    z-index: 9999;
    text-align: center;
    color: #1b4332;
    font-weight: bold;
}

/* Center the loader in the middle of the screen */
#loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    width: 30%;
}

/* Loader bar style */
.loader {
    display: block;
    --height-of-loader: 6px;
    --loader-color: white;
    width: 100%;
    height: var(--height-of-loader);
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Animation for loader bar */
.loader::before {
    content: "";
    position: absolute;
    background: var(--loader-color);
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: 30px;
    animation: moving 1s ease-in-out infinite;
}

@keyframes moving {
    50% {
        width: 100%;
    }

    100% {
        width: 0;
        right: 0;
        left: unset;
    }
}


/* GLOBAL CUSTOM SCROLLBAR STYLE */
::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-track {
    background-color: #F5F5F5;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Optional: scrollbar hover effect */
::-webkit-scrollbar-thumb:hover {
    background-color: #333;
}

th {
    text-align: center;
    text-transform: uppercase;
}

/* Hide AdminLTE auto skip navigation link */
.skip-links {
    display: none !important;
    visibility: hidden !important;
}

tr {
    cursor: pointer;
}


input[readonly],
select[readonly] {
    background-color: #e9ecef;
}


input[readonly]:focus {
    background-color: #e9ecef;
    border: none;
    outline: none;

}

/* Hide spinner arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Disable scroll via mouse wheel */
input[type=number] {
    -moz-appearance: textfield;
    /* for Firefox */
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    display: block;
    /* ensure it shows */
    opacity: 1;
    /* override AdminLTE hiding */
    cursor: pointer;
    width: 1.5em;
    height: 1.5em;
    margin-inline-start: 0.25rem;
    /* small spacing from edge */
    margin-inline-end: 0.25rem;
    /* tint: invert to make icon white on dark bg, or remove to keep default */
    filter: invert(1) contrast(1.2);
}

.card-header {
    text-align: center;
    font-weight: bold;
}

.disabled {
    pointer-events: none;
    /* Prevent clicks */
    opacity: 0.6;
    /* Make it look inactive */
    user-select: none;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    backdrop-filter: blur(12px);
    transition: transform .3s ease, box-shadow .3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: rgba(255,255,255,.2);
}

.stat-label {
    font-size: 14px;
    opacity: .85;
}

.stat-number {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

/* Gradients */
.gradient-green {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.gradient-blue {
    background: linear-gradient(135deg, #396afc, #2948ff);
}

.gradient-purple {
    background: linear-gradient(135deg, #7f00ff, #e100ff);
}

/* Remove focus outline */

#yearSelect {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-image: url("data:image/svg+xml;utf8,<svg fill='%23198754' height='16' viewBox='0 0 20 20' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M5.516 7.548L10 12.033l4.484-4.485 1.032 1.032-5.516 5.516-5.516-5.516z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;

    padding-right: 2rem;
    cursor: pointer;
}


#yearSelect:focus {
    outline: none;
    box-shadow: none;
}


#yearSelect option {
    background-color: rgba(27, 27, 27, 0.95);
    /* pseudo-transparent */
    color: #fff;
    font-size: 0.875rem;
    padding: 0.5rem;
}


#yearSelect option:hover {
    background-color: #fabd08;
    color: #000;
}

@media (max-width: 575px) {
    .nav-badge-clamp {
        border-radius: 50px; /* Makes it a pill */
        padding: 0.5em 0.7em;
    }
}

/* INPUT NUMBER */
.form-control,
.form-select {
    border: none;
    /* Use a semi-transparent border so it works on light or dark bg */
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 0;
    padding: 10px 0 10px 10px;
    background-color: rgba(25, 135, 84, 0.1);
    /* Inherit ensures text color matches the surrounding text/label color */
    color: inherit;
    transition: all 0.3s ease;
}

/* Chrome/Safari fix for text color in dark areas */
.form-control:not(:focus) {
    opacity: 0.9;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    outline: none;
    border-bottom-color: rgba(25, 135, 84);
    /* Bootstrap Warning Gold */
    /* A very subtle gold glow that works on any background */
    background-color: rgba(25, 135, 84, 0.2);
    color: inherit;
}

/* Minimalist Arrow for Select */
.form-select {
    appearance: none;
    /* Uses a gold arrow to match the focus theme */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23198754' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1rem;
}

/* Placeholder visibility */
.form-control::placeholder {
    color: rgba(128, 128, 128, 0.6);
    font-weight: 300;
}

/* Add this to your existing CSS */

.form-select option {
    /* Set a neutral dark-grey/black background for the dropdown menu */
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* For browsers that support styling the hovered option (like Firefox) */
.form-select option:hover,
.form-select option:focus,
.form-select option:checked {
    background-color: #198754 !important;
    color: #000 !important;
}

/* 1. Remove the background and borders from the group container */
.input-group {
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* 2. Style the "09" prefix */
.input-group-text {
    background: transparent !important;
    border: none !important;
    padding: 10px 5px 10px 10px;
    font-size: 1.1rem;
    color: inherit;
    /* Matches your light/dark text */
    opacity: 0.7;
    border-radius: 0;
}

/* 3. Adjust the input to remove its own border (the group handles it) */
.input-group .form-control {
    border-bottom: none !important;
    padding-left: 0;
    /* Tighten space between 09 and number */
}

/* 4. Focus state for the ENTIRE group */
/* When the input is focused, the underline of the whole group turns gold */
.input-group:focus-within {
    border-bottom-color: #198754;
    background-color: rgba(255, 193, 7, 0.08);
}

.input-group:focus-within .input-group-text {
    color: #198754;
    /* Prefix turns gold on focus for extra "cool" factor */
    opacity: 1;
}

/* Style the Checkbox to match the Warning Gold theme */
.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.2);
    border-color: #198754;
}

.form-check-input {
    cursor: pointer;
    background-color: transparent;
    border: 1px solid rgba(128, 128, 128, 0.5);
}

/* Ensure labels inherit text color for Light/Dark compatibility */
.form-check-label {
    color: inherit;
    transition: opacity 0.2s;
}

.form-check-label:hover {
    opacity: 1;
}

.col-form-label {
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

label:has(+ input:required)::after,
label:has(+ textarea:required)::after,
label:has(+ select:required)::after {
    content: ' *';
    color: #f44336
}

#profileTabs .nav-link.active {
    color: #198754 !important; /* Bootstrap Success Green */
    border-bottom: 2px solid #198754 !important; /* Optional: Makes the bottom line green too */
}

#profileTabs .nav-link {
    color: #6c757d; /* Muted color for inactive tabs */
}