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;
}




/*-------------------------------------------*/
/*Leave*/


.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.table > :not(caption) > * > * {
    vertical-align: middle;
}


/* 🌙 Material-inspired date fields */
.datepicker-container {
    position: relative;
}

    .datepicker-container input[type="date"] {
        padding-left: 2.2rem;
        background-color: #fdfdfd;
        transition: all 0.2s ease-in-out;
    }

        .datepicker-container input[type="date"]:focus {
            border-color: #1976d2 !important;
            box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
        }

    .datepicker-container label {
        color: #6c757d;
        transition: color 0.2s ease;
    }

    .datepicker-container input:focus + label {
        color: #1976d2;
    }

/* 📅 Calendar icon */
.date-icon {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
    pointer-events: none;
}

/* ✨ Shadow and smooth rounded borders */
.form-control.shadow-sm {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="date"] {
    padding-left: 0.5rem;
    min-height: 45px;
}

.form-label {
    margin-bottom: 0.4rem;
}

.input-group {
    background: #fff;
}

.fade-out {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.date-link {
    cursor: pointer;
    text-decoration: underline;
    color: var(--bs-primary);
}

    .date-link:hover {
        text-decoration: none;
        color: var(--bs-primary-dark, #0a58ca);
    }

.highlight-row {
    background-color: #e7f1ff !important;
    transition: background-color 0.6s ease;
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        height: auto;
    }

    to {
        opacity: 0;
        height: 0;
        margin: 0;
        padding: 0;
    }
}

.border-dashed {
    border: 2px dashed #dee2e6;
}

.info-card {
    transition: 0.2s ease;
}

    .info-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

#selectedDaysList div {
    transition: all 0.3s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
        height: 0;
        margin: 0;
        padding: 0;
    }
}

.leave-card {
    transition: all 0.25s ease-in-out;
    border-radius: 0.75rem;
}

    .leave-card.fade-in {
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInUp 0.3s ease forwards;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leave-row .card-body {
    padding: 0.75rem 1rem;
}

.leave-row .text-center {
    min-width: 80px;
}


.card-body {
    padding: 0.75rem 1rem;
}

.text-center .text-secondary {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.text-center .text-muted {
    font-size: 0.9rem;
}

.remove-day {
    transition: all 0.2s ease;
}

    .remove-day:hover {
        background-color: #ffe6e6;
        border-color: #ffb3b3;
    }

.spl-list {
    transition: all 0.2s ease-in-out;
}

.spl-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

    .spl-item:last-child {
        border-bottom: none;
    }

    .spl-item:hover {
        background-color: #f8f9fa;
    }

    .spl-item.active {
        background-color: #e9f5ff;
        border-left: 4px solid #0d6efd;
        font-weight: 500;
    }

/* ✅ Active look + subtle hover */
.spl-item {
    border: none;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

    .spl-item:hover {
        background-color: #f8f9fa;
        color: #0d6efd;
    }

    .spl-item.active {
        background-color: #e9f5ff;
        color: #0d6efd;
        font-weight: 600;
        border-left: 4px solid #0d6efd;
    }

#selectedSpl {
    transition: all 0.2s ease;
}

.date-clickable {
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

    .date-clickable:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-color: #0d6efd; /* Bootstrap primary blue */
        background-color: #f8faff;
    }

.chevron-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.rotate-up {
    transform: rotate(180deg);
}

input[type="date"] {
    font-size: 1.1rem; /* Bigger text */
    padding: 0.75rem 1rem; /* Bigger click area */
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    width: 100%;
}

    input[type="date"]:hover {
        border-color: #007bff;
        box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
    }

/* === Icon box tints === */


.icon-box {
    border-radius: 10px; /* rounded-square look */
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

    /* lighter background shades */
    .icon-box.text-primary {
        background-color: #e7f1ff; /* light blue */
    }

    .icon-box.text-danger {
        background-color: #fdecea; /* light red */
    }

    .icon-box.text-success {
        background-color: #e9f7ef; /* light green */
    }

    .icon-box.text-info {
        background-color: #e6f4f8; /* light cyan */
    }

    .icon-box.text-secondary {
        background-color: #f2f2f2; /* light gray */
    }

    .icon-box.text-warning {
        background-color: #fff4e5; /* light orange */
    }

    .icon-box.text-dark {
        background-color: #ebebeb; /* fallback */
    }


.status-badge {
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Specific status colors */
.status-approved {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-pending {
    background-color: #fff3cd;
    color: #664d03;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #842029;
}

/* Fallback */
.status-default {
    background-color: #e2e3e5;
    color: #41464b;
}


/* 🔸 Common balance row wrapper */
.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem; /* matches Bootstrap small */
    border-radius: 0.5rem; /* rounded-3 */
    padding: 2px 6px;
    margin-bottom: 2px;
}

/* 🔸 White background (for Current & Balance as of) */
.balance-white {
    background-color: #ffffff;
    /*    border: 1px solid #eee;*/
    color: #212529;
}

/* 🔸 Warning (for Pending) */
.balance-warning {
    background-color: #fff4e0;
}

/* 🔸 Muted (for Pending = 0) */
.balance-muted {
    color: #6c757d;
}

/* 🔸 Custom orange tone for text */
.text-orange-700 {
    color: #cc6600 !important;
}

/* Base button look */
.apply-btn {
    transition: all 0.2s ease-in-out;
}

    /* Hover color → Light Blue */
    .apply-btn:hover,
    .apply-btn:active {
        background-color: #e7f1ff !important; /* light blue background */
        color: #0d6efd !important; /* Bootstrap primary blue text */
        border-color: #cfe2ff !important;
    }

        /* Icon matches text color on hover */
        .apply-btn:hover i,
        .apply-btn:active i {
            color: #0d6efd !important;
        }

.apply-btn {
    font-size: 0.8rem; /* slightly smaller text */
    transition: all 0.2s ease-in-out;
}

/* 🌈 Dropdown Enhancement */
.paytype-dropdown {
    transition: all 0.2s ease;
}

    .paytype-dropdown:focus {
        background-color: #f0f8ff;
        box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
        border-color: #86b7fe;
    }

    .paytype-dropdown option {
        padding: 8px 12px;
        font-weight: 500;
        background-color: #fff;
    }

        .paytype-dropdown option:hover,
        .paytype-dropdown option:focus {
            background-color: #f1f1f1;
        }

/* 🟥 Subtle Remove Button hover effect */
.btn-danger-soft:hover {
    background-color: #f8d7da !important;
    color: #b52b35 !important;
    border-color: #f5c2c7 !important;
}


/* 🔹 Default day number */
.daynum {
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    /* 🔹 When NOT WithPay (LWOP or AWOP) */
    .daynum.badge-danger {
        background-color: #dc3545; /* Bootstrap red */
        color: white;
    }

    /* Optional: make badge size consistent */
    .daynum.badge-danger {
        width: 80px;
        height: 30px;
        border-radius: 5%;
    }


/* 🌈 Leave Balance Color Classes (Lighter Versions) */
.bg-primary-custom {
    background-color: #5a8dee !important; /* lighter blue */
    color: #fff !important;
}

.bg-success-custom {
    background-color: #4cb97a !important; /* lighter green */
    color: #fff !important;
}

.bg-danger-custom {
    background-color: #f07178 !important; /* lighter red */
    color: #fff !important;
}

.bg-info-custom {
    background-color: #5ed3f3 !important; /* lighter cyan */
    color: #fff !important;
}

.bg-secondary-custom {
    background-color: #adb5bd !important; /* lighter gray */
    color: #fff !important;
}



/* ✨ Optional hover effects */
.apply-btn.bg-primary-custom:hover {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.apply-btn.bg-success-custom:hover {
    background-color: #198754 !important;
    color: #fff !important;
}

.apply-btn.bg-danger-custom:hover {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.apply-btn.bg-info-custom:hover {
    background-color: #0dcaf0 !important;
    color: #fff !important;
}

.apply-btn.bg-secondary-custom:hover {
    background-color: #6c757d !important;
    color: #fff !important;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.table td, .table th {
    padding: 0.6rem 0.8rem;
}

.alert-info {
    background-color: #eef6ff;
    border-color: #b6daff;
    color: #0d6efd;
}

.readonly-select {
    pointer-events: none;
    background-color: #e9ecef;
    opacity: 0.8;
}
/*LeaveRequestPrint*/
@media print {
    .no-print {
        display: none;
    }

    @page {
        margin: 1cm;
    }

    input, textarea {
        border: none !important;
        box-shadow: none !important;
    }
}

/*LeaveApprovedPrint*/
