/* --- Modern HRM Purplish-Grey Theme --- */

:root {
    /* Color Palette */
    --purple-grey-sidebar: #22223b; /* Deep Purplish-Grey */
    --purple-grey-muted: #4a4e69; /* Mid-tone for icons/accents */
    --purple-grey-light: #9a8c98; /* Soft muted purple for borders */
    --bg-light-grey: #f0f2f5; /* Subtle background behind the "floating" content */
    --accent-blue: #258cfb; /* Focus/Action color */
    --text-main: #1e293b; /* Deep slate for readability */
    /* Effects */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius-lg: 16px;
    --transition-smooth: all 0.25s ease-out;
}

/* Base Reset & Typography */
html {
    font-size: 15px;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-light-grey);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* Layout Wrapper */
#wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - The Purplish Grey Core */
#sidebar-wrapper {
    min-height: 100vh;
    width: 260px;
    background-color: var(--purple-grey-sidebar);
    color: #ffffff;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

    #sidebar-wrapper .sidebar-heading {
        padding: 2rem 1.5rem;
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #sidebar-wrapper .list-group {
        width: 100%;
        padding: 1rem 0;
    }

    #sidebar-wrapper .list-group-item {
        background-color: transparent;
        color: rgba(255, 255, 255, 0.7);
        border: none;
        padding: 12px 24px;
        font-size: 0.95rem;
        transition: var(--transition-smooth);
        display: flex;
        align-items: center;
    }

        #sidebar-wrapper .list-group-item i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
        }

        #sidebar-wrapper .list-group-item:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
            color: #ffffff;
            padding-left: 30px; /* Modern "nudge" effect */
        }

        #sidebar-wrapper .list-group-item.active {
            background-color: var(--purple-grey-muted) !important;
            color: #ffffff;
            border-left: 4px solid var(--purple-grey-light);
        }

/* Main Content Area - The "Floating Card" Look */
#page-content-wrapper {
    flex-grow: 1;
    min-width: 0;
    background-color: #ffffff;
    margin: 16px; /* This creates the floating effect */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 25px;
    transition: var(--transition-smooth);
}

/* Form Elements & Focus */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    transition: var(--transition-smooth);
}

    .form-control:focus {
        border-color: var(--purple-grey-muted);
        box-shadow: 0 0 0 0.2rem rgba(74, 78, 105, 0.15);
    }

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--purple-grey-muted);
    border-color: var(--purple-grey-muted);
}

    .btn-primary:hover {
        background-color: var(--purple-grey-sidebar);
        border-color: var(--purple-grey-sidebar);
        transform: translateY(-1px);
    }

/* Custom Scrollbar for that Modern feel */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--purple-grey-light);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--purple-grey-muted);
    }

    /* Specific Styling for Leave Request Cards & Tables */

/* The Main Container Card */
.card.shadow-sm.border-0 {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden; /* Ensures the thead stays within rounded corners */
}

/* Modern Table Styling */
.table thead.bg-light {
    background-color: #f8f9fc !important; /* Very subtle blue-purple tint */
}

.table thead th {
    color: #4a4e69; /* Purplish-grey header text */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid #edf2f7;
}

.leave-row:hover {
    background-color: #f4f4f9; /* Subtle purple-white hover */
}

/* Mobile Leave Cards */
.leave-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important; /* Light border instead of shadow for crispness */
    border-radius: 12px !important;
    transition: transform 0.2s ease;
}

.leave-card:active {
    transform: scale(0.98); /* Tactile feel on mobile tap */
}

/* Custom Purplish-Grey Badges */
.badge.bg-secondary {
    background-color: #9a8c98 !important; /* Muted purple-grey */
    color: white;
}

.badge.bg-primary {
    background-color: #4a4e69 !important; /* Deep purple-grey */
}

/* Pagination Modernization */
.page-link {
    color: #4a4e69;
    border: none;
    margin: 0 3px;
    border-radius: 8px !important;
    font-weight: 500;
}

.page-item.active .page-link {
    background-color: #4a4e69;
    border-color: #4a4e69;
}

/* Modal Styling */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #edf2f7;
}



/* Modern Root & Typography */
/*html {
    font-size: 15px;*/ /* Slightly larger base for readability */
    /*height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 0;*/ /* Modern layouts usually handle footers differently */
    /*overflow-x: hidden;*/
    /* Subtler, cleaner background: professional "Ghost White" */
    /*background: #f8fafc;*/
    /* System fonts for that native "SaaS" feel */
    /*font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;*/ /* Slate-800 for better contrast than pure black */
    /*line-height: 1.6;
}

#page-content-wrapper {
    background-color: transparent;*/ /* Let the body color breathe */
    /*padding: 1.5rem;
    transition: all 0.3s ease;
}*/

/* Modern Card Pattern (The bread and butter of HRM systems) */
/*.card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);*/ /* Very faint border */
    /*border-radius: 12px;*/ /* Smoother corners */
    /*box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    }*/

/* Scrollbar Styling for a polished look */
/*::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }*/


/*html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}*/

/* LIGHT (default) */
/*body {
    margin-bottom: 60px;
    overflow-x: hidden;
    background: linear-gradient(135deg, #eef2f7 0%, #e6ecf5 100%);
    color: #212529;
}

#page-content-wrapper {
    background-color: #ffffff;
}*/

/* DARK MODE */
/*@media (prefers-color-scheme: dark) {

    body {
        background: #0f172a;
        color: #e5e7eb;
    }

    #page-content-wrapper {
        background-color: #020617;
        color: #e5e7eb; 
    }

    #primary-sidebar,
    #secondary-sidebar {
        background-color: #020617;
    }

    .card {
        background-color: #1e293b;
        color: #e5e7eb;
    }

    .list-group-item {
        color: #e5e7eb;
    }

        .list-group-item:hover {
            background-color: #1e293b;
        }
}*/




/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}*/

/*body {
    margin-bottom: 60px;
    overflow-x: hidden;
    background: linear-gradient(135deg, #eef2f7 0%, #e6ecf5 100%);
}*/

/* Default (Light Theme) */
/*body {
    margin-bottom: 60px;
    overflow-x: hidden;
    background: linear-gradient(135deg, #eef2f7 0%, #e6ecf5 100%);
    color: #212529;
}*/

/* Dark Mode (auto on mobile if enabled) */
/*@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;*/ /* deep navy */
        /*color: #e5e7eb;
    }

    #page-content-wrapper {
        background-color: #1e293b;
        color: #e5e7eb;
    }

    #sidebar-wrapper {
        background-color: #020617;
        border-right: 1px solid #1e293b;
    }

    .card {
        background-color: #1e293b;
        color: #e5e7eb;
        border: 1px solid #334155;
    }

    .list-group-item {
        background-color: transparent;
        color: #e5e7eb;
    }

        .list-group-item:hover {
            background-color: #1e293b !important;
        }

    .form-control {
        background-color: #020617;
        color: #e5e7eb;
        border: 1px solid #334155;
    }

        .form-control:focus {
            background-color: #020617;
            color: #fff;
        }

    .btn-outline-secondary {
        color: #e5e7eb;
        border-color: #475569;
    }

    .alert {
        background-color: #1e293b;
        border: 1px solid #334155;
        color: #e5e7eb;
    }
}



body {
    overflow-x: hidden;
}

#wrapper {
    display: flex;
    min-height: 100vh;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 250px;
    transition: margin .25s ease-out;
    border-right: 1px solid #dee2e6;
}

    #sidebar-wrapper .sidebar-heading {
        font-size: 1.2rem;
    }

    #sidebar-wrapper .list-group {
        width: 250px;
    }

#page-content-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    margin: 12px;
    padding: 10px;
}*/

/*#page-content-wrapper {
    min-width: 0;
    width: 100%;
    background-color: #f8f9fa;*/ /* Light grey background for the content area */
/*}*/

/*.list-group-item {
    border: none;
    font-size: 1rem;
    transition: background-color 0.2s;
}

    .list-group-item:hover {
        background-color: #f1f1f1 !important;
    }


@media (prefers-color-scheme: dark) {

    body {
        background: #0f172a !important;
        color: #e5e7eb !important;
    }*/

    /* MAIN CONTENT */
    /*#page-content-wrapper {
        background-color: #020617 !important;
        color: #e5e7eb !important;
    }*/

    /* NAVBAR */
    /*.navbar {
        background-color: #020617 !important;
        color: #e5e7eb !important;
        border-color: #1e293b !important;
    }*/

    /* SIDEBARS */
    /*#primary-sidebar {
        background-color: #020617 !important;
    }

    #secondary-sidebar {
        background-color: #020617 !important;
        border-right: 1px solid #1e293b !important;
    }*/

    /* CARDS */
    /*.card {
        background-color: #1e293b !important;
        color: #e5e7eb !important;
        border: 1px solid #334155 !important;
    }*/

    /* TABLE */
    /*.table {
        color: #e5e7eb !important;
    }

        .table thead {
            background-color: #020617 !important;
        }*/

    /* LIST ITEMS */
    /*.list-group-item {
        color: #e5e7eb !important;
    }

        .list-group-item:hover {
            background-color: #1e293b !important;
        }*/

    /* FORMS */
    /*.form-control {
        background-color: #020617 !important;
        color: #e5e7eb !important;
        border: 1px solid #334155 !important;
    }*/

    /* MODAL */
    /*.modal-content {
        background-color: #1e293b !important;
        color: #e5e7eb !important;
    }*/

    /* BADGES (optional tweak) */
    /*.badge.bg-secondary {
        background-color: #475569 !important;
    }
}*/