/* Lucide Icons Custom Styling and Sizing Integration */
svg.lucide {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    /* matches FontAwesome alignment */
    stroke-width: 2px;
}

/* Spinner / rotate support for Lucide */
svg.lucide.fa-spin {
    animation: lucide-spin 2s infinite linear;
}

@keyframes lucide-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Design Tokens & Color Palettes --- */
:root {
    --font-primary: 'Outfit', 'Inter', sans-serif;

    /* Light Theme Palette */
    --bg-app: #f4f6f9;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.9);
    --border-color: #d8e0e9;

    --text-main: #000000;
    --text-muted: #000000;
    --text-sidebar: #000000;

    --color-primary: #4f46e5;
    /* Indigo 600 */
    --color-primary-hover: #4338ca;
    --color-primary-light: rgba(79, 70, 229, 0.08);

    --color-success: #10b981;
    /* Emerald 500 */
    --color-success-light: rgba(16, 185, 129, 0.08);
    --color-danger: #ef4444;
    /* Red 500 */
    --color-danger-light: rgba(239, 68, 68, 0.08);
    --color-warning: #f59e0b;
    /* Amber 500 */
    --color-warning-light: rgba(245, 158, 11, 0.08);
    --color-info: #06b6d4;
    /* Cyan 500 */
    --color-info-light: rgba(6, 182, 212, 0.08);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

    --sidebar-width: 260px;
    --navbar-height: 70px;
    --border-radius: 4px;
    /* Minimal border radius requested */

    --glass-blur: blur(8px);
}

/* --- Base Elements Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ensure 100% black text for content elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span:not([class*="text-"]):not(.btn *):not(button *),
td,
th,
label,
.text-muted,
.text-secondary,
.form-text {
    color: #000000 !important;
}

/* Specific elements like icons, white text inside buttons or badges should not be forced to black */
.btn-primary,
.btn-primary *,
.btn-danger,
.btn-danger *,
.btn-success,
.btn-success *,
.badge,
.badge *,
.att-status-btn.active,
.att-status-btn.active *,
body #sidebar-container .sidebar-link.active,
body #sidebar-container .sidebar-link.active *,
body #sidebar-container .sidebar-link.active span,
body #sidebar-container .sidebar-link.active i,
body #toast-container .toast:not(.bg-warning),
body #toast-container .toast:not(.bg-warning) *,
body #toast-container .toast:not(.bg-warning) span {
    color: #ffffff !important;
}

/* Warning toast keeps black text for readability on yellow bg */
body #toast-container .toast.bg-warning,
body #toast-container .toast.bg-warning *,
body #toast-container .toast.bg-warning span {
    color: #000000 !important;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

/* Enforce font-weight 500 max for all buttons and button text components, preserving icon font weights */
.btn,
button,
a.btn,
.btn *:not(i):not([class*="fa-"]),
button *:not(i):not([class*="fa-"]),
a.btn *:not(i):not([class*="fa-"]) {
    font-weight: 500 !important;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* --- Premium Custom Loader --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #ffffff 0%, var(--bg-app) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
}

[data-theme="dark"] .page-loader {
    background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 100%);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: loaderContentFadeIn 0.5s ease-out;
}

/* Beautiful pulsing gradient ring spinner */
.custom-spinner {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spinnerSpin 1.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.ring-1 {
    border-top-color: #4f46e5;
    animation-delay: -0.4s;
}

.ring-2 {
    border-right-color: #6366f1;
    animation-delay: -0.2s;
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
}

.ring-3 {
    border-bottom-color: #06b6d4;
    animation-delay: 0s;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

.spinner-core {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background-color: var(--color-primary-light);
    border-radius: 50%;
    animation: spinnerPulse 1.2s ease-in-out infinite alternate;
}

.loader-text {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-main);
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textPulse 1.5s ease-in-out infinite alternate;
}

[data-theme="dark"] .loader-text {
    background: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes spinnerSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinnerPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes textPulse {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

@keyframes loaderContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner-container {
    text-align: center;
}

/* --- Layout Architecture --- */
.sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    color: var(--text-main);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.main-content-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.navbar-wrapper {
    height: var(--navbar-height);
    background-color: var(--bg-navbar);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 990;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.toggle-chevron {
    transition: transform 0.2s ease;
}

[data-bs-toggle="collapse"].collapsed .toggle-chevron {
    transform: rotate(180deg);
}

.footer-wrapper {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.875rem;
}

/* --- Sidebar Menu Styles --- */
.sidebar-header {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #4f46e5, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 0.5rem;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #475569 !important;
    /* Slightly distinct but pure black overridden */
    font-weight: 800;
    margin: 1.25rem 0.75rem 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.75rem;
    border-radius: var(--border-radius);
    color: #000000 !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.sidebar-link i,
.sidebar-link svg {
    width: 22px;
    height: 22px;
    margin-right: 1.1rem;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Beautiful color coding for sidebar icons */
.sidebar-link[href*="dashboard"] i,
.sidebar-link[href*="dashboard"] svg {
    color: #3b82f6 !important;
}

.sidebar-link[href*="labours"] i,
.sidebar-link[href*="labours"] svg {
    color: #10b981 !important;
}

.sidebar-link[href*="attendance"] i,
.sidebar-link[href*="attendance"] svg {
    color: #0d9488 !important;
}

.sidebar-link[href*="salary"] i,
.sidebar-link[href*="salary"] svg {
    color: #d97706 !important;
}

.sidebar-link[href*="payments"] i,
.sidebar-link[href*="payments"] svg {
    color: #f43f5e !important;
}

.sidebar-link[href*="advances"] i,
.sidebar-link[href*="advances"] svg {
    color: #8b5cf6 !important;
}

.sidebar-link[href*="bonus_penalty"] i,
.sidebar-link[href*="bonus_penalty"] svg {
    color: #ec4899 !important;
}

.sidebar-link[href*="expenses"] i,
.sidebar-link[href*="expenses"] svg {
    color: #f97316 !important;
}

.sidebar-link[href*="reports"] i,
.sidebar-link[href*="reports"] svg {
    color: #6366f1 !important;
}

.sidebar-link[href*="sites"] i,
.sidebar-link[href*="sites"] svg {
    color: #b45309 !important;
}

.sidebar-link[href*="shifts"] i,
.sidebar-link[href*="shifts"] svg {
    color: #6d28d9 !important;
}

.sidebar-link[href*="holidays"] i,
.sidebar-link[href*="holidays"] svg {
    color: #06b6d4 !important;
}

.sidebar-link[href*="settings"] i,
.sidebar-link[href*="settings"] svg {
    color: #475569 !important;
}

body #sidebar-container .sidebar-link:hover,
body #sidebar-container .sidebar-link:hover *,
body #sidebar-container .sidebar-link:hover span {
    color: var(--color-primary) !important;
}

body #sidebar-container .sidebar-link.active:hover,
body #sidebar-container .sidebar-link.active:hover *,
body #sidebar-container .sidebar-link.active:hover span,
body #sidebar-container .sidebar-link.active:hover i,
body #sidebar-container .sidebar-link.active:hover svg {
    color: #ffffff !important;
}

.sidebar-link:hover {
    background-color: var(--color-primary-light);
}

.sidebar-link:hover i,
.sidebar-link:hover svg {
    transform: scale(1.15);
}

.sidebar-link.active {
    background-color: var(--color-primary);
}

/* --- Premium Bootstrap Elements Customizations --- */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
}

.card-body {
    padding: 1.5rem;
}

/* Stat Card specific overrides */
.stat-card {
    position: relative;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-card:hover {
    transform: translateY(-2.5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

.stat-card.info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%) !important;
    border-color: #bae6fd !important;
}

.stat-card.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #ccfbf1 100%) !important;
    border-color: #bbf7d0 !important;
}

.stat-card.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%) !important;
    border-color: #fde68a !important;
}

.stat-card.danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #ffe4e6 100%) !important;
    border-color: #fecaca !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background-color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.stat-card.info .stat-icon {
    color: #0284c7 !important;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.15);
}

.stat-card.success .stat-icon {
    color: #16a34a !important;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.15);
}

.stat-card.warning .stat-icon {
    color: #d97706 !important;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.15);
}

.stat-card.danger .stat-icon {
    color: #dc2626 !important;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.15);
}

/* --- Table Styling --- */
.table-responsive {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #e2e8f0;
    color: #000000 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-hover tbody tr:hover td {
    background-color: rgba(79, 70, 229, 0.03) !important;
}

/* --- Forms Customizations --- */
.form-control,
.form-select {
    background-color: var(--bg-card);
    border: 1px solid #94a3b8;
    /* Darker border for higher contrast */
    border-radius: var(--border-radius);
    padding: 0.42rem 0.75rem;
    color: #000000 !important;
    font-size: 0.925rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-card);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* --- Premium Buttons Customization --- */
.btn {
    padding: 0.42rem 1rem !important;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
    padding: 0.42rem 1.1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-light {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: #000000 !important;
    font-weight: 600;
    padding: 0.42rem 1.1rem;
    border-radius: var(--border-radius);
}

.btn-light:hover {
    background-color: #cbd5e1;
    border-color: #94a3b8;
}

/* --- Badge Customs --- */
.badge {
    padding: 0.45em 0.7em;
    font-weight: 600;
    border-radius: var(--border-radius);
    font-size: 0.775rem;
}

.bg-success-light {
    color: #065f46 !important;
    background-color: #d1fae5 !important;
}

.bg-danger-light {
    color: #991b1b !important;
    background-color: #fee2e2 !important;
}

.bg-warning-light {
    color: #92400e !important;
    background-color: #fef3c7 !important;
}

.bg-info-light {
    color: #3730a3 !important;
    background-color: #e0e7ff !important;
}

/* Enforce child elements inside light color-coded badges to inherit their parent's text color instead of forcing white */
.badge[class*="-light"] *,
.badge[class*="text-"] * {
    color: inherit !important;
}

/* QR Save Mode button group custom label states overriding global label colors */
input[name="qr-save-mode"]+label {
    font-weight: 600 !important;
    transition: all 0.2s ease-in-out;
}

input[name="qr-save-mode"]#qr-save-manual+label {
    color: #4f46e5 !important;
    border-color: #4f46e5 !important;
    background-color: transparent !important;
}

input[name="qr-save-mode"]#qr-save-auto+label {
    color: #10b981 !important;
    border-color: #10b981 !important;
    background-color: transparent !important;
}

input[name="qr-save-mode"]#qr-save-manual:checked+label {
    color: #ffffff !important;
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

input[name="qr-save-mode"]#qr-save-auto:checked+label {
    color: #ffffff !important;
    background-color: #10b981 !important;
    border-color: #10b981 !important;
}

/* --- Modals --- */
.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* --- Attendance Roll Grid Classes --- */
.att-status-selector {
    display: flex;
    gap: 0.35rem;
}

.att-status-btn {
    flex: 1;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569 !important;
    transition: all 0.2s ease;
}

.att-status-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a !important;
}

.att-status-btn.active-present.active {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.att-status-btn.active-half.active {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
}

.att-status-btn.active-absent.active {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.att-status-btn.active-leave.active {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* Custom styles for compact overtime hours input */
.overtime-hours {
    text-align: center;
    max-width: 75px;
    margin: 0 auto;
}

.overtime-hours::-webkit-outer-spin-button,
.overtime-hours::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.overtime-hours {
    -moz-appearance: textfield;
}

/* Premium Bulk Option Buttons overrides */
.btn-outline-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.btn-outline-success:hover {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.btn-outline-danger {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.btn-outline-danger:hover {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

/* --- Gorgeous Auth Login Page (Light themed & Elegant) --- */
.bg-auth {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 50%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-split-card {
    width: 100%;
    max-width: 960px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(79, 70, 229, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    min-height: 560px;
}

.auth-split-left {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%) !important;
    color: #ffffff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 45%;
}

.auth-split-right {
    padding: 3rem 2.5rem;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-split-card .input-group-text {
    background-color: #f8fafc;
    border: 1px solid #94a3b8;
    border-radius: 4px 0 0 4px;
    font-size: 1.05rem;
    padding-left: 1rem;
    padding-right: 0.75rem;
    border-right: none;
}

.auth-split-card .form-control {
    border-radius: 0 4px 4px 0;
    border: 1px solid #94a3b8;
    border-left: none;
    font-weight: 550;
    color: #000000 !important;
    padding: 0.42rem 1rem 0.42rem 0.65rem;
}

.auth-split-card .input-group:focus-within .input-group-text,
.auth-split-card .input-group:focus-within .form-control {
    border-color: #4f46e5 !important;
    background-color: #ffffff;
}

@media (max-width: 991.98px) {
    .auth-split-card {
        max-width: 440px;
        flex-direction: column;
        min-height: auto;
    }

    .auth-split-left {
        display: none !important;
    }

    .auth-split-right {
        width: 100%;
        padding: 2.5rem 1.75rem;
    }
}

/* --- Photo upload preview --- */
.avatar-upload-preview {
    width: 90px;
    height: 90px;
    border-radius: var(--border-radius);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

/* --- Action Icons in Tables Overrides --- */
.btn-edit:not(.dropdown-item),
.btn-delete:not(.dropdown-item),
a[title="View Ledger"] {
    font-size: 1.15rem !important;
    padding: 0.5rem !important;
    border-radius: 50% !important;
    /* Circular soft hover background */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background-color: transparent !important;
    /* No default background */
    box-shadow: none !important;
    width: 36px;
    height: 36px;
}

/* Edit Button Style */
.btn-edit:not(.dropdown-item) i,
.btn-edit:not(.dropdown-item) svg {
    color: #4f46e5 !important;
    /* Premium Indigo */
    transition: transform 0.2s ease !important;
}

.btn-edit:not(.dropdown-item):hover {
    background-color: rgba(79, 70, 229, 0.08) !important;
    /* Soft overlay */
}

.btn-edit:not(.dropdown-item):hover i,
.btn-edit:not(.dropdown-item):hover svg {
    color: #4338ca !important;
    transform: scale(1.15);
}

/* Delete Button Style */
.btn-delete:not(.dropdown-item) i,
.btn-delete:not(.dropdown-item) svg {
    color: #ef4444 !important;
    /* Premium Red */
    transition: transform 0.2s ease !important;
}

.btn-delete:not(.dropdown-item):hover {
    background-color: rgba(239, 68, 68, 0.08) !important;
}

.btn-delete:not(.dropdown-item):hover i,
.btn-delete:not(.dropdown-item):hover svg {
    color: #dc2626 !important;
    transform: scale(1.15);
}

/* Dropdown Action Items for Edit and Delete */
.dropdown-item.btn-edit {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    background-color: transparent !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 0 !important;
    padding: 0.5rem 1rem !important;
}

.dropdown-item.btn-edit i {
    color: var(--color-primary) !important;
    font-size: 1rem !important;
    margin-right: 0.5rem !important;
    transform: none !important;
    transition: none !important;
}

.dropdown-item.btn-edit:hover {
    background-color: var(--color-primary-light) !important;
}

.dropdown-item.btn-delete {
    color: var(--color-danger) !important;
    font-weight: 600 !important;
    background-color: transparent !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 0 !important;
    padding: 0.5rem 1rem !important;
}

.dropdown-item.btn-delete i {
    color: var(--color-danger) !important;
    font-size: 1rem !important;
    margin-right: 0.5rem !important;
    transform: none !important;
    transition: none !important;
}

.dropdown-item.btn-delete:hover {
    background-color: var(--color-danger-light) !important;
}

/* View Ledger Button Style */
a[title="View Ledger"] i,
a[title="View Ledger"] svg {
    color: #0d9488 !important;
    /* Teal */
    transition: transform 0.2s ease !important;
}

a[title="View Ledger"]:hover {
    background-color: rgba(13, 148, 136, 0.08) !important;
}

a[title="View Ledger"]:hover i,
a[title="View Ledger"]:hover svg {
    color: #0f766e !important;
    transform: scale(1.15);
}

/* --- Responsive Media Queries --- */
@media (max-width: 991.98px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
    }

    .sidebar-wrapper.show {
        transform: translateX(0);
    }

    .main-content-wrapper {
        margin-left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 995;
    }
}

/* Compact input and button styles, and seamless full-screen card on smaller mobile viewports */
@media (max-width: 575.98px) {
    .bg-auth {
        padding: 0 !important;
        background: #ffffff !important;
    }

    .auth-split-card {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        min-height: 100vh !important;
    }

    .auth-split-right {
        padding: 1rem 1rem !important;
        justify-content: flex-start !important;
        padding-top: 1rem !important;
    }

    .auth-split-right .text-center.mb-4 {
        margin-bottom: 1rem !important;
    }

    .auth-split-right .text-center span.mb-3 {
        margin-bottom: 0.5rem !important;
    }

    /* Forms & Buttons - readable compact sizes for mobile */
    .form-control {
        padding: 0.28rem 0.45rem !important;
        font-size: 0.82rem !important;
    }

    .form-select {
        padding: 0.28rem 1.35rem 0.28rem 0.45rem !important;
        font-size: 0.82rem !important;
    }

    .btn,
    .btn-primary,
    .btn-light,
    .btn-success,
    .btn-danger,
    .btn-warning,
    .btn-info {
        padding: 0.28rem 0.55rem !important;
        font-size: 0.82rem !important;
    }

    .auth-split-card .form-control {
        padding: 0.38rem 0.75rem 0.38rem 0.55rem !important;
        font-size: 0.88rem !important;
    }

    .form-label {
        font-size: 0.82rem !important;
    }

    /* Main container padding */
    main#app,
    .p-4 {
        padding: 0.6rem !important;
    }

    /* Overall card body padding and spacing */
    .card-body {
        padding: 0.75rem !important;
    }

    .card-header {
        padding: 0.65rem 0.85rem !important;
        font-size: 0.88rem !important;
    }

    /* Stat cards styling on mobile */
    .stat-card .card-body {
        padding: 0.55rem 0.65rem !important;
        gap: 0.5rem !important;
    }

    .stat-card .stat-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.85rem !important;
        border-radius: 4px !important;
    }

    .stat-card h4,
    .stat-card h3 {
        font-size: 1.05rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .stat-card span {
        font-size: 0.68rem !important;
        margin-bottom: 0 !important;
    }

    .stat-card small {
        font-size: 0.65rem !important;
        margin-top: 0 !important;
    }

    /* Quick action buttons compact on mobile */
    .quick-action-btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.55rem !important;
    }

    .quick-action-btn i {
        font-size: 0.9rem !important;
    }

    /* Table styling on mobile - horizontally scrollable */
    .table th {
        padding: 0.55rem 0.7rem !important;
        font-size: 0.78rem !important;
        white-space: nowrap;
    }

    .table td {
        padding: 0.55rem 0.7rem !important;
        font-size: 0.82rem !important;
        white-space: nowrap;
    }

    .table-responsive .table {
        min-width: 600px;
    }

    /* Row gutter spacing override */
    .row.g-4 {
        --bs-gutter-x: 0.5rem !important;
        --bs-gutter-y: 0.5rem !important;
    }

    .mb-4 {
        margin-bottom: 0.5rem !important;
    }

    /* General text readability */
    body {
        font-size: 0.9rem !important;
    }

    .small,
    small {
        font-size: 0.78rem !important;
    }

    h5,
    .h5 {
        font-size: 1.05rem !important;
    }

    h6,
    .h6 {
        font-size: 0.95rem !important;
    }

    .badge {
        font-size: 0.72rem !important;
    }

    .text-muted {
        font-size: inherit !important;
    }

    /* Modal full-width on mobile */
    .modal-dialog {
        margin: 0.5rem !important;
    }

    /* Compact modal/form spacing on mobile */
    .modal-body {
        padding: 0.75rem !important;
    }

    .modal-header,
    .modal-footer {
        padding: 0.65rem 0.75rem !important;
    }

    .modal-body .row {
        --bs-gutter-x: 0.6rem !important;
        --bs-gutter-y: 0.6rem !important;
    }

    .modal-body hr {
        margin: 0.75rem 0 !important;
    }

    .form-label {
        margin-bottom: 0.2rem !important;
    }

    .modal-body .border-end {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Bright tab toggle buttons (Sign In / Sign Up) active/inactive states */
#tab-login,
#tab-signup {
    border: 0;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #64748b !important;
    /* Inactive grey */
    background: transparent !important;
    box-shadow: none !important;
}

#tab-login.active-tab,
#tab-signup.active-tab {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
}

/* --- Beautiful Color Coding for Status Dropdowns --- */
select.attendance-status.status-present {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: #065f46 !important;
    font-weight: 600 !important;
}

select.attendance-status.status-half_day {
    border-color: #f59e0b !important;
    background-color: rgba(245, 158, 11, 0.08) !important;
    color: #92400e !important;
    font-weight: 600 !important;
}

select.attendance-status.status-absent {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #991b1b !important;
    font-weight: 600 !important;
}

select.attendance-status.status-leave {
    border-color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.08) !important;
    color: #1d4ed8 !important;
    font-weight: 600 !important;
}

/* --- Dashboard Quick Action Buttons --- */
.quick-action-btn {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border: 1px solid var(--border-color) !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease !important;
    border-radius: var(--border-radius) !important;
}

.quick-action-btn:hover {
    background-color: var(--color-primary-light) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12) !important;
}

.quick-action-btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Fix scrolling in Bootstrap scrollable modals with form wrappers */
.modal-dialog-scrollable .modal-content>form {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
    min-height: 0;
}

/* Responsive Collapsible Filters Styling on Mobile */
@media (max-width: 767.98px) {
    .filters-collapse {
        background-color: #f8fafc;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 0.85rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    }

    /* Toggle icon change to close (xmark) when expanded */
    button[aria-expanded="true"] i.fa-filter::before {
        content: "\f00d" !important;
        /* FontAwesome close (xmark) icon code */
    }

    /* Dynamic styling for filters toggle button when active */
    button[aria-expanded="true"].btn-outline-primary {
        background-color: rgba(239, 68, 68, 0.08) !important;
        border-color: #ef4444 !important;
        color: #ef4444 !important;
    }
}

/* Premium User Profile Dropdown Pill */
.profile-dropdown-btn {
    background-color: #f1f5f9 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50px !important;
    padding: 3px 12px 3px 3px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.profile-dropdown-btn:hover,
.profile-dropdown-btn[aria-expanded="true"] {
    background-color: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* User Avatar Circle */
.user-avatar-circle {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--color-primary), #6366f1) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Caret Customization */
.profile-dropdown-btn::after {
    color: #64748b !important;
    margin-left: 2px !important;
}

@media (max-width: 767.98px) {
    .profile-dropdown-btn {
        padding: 3px !important;
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    .profile-dropdown-btn::after {
        display: none !important;
        /* Hide caret on mobile to keep it super clean */
    }

    .profile-dropdown-btn:hover {
        background-color: rgba(0, 0, 0, 0.05) !important;
    }
}

/* --- Premium Modal Confirm Dialog Styling --- */

/* Backdrop Blur for Modals */
.modal-backdrop.show {
    backdrop-filter: blur(4px) !important;
    background-color: rgba(15, 23, 42, 0.3) !important;
    /* Slate 900 translucent */
}

/* Centered Confirm Box Details */
.confirm-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.6rem;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Exclamation/Trash pulse keyframe animation */
@keyframes confirmIconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.confirm-icon-box {
    animation: confirmIconPulse 2s ease-in-out infinite;
}

/* Soft light background utility classes */
.bg-danger-light {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.bg-warning-light {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.bg-primary-light {
    background-color: rgba(79, 70, 229, 0.1) !important;
    color: #4f46e5 !important;
}

/* Search Bar Container & Responsive Mobile Overlay */
@media (max-width: 767.98px) {
    .search-bar-container:not(.mobile-show) {
        display: none !important;
    }

    .search-bar-container.mobile-show {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--bg-card, #ffffff);
        display: flex !important;
        align-items: center;
        padding: 0 1.5rem;
        z-index: 100;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        animation: slideDownSearch 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

@keyframes slideDownSearch {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calendar Layout styling */
.grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekdays div {
    padding: 10px 0;
    font-weight: 700;
    color: #475569;
    font-size: 0.85rem;
}

.calendar-day-cell {
    aspect-ratio: 1;
    min-height: 50px;
    background-color: var(--bg-card, #ffffff);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    position: relative;
    transition: all 0.2s ease;
}

.calendar-day-cell:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.calendar-day-cell .day-number {
    font-size: 0.95rem;
}

.calendar-day-cell .day-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* Day states */
.calendar-day-empty {
    background-color: transparent !important;
    border-color: transparent !important;
    cursor: default;
    pointer-events: none;
}

.calendar-day-today {
    border: 2px solid #4f46e5 !important;
}

.calendar-day-selected {
    background-color: #e0e7ff !important;
    border-color: #4f46e5 !important;
}

.calendar-day-holiday {
    background-color: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

.calendar-day-holiday:hover {
    background-color: #fecaca !important;
}

.calendar-day-holiday .day-label {
    color: #b91c1c !important;
}

.calendar-day-sunday {
    color: #ef4444;
}

/* --- Print Stylesheet --- */
@media print {
    @page {
        size: A4 portrait;
        margin: 8mm 12mm;
    }

    body {
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    aside#sidebar-container,
    .sidebar-wrapper,
    header#navbar-container,
    .navbar-wrapper,
    footer#footer-container,
    .footer-wrapper,
    .no-print,
    .btn,
    button {
        display: none !important;
    }

    .main-content-wrapper {
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-top: 0 !important;
        min-height: auto !important;
    }

    main#app {
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
    }

    .card-body {
        padding: 0 !important;
        /* Eliminate extra card body padding in print */
    }

    /* Force columns side-by-side in print */
    #salary-slip-page-content .row,
    #salary-slip-content .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    #salary-slip-page-content .col-md-6,
    #salary-slip-content .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    #salary-slip-page-content .col-12,
    #salary-slip-content .col-12 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    #salary-slip-page-content .col-sm-4,
    #salary-slip-content .col-sm-4 {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }

    /* Print utility tweaks for sizing */
    .p-3 {
        padding: 0.5rem !important;
    }

    .mb-4 {
        margin-bottom: 0.5rem !important;
    }

    .g-4 {
        --bs-gutter-x: 10px !important;
        --bs-gutter-y: 10px !important;
    }

    .row.g-2 {
        --bs-gutter-x: 5px !important;
        --bs-gutter-y: 5px !important;
    }

    .mb-2 {
        margin-bottom: 0.2rem !important;
    }

    hr {
        margin: 0.4rem 0 !important;
    }

    .fs-5 {
        font-size: 0.95rem !important;
    }

    .fs-4 {
        font-size: 1.1rem !important;
    }

    /* Force background colors to print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .bg-light {
        background-color: #f8fafc !important;
    }

    .bg-success-light {
        background-color: #f0fdf4 !important;
    }

    .bg-danger-light {
        background-color: #fef2f2 !important;
    }

    .bg-indigo-light {
        background-color: #f5f3ff !important;
    }
}

/* --- Global Search Bar --- */
.max-width-search {
    max-width: 480px;
}

.global-search-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.global-search-wrapper .form-control {
    font-size: 0.9rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    padding-left: 2.75rem !important;
    padding-right: 2.75rem !important;
    border-radius: 3px !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-search-wrapper .form-control:focus {
    background-color: #ffffff !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08), 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

#global-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-height: 380px;
    overflow-y: auto;
}

#global-search-dropdown.show {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-main) !important;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary) !important;
}

.search-suggestion-item i,
.search-suggestion-item svg {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.search-suggestion-item .suggestion-title {
    font-weight: 600;
}

.search-suggestion-item .suggestion-subtitle {
    font-size: 0.75rem;
    color: #64748b !important;
}

/* Mobile search overlay styles */
@media (max-width: 767.98px) {
    .global-search-wrapper.mobile-active {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        z-index: 1001;
        display: flex !important;
        align-items: center;
        padding: 0 1rem;
    }

    .global-search-wrapper.mobile-active .form-control {
        border-radius: 4px;
        padding-right: 2.5rem;
    }

    #page-title {
        font-size: 1rem !important;
    }

    /* Hide other navbar elements when mobile search is active */
    .navbar-wrapper.search-active #sidebar-toggle,
    .navbar-wrapper.search-active #page-title,
    .navbar-wrapper.search-active #mobile-search-trigger,
    .navbar-wrapper.search-active .dropdown {
        display: none !important;
    }
}

/* Clear and Close button positioning */
#global-search-clear {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    z-index: 6;
}

#global-search-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    z-index: 6;
}

@media (max-width: 767.98px) {
    #global-search-clear {
        right: 45px;
        /* Shift left to avoid overlapping with close button */
    }
}

/* Move toggle slightly left on mobile/tablet viewports */
@media (max-width: 991.98px) {
    .navbar-wrapper {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Minimize left and right whitespace for data lists on mobile screens */
@media (max-width: 575.98px) {
    main#app {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    .card {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        margin-left: -0.25rem !important;
        margin-right: -0.25rem !important;
    }
}

/* Search Term Highlighting */
mark.search-highlight {
    background-color: #fef08a;
    color: #000000;
    padding: 0 2px;
    border-radius: 2px;
}

/* Holiday wishes badge styling */
.holiday-wishes-badge {
    background-color: #fef3c7 !important;
    /* amber-100 */
    color: #d97706 !important;
    /* amber-600 */
    border: 1px solid #fde68a !important;
    /* amber-200 */
    padding: 0.45rem 1.25rem;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.08);
    animation: wishes-pulse 2s infinite ease-in-out;
}


/* Hide holiday wishes on mobile screens */
@media (max-width: 767.98px) {
    #holiday-wishes-container {
        display: none !important;
    }
}

/* Restore original Attendance filters & bulk actions layout on large screens */
@media (min-width: 992px) {
    .card-header[data-bs-toggle="collapse"] {
        display: none !important;
    }

    #filter-collapse.collapse {
        display: block !important;
        height: auto !important;
    }

    #bulk-actions-row.border-top {
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        background-color: var(--bg-card) !important;
    }
}

/* Bulk Action Buttons Responsive styling */
.bulk-flex-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.bulk-flex-container .btn {
    width: auto;
}

.bulk-flex-container #shift-hours-label {
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .bulk-flex-container {
        justify-content: space-between;
    }

    .bulk-flex-container span:first-child {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .bulk-flex-container .btn {
        flex: 1;
        width: 50%;
        text-align: center;
    }

    .bulk-flex-container #shift-hours-label {
        width: 100%;
        text-align: right;
        margin-top: 0.25rem;
    }
}

/* Utility to hide scrollbars on horizontal scroll cards */
.hide-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none !important;
}

/* Custom 5 column layout for lg screens */
@media (min-width: 992px) {
    .col-lg-2\.4 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
        width: 20% !important;
    }
}

/* Custom purple theme for dashboard stats card */
.stat-card.purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%) !important;
    border-color: #d8b4fe !important;
}

.stat-card.purple .stat-icon {
    color: #9333ea !important;
    box-shadow: 0 3px 10px rgba(147, 51, 234, 0.15);
}

.text-purple {
    color: #9333ea !important;
}

/* Face verification and scan alert animations */
@keyframes scanAlertSlideIn {
    0% {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes scanAlertSlideOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
}

@keyframes scanAlertProgress {
    0% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

.animate-flash {
    animation: flashEffect 0.8s infinite alternate;
}

@keyframes flashEffect {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.checkin-thumbnail img {
    transition: transform 0.2s ease-in-out;
}

.checkin-thumbnail:hover img {
    transform: scale(1.15);
}

.checkin-thumbnail-placeholder {
    width: 38px;
    height: 38px;
}

/* Fail-safe visibility controls for user initials and photo avatar */
.user-avatar-circle.d-none {
    display: none !important;
}
#user-avatar-img.d-none {
    display: none !important;
}

/* Clickable avatars show pointer cursor */
#profile-avatar-preview:not([src*="default-avatar.svg"]),
#avatar-preview:not([src*="default-avatar.svg"]) {
    cursor: pointer;
}

/* Mobile responsive styling overrides */
@media (max-width: 767.98px) {
    #notification-dropdown-menu {
        position: fixed !important;
        top: 75px !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        transform: none !important;
        z-index: 1050 !important;
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
    }
}