.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}

/* Employee of the Month Styles */
.employee-award-card {
    position: relative;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.employee-award-card.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffedcc 100%);
}

.employee-award-card.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 100%);
}

.employee-award-card.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #ffdab9 100%);
}

.award-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    text-align: center;
}

.award-badge .fa-medal {
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

.employee-avatar.large {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin: 0 auto 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.employee-details h4 {
    margin-bottom: 5px;
    color: #333;
}

.award-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.award-ribbon {
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 10px;
}

.award-criteria ul {
    list-style: none;
    padding-left: 20px;
}

.award-criteria li {
    margin-bottom: 8px;
}

/* Info Box Styles */
.info-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.info-box h5 {
    color: #333;
    font-weight: 600;
}

.attendance-present {
    color: #28a745;
    font-weight: 500;
}

.attendance-late {
    color: #ffc107;
    font-weight: 500;
}

.attendance-absent {
    color: #dc3545;
    font-weight: 500;
}

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

/* Sync Notification Styles */
.sync-notification {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sync-notification-label {
    font-weight: 600;
    margin-right: 8px;
    color: #495057;
}

.sync-notification-time {
    font-weight: 500;
}

.sync-notification-time.text-success i {
    color: #28a745;
    animation: pulse-success 2s infinite;
}

.sync-notification-time.text-danger i {
    color: #dc3545;
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-success {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulse-danger {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}
/* --- Enhanced Light Sidebar Redesign --- */
.c-sidebar {
    background: #fff !important;
    color: #222 !important;
    box-shadow: 2px 0 20px rgba(60,72,88,0.1);
    overflow-x: hidden !important;
    min-width: 260px;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.c-sidebar-brand {
    background: transparent !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid #d8dbe0;

}

.c-sidebar-brand-full img {
    filter: none !important;
    transition: transform 0.3s ease;
}

.c-sidebar-brand-full:hover img {
    transform: scale(1.02);
}

.c-sidebar-nav {
    padding: 0.5rem;
}

.c-sidebar-nav-item,
.c-sidebar-nav-dropdown-toggle {
    border-radius: 10px;
    margin: 0.25rem 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-sidebar-nav-link,
.c-sidebar-nav-dropdown-toggle {
    color: #334155 !important;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.c-sidebar-nav-link.c-active,
.c-sidebar-nav-link:hover,
.c-sidebar-nav-dropdown-toggle:hover,
.c-sidebar-nav-dropdown.c-show > .c-sidebar-nav-dropdown-toggle {
    background: rgba(37,99,235,0.08) !important;
    color: #2563eb !important;
    transform: translateX(4px);
    box-shadow: 0 2px 10px rgba(37,99,235,0.08);
}

.c-sidebar-nav-dropdown-items {
    background: rgba(241,245,249,0.7);
    border-radius: 8px;
    margin: 0.25rem 0;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.c-sidebar-nav-dropdown:not(.c-show) > .c-sidebar-nav-dropdown-items {
    max-height: 0;
    opacity: 0;
    padding: 0;
    transform: translateY(-10px);
}

.c-sidebar-nav-dropdown.c-show > .c-sidebar-nav-dropdown-items {
    transform: translateY(0);
    max-height: 1000px;
}

.c-sidebar-nav-dropdown .c-sidebar-nav-dropdown-items .c-sidebar-nav-link {
    font-size: 0.9rem;
    padding: 0.6rem 2rem;
    margin: 0.125rem 0;
    opacity: 0.9;
}

.c-sidebar-nav-icon,
.fa-fw {
    color: #64748b !important;
    font-size: 1.1rem;
    /* width: 1.5rem; */
    margin-right: 0.1rem;
    transition: all 0.3s ease;
    position: relative;
    top: 1px;
}

.c-sidebar-nav-link.c-active .c-sidebar-nav-icon,
.c-sidebar-nav-link:hover .c-sidebar-nav-icon,
.c-sidebar-nav-dropdown-toggle:hover .c-sidebar-nav-icon {
    color: #2563eb !important;
    transform: scale(1.1);
}

.c-sidebar-nav-dropdown-toggle:after {
    content: '\f107';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-left: auto;
    padding-left: 1rem;
}

.c-sidebar-nav-dropdown.c-show > .c-sidebar-nav-dropdown-toggle:after {
    transform: rotate(180deg);
    color: #2563eb;
}

.c-sidebar .c-sidebar-nav-dropdown.c-show {
    background: transparent;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .c-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1030;
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

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

    .c-sidebar-minimizer {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1031;
        background: #fff;
        border: none;
        border-radius: 4px;
        padding: 0.5rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        cursor: pointer;
    }

    .c-sidebar-minimizer i {
        font-size: 1.25rem;
        color: #334155;
    }

    .c-sidebar-nav-dropdown-toggle:after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .c-sidebar-nav-dropdown.c-show > .c-sidebar-nav-dropdown-toggle:after {
        transform: translateY(-50%) rotate(180deg);
    }

    .c-sidebar-nav-dropdown-items {
        background: rgba(241,245,249,0.7);
        margin: 0;
        padding: 0.5rem 0;
    }

    .c-sidebar-nav-dropdown .c-sidebar-nav-dropdown-items .c-sidebar-nav-link {
        padding-left: 3rem;
    }

    /* Add overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1029;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

/* Add smooth scrollbar for long menus */
.c-sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: #aaa transparent;
}

.c-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

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

.c-sidebar-nav::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 20px;
}

/* Dashboard Styles */
.employee-profile-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.employee-avatar {
    width: 80px;
    height: 80px;
    background: #4e73df;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
}

.employee-profile-info {
    flex: 1;
}

.employee-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.employee-id {
    color: #6c757d;
    margin-bottom: 5px;
}

.employee-department {
    color: #4e73df;
    font-weight: 500;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
}

.stat-card {
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.bg-present {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.bg-absent {
    background: linear-gradient(135deg, #dc3545 0%, #f8d7da 100%);
    color: white;
}

.bg-late {
    background: linear-gradient(135deg, #ffc107 0%, #fff3cd 100%);
    color: #856404;
}

.bg-hours {
    background: linear-gradient(135deg, #17a2b8 0%, #cff4fc 100%);
    color: #055160;
}

.leave-balance-card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: transform 0.2s;
}

.leave-balance-card:hover {
    transform: translateY(-5px);
}

.leave-name {
    font-weight: 600;
    color: #4e73df;
}

.leave-code {
    font-size: 0.85em;
    color: #6c757d;
}

.leave-status-badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

.leave-stats {
    background: #f8f9fc;
    border-radius: 0.35rem;
    padding: 1rem;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #4e73df;
}

.stat-label {
    font-size: 0.85em;
    color: #6c757d;
}

.progress-wrapper {
    margin-top: 1rem;
}

/* Attendance Calendar Styles */
.attendance-card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.attendance-card-body {
    padding: 1.5rem;
}

.attendance-calendar-container {
    min-height: 400px;
}

.attendance-stats {
    background: #f8f9fc;
    border-radius: 0.35rem;
    padding: 1.5rem;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-divider {
    flex: 1;
    height: 1px;
    background: #e3e6f0;
}

.stats-card {
    background: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.stats-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-light {
    background: rgba(78, 115, 223, 0.1);
}

.bg-success-light {
    background: rgba(40, 167, 69, 0.1);
}

.bg-danger-light {
    background: rgba(220, 53, 69, 0.1);
}

.bg-warning-light {
    background: rgba(255, 193, 7, 0.1);
}

.bg-orange-light {
    background: rgba(255, 159, 67, 0.1);
}

.bg-info-light {
    background: rgba(23, 162, 184, 0.1);
}

.text-orange {
    color: #ff9f43;
}

.attendance-legend {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e3e6f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.present-legend {
    background: #28a745;
}

.absent-legend {
    background: #dc3545;
}

.late-legend {
    background: #ffc107;
}

.early-legend {
    background: #ff9f43;
}

.both-legend {
    background: #6f42c1;
}

.leave-legend {
    background: #17a2b8;
}

.weekend-legend {
    background: #e3e6f0;
}

.legend-text {
    font-size: 0.85em;
    color: #6c757d;
}

/* Leave Cards Wrapper */
.leave-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

/* Color Dot for Leave Types */
.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Date Selector Container */
.date-selector-container {
    display: flex;
    align-items: center;
}

.date-selector-container .form-group {
    margin-bottom: 0;
}

/* Loading Spinner */
#calendarLoading,
#leaveTypesContainer .spinner-border {
    color: #4e73df;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin-bottom: 20px;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

.table th {
    font-weight: 600;
    color: #4e73df;
}

/* Card Header Styles */
.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.card-header h6 {
    margin: 0;
}

/* Badge Styles */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #856404;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* Dashboard Employee Card Styles */
.employee-card {
    height: 100%;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e3e6f0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.15rem 0.5rem rgba(58, 59, 69, 0.15);
}

.employee-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.employee-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 1.25rem;
    text-align: center;
}

.employee-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.employee-img i {
    font-size: 40px;
    color: rgba(0, 0, 0, 0.2);
}

.employee-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-department {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-details {
    padding: 1rem;
    background-color: #fff;
}

.employee-id {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.employee-designation {
    font-size: 0.9rem;
    font-weight: 500;
    color: #5a5c69;
    margin-bottom: 0.5rem;
}

.employee-status {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 50rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0;
}

.status-active {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-inactive {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

/* Dashboard Employee Profile Styles */
.employee-profile-header {
    padding: 20px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
}

.employee-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-right: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.employee-profile-info {
    flex: 1;
}

/* Dashboard Stats Card Styles */
.stat-card {
    text-align: center;
    border-radius: 0.5rem;
    overflow: hidden;
    color: white;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin-bottom: 0;
    opacity: 0.85;
    font-size: 0.9rem;
    font-weight: 600;
}

.bg-present {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.bg-absent {
    background: linear-gradient(135deg, #e74a3b 0%, #c52c1e 100%);
}

.bg-late {
    background: linear-gradient(135deg, #f6c23e 0%, #dfaa23 100%);
}

.bg-hours {
    background: linear-gradient(135deg, #4e73df 0%, #2242c7 100%);
}

/* Dashboard Leave Balance Styles */
.leave-balance-card {
    border-left: 4px solid #4e73df;
    transition: all 0.3s;
}

.leave-balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.leave-balance-card .card-body {
    padding: 1rem;
}

.leave-balance-card .leave-name {
    font-weight: 600;
    color: #4e73df;
}

.leave-balance-card .balance-days {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a5c69;
}

.leave-balance-card .used-days {
    color: #858796;
    font-size: 0.8rem;
}

.leave-balance-card .progress {
    height: 0.5rem;
    margin-top: 0.5rem;
}

.leave-stats {
    font-size: 0.9rem;
}

.leave-stats .stat-value {
    font-weight: 700;
    font-size: 1.2rem;
}

.leave-stats .stat-label {
    opacity: 0.8;
}

.progress-wrapper {
    margin-top: 1rem;
}

.progress-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.leave-warning {
    font-size: 0.9rem;
    color: #6c757d;
}

.leave-warning i {
    margin-right: 0.5rem;
}

/* Dashboard Utility Classes */
.gap-2 {
    gap: 0.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* Dashboard Table Styles */
table.dataTable thead th {
    background-color: #f8f9fc;
    color: #4e73df;
}

.badge {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

.leave-status-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
}

/* Dashboard Button Styles */
.btn-outline-primary {
    color: #4e73df;
    border-color: #4e73df;
}

.btn-outline-primary:hover {
    background-color: #4e73df;
    color: white;
}

/* Dashboard Info Label */
.info-label {
    font-weight: 600;
    color: #6c757d;
}

/* Leave Dashboard Styles */
.leave-application-table th {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    font-weight: 600;
    color: #495057;
}

.leave-application-table td {
    vertical-align: middle;
}

.leave-application-table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Leave Application Modal Styles */
.leave-modal .modal-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.leave-modal .modal-footer {
    background-color: #f8f9fc;
    border-top: 1px solid #e3e6f0;
}

.leave-modal .form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Leave Application Comments */
.leave-comments {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leave-comments-popover {
    max-width: 300px;
}

/* Leave Application Stats Cards */
.leave-stats-card {
    border-left: 4px solid;
    transition: all 0.3s;
}

.leave-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.leave-stats-card .card-body {
    padding: 1rem;
}

.leave-stats-card .stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a5c69;
}

.leave-stats-card .stats-label {
    color: #858796;
    font-size: 0.8rem;
}

/* Leave Application Chart Styles */
.leave-chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

.leave-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.leave-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #6c757d;
}

.leave-chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Leave Application Status Badges */
.badge-leave-status {
    padding: 0.4em 0.6em;
    font-weight: 600;
    font-size: 75%;
    border-radius: 0.25rem;
}

.badge-pending {
    background-color: #f6c23e;
    color: #fff;
}

.badge-approved {
    background-color: #28a745;
    color: #fff;
}

.badge-rejected {
    background-color: #dc3545;
    color: #fff;
}

/* Task Report Download Styles */
.custom-pagination svg {
    width: 14px !important;
    height: 14px !important;
    vertical-align: middle;
    display: inline-block;
}

.custom-pagination span.inline-flex {
    display: inline-flex;
    align-items: center;
}

.custom-pagination nav {
    display: flex;
    justify-content: center;
}

.custom-pagination .flex.justify-between.flex-1 {
    display: none;
}

.custom-pagination .pagination {
    margin-bottom: 0;
}

.custom-pagination .page-item .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

svg.w-5.h-5 {
    width: 14px !important;
    height: 14px !important;
}

/* --- Project Hours Page Specific Styles --- */
/* Styles extracted from resources/views/admin/projectHours/index.blade.php */

/* Enhanced Filters Styling */
.project-hours-filter-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    overflow: hidden;
}

.project-hours-filter-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.125);
    padding: 0.75rem 1.25rem;
}

.project-hours-filter-card .form-group label {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.project-hours-filter-card .form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.project-hours-filter-card .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.project-hours-filter-card .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

.project-hours-filter-card .btn-group .btn {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
}

.project-hours-filter-card .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

/* Custom switch styling */
.project-hours-custom-control.custom-switch {
    padding-left: 3.25rem;
}

.project-hours-custom-control-label {
    font-weight: bold;
    cursor: pointer;
}

.project-hours-custom-control-input:checked ~ .project-hours-custom-control-label::before {
    background-color: #28a745;
    border-color: #28a745;
}

/* Project download table styling */
#projectDownloadModal .modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

#projectDownloadModal .close {
    opacity: 0.8;
}

#projectDownloadModal .close:hover {
    opacity: 1;
}

#projectDownloadModal .table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

#projectDownloadModal .modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Download buttons styling */
.project-hours-download-btn {
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-hours-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.project-hours-project-download-btn {
    width: 100%;
    transition: all 0.2s ease;
}

.project-hours-project-download-btn:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Select2 custom styling */
.project-hours-filter-card .select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    min-height: 38px;
    position: relative;
}

/* Single select styling */
.project-hours-filter-card .select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.project-hours-filter-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
    padding-right: 30px;
}

.project-hours-filter-card .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 5px;
    margin-right: 5px;
}

.project-hours-filter-card .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545;
}

.project-hours-filter-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 6px;
}

.project-hours-filter-card .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #007bff;
    border: 1px solid #007bff;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    margin: 2px;
}

/* Clear All button styling */
.project-hours-filter-card .select2-container--default .select2-selection--multiple .select2-selection__clear {
    position: absolute;
    right: 5px;
    top: -25px;
    color: #6c757d;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 2px 8px;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 3px;
    display: none;
}

.project-hours-filter-card .select2-container--default .select2-selection--multiple.has-selection .select2-selection__clear {
    display: inline-block;
}

.project-hours-filter-card .select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
    color: #dc3545;
    background: #fff;
}

.project-hours-filter-card .select2-container--default .select2-selection--multiple .select2-selection__clear::after {
    content: "Clear All";
}

/* Ensure datetimepicker is always on top */
.bootstrap-datetimepicker-widget {
    z-index: 2050 !important;
}
/* Allow datepicker to overflow parent containers */
.project-hours-filter-card,
.project-hours-filter-card .card-body,
.project-hours-filter-card .card-body.pb-0 {
    overflow: visible !important;
}

/* --- Filter Area Consistency Enhancements --- */
.project-hours-filter-card .form-group {
    margin-bottom: 1rem;
}
.project-hours-filter-card .form-control,
.project-hours-filter-card .select2-container--default .select2-selection--single,
.project-hours-filter-card .select2-container--default .select2-selection--multiple,
.project-hours-filter-card .input-group .form-control,
.project-hours-filter-card .input-group-prepend .input-group-text {
    min-height: 38px;
    height: 38px;
    font-size: 1rem;
    box-sizing: border-box;
}
.project-hours-filter-card .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0 0.5rem;
    height: 38px !important;
}
.project-hours-filter-card .select2-container--default .select2-selection--multiple {
    min-height: 38px;
    max-height: 76px; /* 2 lines */
    overflow-y: auto;
    overflow-x: hidden;
    white-space: normal;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 2px 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background: #fff;
    box-sizing: border-box;
}
.project-hours-filter-card .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
}
.project-hours-filter-card .select2-container--default .select2-selection--multiple .select2-selection__choice {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 4px;
    margin-bottom: 2px;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 3px;
}
.project-hours-filter-card .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 5px;
    font-size: 1.1em;
}
.project-hours-filter-card .select2-container {
    width: 100% !important;
}

/* Remove extra margin from last filter row column */
.project-hours-filter-card .row > [class^='col-']:last-child .form-group {
    margin-bottom: 0;
}

/* Fix select2 arrow alignment */
.project-hours-filter-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 6px;
}

/* Fix select2 multi alignment */
.project-hours-filter-card .select2-container--default .select2-search--inline .select2-search__field {
    height: 32px;
    margin-top: 2px;
}
.project-hours-filter-card .select2-container--default .select2-results__option {
    padding: 8px 14px;
    font-size: 1rem;
}

/* Per page select styles */
.project-hours-per-page-select {
    height: 31px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Entry info styles */
.project-hours-entry-info {
    font-size: 0.875rem;
}

/* Form styling */
.required:after {
    content: " *";
    color: #e74a3b;
}

.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.input-group-text {
    border: 1px solid #d1d3e2;
    color: #6e707e;
}

.select2-container .select2-selection--single {
    height: calc(1.5em + 0.75rem + 3px);
    padding: 0.376rem 0.78rem;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
    color: #495057;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.75rem + 2px);
}

.select2-container--default .select2-results__option {
    padding: 6px 12px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    height: calc(1.5em + 0.75rem);
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    color: #958bef;
    background-color: #fff;
    border-color: #958bef;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Fix for input-group with Select2 */
.input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
}

.input-group .select2-container .select2-selection--single {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 100%;
}

.input-group-prepend + .select2-container .select2-selection--single {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Badge styling */
.badge-pill {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Table styling */
.table th {
    background-color: #f8f9fc;
    border-top: 1px solid #e3e6f0;
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* --- Daily Reports Index Page Styles --- */
/* Card and general styling */
.daily-reports-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.daily-reports-card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Button styling */
.daily-reports-btn {
    font-weight: 500;
    border-radius: 0.25rem;
}

.daily-reports-btn-light {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.daily-reports-btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.daily-reports-btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.daily-reports-btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.daily-reports-btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.daily-reports-btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Font weights */
.daily-reports-font-weight-bold {
    font-weight: 700 !important;
}

.daily-reports-font-weight-medium {
    font-weight: 600 !important;
}

/* Text colors */
.daily-reports-text-muted {
    color: #6c757d !important;
}

/* Form controls */
.daily-reports-form-control {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.daily-reports-form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Table styling */
.daily-reports-table th {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    font-weight: 600;
    color: #495057;
}

.daily-reports-table-bordered {
    border: 1px solid #e9ecef;
}

.daily-reports-table-bordered td, 
.daily-reports-table-bordered th {
    border: 1px solid #e9ecef;
}

.daily-reports-table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.04);
}

/* DataTables custom styling */
.daily-reports-dataTables-wrapper .dataTables_length {
    margin-bottom: 0.5rem;
}

.daily-reports-dataTables-wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 500;
    color: #495057;
}

.daily-reports-dataTables-wrapper .dataTables_length select {
    margin: 0 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    height: calc(1.5em + 0.75rem + 2px);
    background-color: #fff;
    background-clip: padding-box;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    min-width: 80px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

.daily-reports-dataTables-wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    height: calc(1.5em + 0.75rem + 2px);
    width: 250px;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

.daily-reports-dataTables-wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 500;
    color: #495057;
}

.daily-reports-dataTables-wrapper .dataTables_filter input {
    margin-left: 0.5rem;
}

.daily-reports-dataTables-info, 
.daily-reports-dataTables-paginate {
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-top: 0.5rem !important;
}

.daily-reports-dataTables-paginate .paginate_button {
    border-radius: 0.25rem !important;
    border: 1px solid #dee2e6 !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0 0.2rem !important;
}

.daily-reports-dataTables-paginate .paginate_button.current {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

.daily-reports-dataTables-paginate .paginate_button:hover {
    background: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

/* Select2 styling */
.daily-reports-select2-container .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
}

.daily-reports-select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.daily-reports-select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
    color: #495057;
}

.daily-reports-select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.75rem + 2px);
}

.daily-reports-select2-container--default .select2-results__option {
    padding: 6px 12px;
}

.daily-reports-select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.daily-reports-select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* --- Daily Reports Show Page Styles --- */
/* Card and General Styling */
.daily-reports-show-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.daily-reports-show-card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Button Styling */
.daily-reports-show-btn {
    font-weight: 500;
    border-radius: 0.25rem;
}

.daily-reports-show-btn-light {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.daily-reports-show-btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

/* Typography */
.daily-reports-show-font-weight-bold {
    font-weight: 700 !important;
}

.daily-reports-show-font-weight-medium {
    font-weight: 600 !important;
}

.daily-reports-show-text-muted {
    color: #6c757d !important;
}

.daily-reports-show-h6 {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* Border Utilities */
.daily-reports-show-border-bottom {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.daily-reports-show-border {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Table Styling */
.daily-reports-show-table th {
    border-top: none;
    color: #495057;
    font-weight: 700;
    padding: 0.75rem;
}

.daily-reports-show-table td {
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    font-size: 1rem;
}

.daily-reports-show-table-borderless td {
    padding: 0.75rem;
    border: none;
}

/* Utility Classes */
.daily-reports-show-rounded {
    border-radius: 0.25rem !important;
}

.daily-reports-show-bg-light {
    background-color: #f8f9fa !important;
}

.daily-reports-show-small {
    font-size: 85% !important;
}

/* Description Styling */
.daily-reports-show-description-container {
    position: relative;
}

.daily-reports-show-description-preview {
    font-size: 1rem;
    line-height: 1.5;
}

.daily-reports-show-description-full {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    margin: 0.25rem 0;
    max-height: 120px;
    overflow-y: auto;
}

.daily-reports-show-toggle-description {
    cursor: pointer;
    display: inline-block;
    font-size: 0.85rem;
    text-decoration: none !important;
}

.daily-reports-show-toggle-description:hover {
    text-decoration: underline !important;
}

.daily-reports-show-text-primary {
    color: #007bff !important;
}


/* <style> */
/* Light theme colors */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --orange-color: #fd7e14;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --text-color: #5a5c69;
    --bg-color: #f8f9fc;
    --card-bg: #ffffff;
    
    /* Light variants */
    --primary-light: rgba(78, 115, 223, 0.15);
    --success-light: rgba(28, 200, 138, 0.15);
    --info-light: rgba(54, 185, 204, 0.15);
    --warning-light: rgba(246, 194, 62, 0.15);
    --danger-light: rgba(231, 74, 59, 0.15);
    --orange-light: rgba(253, 126, 20, 0.15);
}

/* Custom badge styles */
.badge-orange {
    color: #fff;
    background-color: var(--orange-color);
}

.text-orange {
    color: var(--orange-color) !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1.25rem 0 rgba(58, 59, 69, 0.1);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.4rem 1.5rem rgba(58, 59, 69, 0.15);
}

.card-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

.card-body {
    padding: 1.25rem;
}

.border-left-orange {
    border-left: 0.25rem solid var(--orange-color) !important;
}

.table {
    color: var(--text-color);
    margin-bottom: 0;
}

.table th {
    border-top: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    font-weight: 600;
}

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

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

/* Enhanced Monthly Attendance Card Styles */
.attendance-card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1.5rem rgba(58, 59, 69, 0.15);
}

.attendance-card:hover {
    box-shadow: 0 0.75rem 2rem rgba(58, 59, 69, 0.2);
}

.attendance-card .card-header {
    background: linear-gradient(to right, rgba(78, 115, 223, 0.05), rgba(78, 115, 223, 0.01));
    border-bottom: 1px solid rgba(78, 115, 223, 0.1);
}

.attendance-card-body {
    padding: 1.5rem;
}

/* Stats cards styling */
.stats-card {
    border-radius: 0.75rem;
    background: var(--card-bg);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.stats-card .card-body {
    border-radius: 0.75rem;
}

.stats-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stats-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.stats-divider {
    height: 3px;
    width: 50px;
    background: var(--primary-color);
    margin-top: 0.75rem;
    border-radius: 2px;
}

/* Icon background colors */
.bg-primary-light {
    background-color: var(--primary-light);
}

.bg-success-light {
    background-color: var(--success-light);
}

.bg-info-light {
    background-color: var(--info-light);
}

.bg-warning-light {
    background-color: var(--warning-light);
}

.bg-danger-light {
    background-color: var(--danger-light);
}

.bg-orange-light {
    background-color: var(--orange-light);
}

/* Custom select styling */
.custom-select {
    background-color: var(--light-color);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    padding-right: 1.75rem;
    cursor: pointer;
}

.custom-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    border-color: rgba(78, 115, 223, 0.5);
}

/* Calendar styles */
.monthly-calendar {
    overflow-x: auto;
}

.attendance-calendar-container {
    background-color: var(--light-color);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

.attendance-calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    font-size: 0.85rem;
}

.attendance-calendar th {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 8px;
    text-align: center;
    border-radius: 0.5rem;
}

.calendar-cell {
    height: 50px;
    width: 50px;
    text-align: center;
    vertical-align: middle;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.calendar-cell:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.calendar-date {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 600;
}

.present-cell {
    background-color: rgba(28, 200, 138, 0.25);
    color: var(--success-color);
    border: none;
}

.overtime-cell {
    background-color: rgba(32, 201, 151, 0.25);
    color: var(--info-color);
    border: none;
}

.late-cell {
    background-color: rgba(246, 194, 62, 0.25);
    color: var(--warning-color);
    border: none;
}

.early-cell {
    background-color: rgba(253, 126, 20, 0.25);
    color: var(--orange-color);
    border: none;
}

.both-cell {
    background-color: rgba(231, 74, 59, 0.25);
    color: var(--danger-color);
    border: none;
}

.absent-cell {
    background-color: rgba(231, 74, 59, 0.25);
    color: var(--danger-color);
    border: none;
}

.leave-cell {
    background-color: rgba(78, 115, 223, 0.25);
    color: var(--primary-color);
    border: none;
}

.holiday-cell {
    background-color: rgba(111, 66, 193, 0.25);
    color: #6f42c1;
    border: none;
}

.weekend-cell {
    background-color: rgba(133, 135, 150, 0.15);
    color: var(--secondary-color);
    border: none;
}

.empty-day {
    background-color: transparent;
    box-shadow: none;
    cursor: default;
}

.empty-day:hover {
    transform: none;
    box-shadow: none;
}

/* Legend styles */
.attendance-legend {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(5px);
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: var(--light-color);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.legend-text {
    font-size: 0.75rem;
    font-weight: 600;
}

.present-legend {
    background-color: rgba(28, 200, 138, 0.8);
}

.absent-legend {
    background-color: rgba(231, 74, 59, 0.8);
}

.late-legend {
    background-color: rgba(246, 194, 62, 0.8);
}

.early-legend {
    background-color: rgba(253, 126, 20, 0.8);
}

.both-legend {
    background-color: rgba(231, 74, 59, 0.8);
}

.leave-legend {
    background-color: rgba(78, 115, 223, 0.8);
}

.holiday-legend {
    background-color: rgba(111, 66, 193, 0.8);
}

.weekend-legend {
    background-color: rgba(133, 135, 150, 0.8);
}

/* Stats styles */
.attendance-stats .card {
    margin-bottom: 1rem;
}

.attendance-stats .card-body {
    padding: 0.8rem;
}

.attendance-stats .text-xs {
    font-size: 0.7rem;
}

.attendance-stats .h5 {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

/* Recent attendance styles */
.recent-attendance {
    max-height: 300px;
    overflow-y: auto;
}

.attendance-day {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: var(--light-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.attendance-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.attendance-day-date {
    font-weight: 600;
    font-size: 0.85rem;
}

.attendance-day-status {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
}

.attendance-day-status.present {
    background-color: rgba(28, 200, 138, 0.2);
    color: var(--success-color);
}

.attendance-day-status.absent {
    background-color: rgba(231, 74, 59, 0.2);
    color: var(--danger-color);
}

.attendance-day-status.late {
    background-color: rgba(246, 194, 62, 0.2);
    color: var(--warning-color);
}

.attendance-day-status.early {
    background-color: rgba(253, 126, 20, 0.2);
    color: var(--orange-color);
}

.attendance-day-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

/* Enhanced Modal styles */
.attendance-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#modalStatus {
    color: #555;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-value {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
}

.highlight-text {
    font-weight: 700;
    font-size: 1.15rem;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), rgba(78, 115, 223, 0.8));
    border-bottom: none;
}

.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.01);
}

.modal-footer .btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary {
    background-color: #eaecf4;
    border-color: #eaecf4;
    color: #6e707e;
}

.modal-footer .btn-secondary:hover {
    background-color: #d4d6e0;
    border-color: #d4d6e0;
    transform: translateY(-2px);
}

/* Card styling for modal info */
.card.bg-light {
    border-radius: 0.75rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card.bg-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card.bg-warning-light, 
.card.bg-success-light, 
.card.bg-orange-light {
    border-radius: 0.75rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card.bg-warning-light:hover, 
.card.bg-success-light:hover, 
.card.bg-orange-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Modal animation effects */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.animate-in {
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.additional-info {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.additional-info.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-cell {
        height: 45px;
        width: 45px;
    }
    
    .calendar-date {
        font-size: 0.9rem;
    }
    
    .stats-icon-circle {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .calendar-cell {
        height: 40px;
        width: 40px;
    }
    
    .calendar-date {
        font-size: 0.8rem;
    }
    
    .attendance-stats .h5 {
        font-size: 1.1rem;
    }
    
    .stats-icon-circle {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* Leave balance card styles */
.leave-type-card {
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0.25rem 1rem 0 rgba(58, 59, 69, 0.15);
    overflow: hidden;
    background: #fff;
    flex: 1;
    max-width: 20%;
    margin: 0 10px;
}

.leave-type-card:first-child {
    margin-left: 0;
}

.leave-type-card:last-child {
    margin-right: 0;
}

.leave-type-card:hover {
    box-shadow: 0 0.5rem 2rem rgba(58, 59, 69, 0.2);
    transform: translateY(-5px);
}

.leave-type-card .card-body {
    padding: 1.5rem;
}

.leave-progress {
    height: 8px;
    border-radius: 10px;
    background-color: #f1f1f1;
    overflow: hidden;
    margin: 12px 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.leave-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.leave-days {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.2;
}

.leave-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4e73df;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leave-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #5a5c69;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.leave-detail {
    font-size: 0.85rem;
    color: #858796;
    font-weight: 500;
}

.leave-details-row {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

#leaveTypesContainer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 15px 0;
}

.leave-cards-wrapper {
    position: relative;
    padding: 10px 0;
    margin-bottom: 5px;
    margin-top: 20px;
}

/* Date-selector styling */
.date-selector-container {
    display: flex;
    align-items: center;
}

.form-control-sm {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.3rem;
    border: 1px solid #d1d3e2;
}

.form-control-sm:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.btn-primary {
    color: #fff;
    background-color: #4e73df;
    border-color: #4e73df;
    box-shadow: 0 2px 4px rgba(78, 115, 223, 0.15);
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #4262c5;
    border-color: #3d5cba;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(78, 115, 223, 0.2);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.3rem;
}

/* Month header styling */
.month-header {
    text-align: center;
    padding: 0.5rem 0;
}

.month-header h6 {
    font-size: 1.1rem;
    margin: 0;
}

/* Dashboard header spacing */
.d-sm-flex.align-items-center.justify-content-between.mb-4 {
    margin-bottom: 2rem !important;
}

.h3.mb-0.text-gray-200 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Additional spacing for sections */
.row.mb-4 {
    margin-bottom: 2rem !important;
}

.row.mb-5 {
    margin-bottom: 3rem !important;
}

/* Employee of the Month Cards */
.employee-award-card {
    border-radius: 10px;
    padding: 20px;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gold {
    background: linear-gradient(135deg, #fceabb 0%, #fccd4d 50%, #f8b500 100%);
    border: 2px solid #f8b500;
}

.silver {
    background: linear-gradient(135deg, #e6e6e6 0%, #d8d8d8 50%, #c0c0c0 100%);
    border: 2px solid #c0c0c0;
}

.bronze {
    background: linear-gradient(135deg, #f0d6b7 0%, #d1a77c 50%, #a67c52 100%);
    border: 2px solid #a67c52;
}

.award-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(0, 0, 0, 0.3);
}

.award-rank {
    font-weight: bold;
    text-align: center;
}

.employee-details {
    padding-top: 20px;
}

.employee-details h5 {
    margin-bottom: 5px;
    font-weight: bold;
}

.designation {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #555;
}

/* Attendance Status Colors */
.attendance-present {
    color: #28a745;
    font-weight: bold;
}

.attendance-late {
    color: #ffc107;
    font-weight: bold;
}

.attendance-absent {
    color: #dc3545;
    font-weight: bold;
}

/* Activity Feed */
.activity-feed {
    max-height: 300px;
    overflow-y: auto;
}

.feed-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.feed-item .date {
    font-size: 0.8rem;
    color: #888;
}

.feed-item .text {
    margin-top: 5px;
}

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

/* Modern Card Styles */
:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f9c74f;
    --info: #90e0ef;
    --light: #f8f9fa;
    --dark: #212529;
    --gradient: linear-gradient(120deg, #4361ee, #4cc9f0);
}

.modern-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.15);
}

.modern-header {
    padding: 20px;
    background: var(--gradient);
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.icon-button {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.metric {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.metric:hover {
    background-color: #f8f9ff;
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: white;
}

.primary-bg {
    background: var(--primary);
}

.danger-bg {
    background: var(--danger);
}

.success-bg {
    background: var(--success);
}

.warning-bg {
    background: var(--warning);
}

.metric-content {
    flex: 1;
}

.metric-title {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.metric-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: 600;
}

.badge-primary {
    background-color: #ebefff;
    color: var(--primary);
}

.badge-danger {
    background-color: #ffe0ed;
    color: var(--danger);
}

.badge-success {
    background-color: #e0faff;
    color: var(--success);
}

.people-list {
    margin-top: 20px;
}

.person {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.person:hover {
    background-color: #f8f9ff;
    border-left: 4px solid var(--primary);
}

.person-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.person-info {
    flex: 1;
}

.person-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.person-detail {
    font-size: 0.8rem;
    color: #6c757d;
}

.time-indicator {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.time-indicator i {
    margin-right: 5px;
}

.progress-container {
    background-color: #f1f3fa;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
}

.progress-success {
    background: var(--success);
}

.progress-danger {
    background: var(--danger);
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 5px;
}

.tag-primary {
    background-color: var(--primary);
    color: white;
}

.tag-danger {
    background-color: var(--danger);
    color: white;
}