﻿body {
}

/*Apply css*/
.apply-page {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    background: #f5f7fa;
}

.apply-card {
    width: 420px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

    .apply-card h2 {
        text-align: center;
        margin-bottom: 25px;
        font-weight: 600;
    }

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        font-weight: 500;
        margin-bottom: 6px;
        display: block;
    }

.form-control {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 15px;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 6px rgba(13,110,253,0.25);
        outline: none;
    }

.apply-btn {
    width: 100%;
    padding: 11px;
    background: #0d6efd;
    border: none;
    color: white;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .apply-btn:hover {
        background: #0b5ed7;
        transform: translateY(-1px);
    }

.success-message {
    background: #d1e7dd;
    color: #0f5132;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

.text-danger {
    color: #dc3545;
    font-size: 13px;
}


/*Status Page css*/

.leave-status-container {
    padding: 30px;
}

    .leave-status-container h2 {
        text-align: center;
        margin-bottom: 20px;
        font-weight: 600;
    }

.leave-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

    .leave-table thead {
        background: #0d6efd;
        color: white;
    }

    .leave-table th,
    .leave-table td {
        padding: 12px;
        text-align: center;
    }

    .leave-table tbody tr {
        border-bottom: 1px solid #eee;
        transition: 0.2s;
    }

        .leave-table tbody tr:hover {
            background: #f8f9fa;
        }

    .leave-table th {
        font-weight: 600;
    }

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.approved {
    background: #d1e7dd;
    color: #0f5132;
}

.rejected {
    background: #f8d7da;
    color: #842029;
}

.pending {
    background: #fff3cd;
    color: #664d03;
}
/* ✅ MOBILE FIRST */

.table-responsive-custom {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.leave-table {
    min-width: 650px; /* allows scroll on mobile */
}

/* mobile styles */
@media (max-width: 576px) {

    .leave-status-container {
        padding: 15px;
    }

    .leave-table th,
    .leave-table td {
        padding: 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* tablet */
@media (min-width: 576px) {

    .leave-table th,
    .leave-table td {
        font-size: 13px;
        padding: 10px;
    }
}

/* desktop */
@media (min-width: 768px) {

    .leave-status-container {
        padding: 30px;
    }

    .leave-table {
        min-width: 100%; /* no scroll on desktop */
    }

        .leave-table th,
        .leave-table td {
            font-size: 14px;
            padding: 12px;
        }
}



/*Leave Balance css*/
.balance-container {
    padding: 30px;
    text-align: center;
}

    .balance-container h2 {
        margin-bottom: 25px;
        font-weight: 600;
    }

.balance-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.balance-card {
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

    .balance-card:hover {
        transform: translateY(-5px);
    }

    .balance-card h4 {
        margin-bottom: 15px;
        color: #0d6efd;
    }

.balance-values {
    display: flex;
    justify-content: space-between;
}

.label {
    display: block;
    font-size: 13px;
    color: #777;
}

.value {
    font-size: 18px;
    font-weight: 600;
}

.used {
    color: #dc3545;
}

.remaining {
    color: #198754;
}





/*Approve css*/

.pending-container {
    padding: 30px;
}

    .pending-container h2 {
        text-align: center;
        margin-bottom: 20px;
        font-weight: 600;
    }

.pending-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

    .pending-table thead {
        background: #0d6efd;
        color: white;
    }

    .pending-table th,
    .pending-table td {
        padding: 12px;
        text-align: center;
    }

    .pending-table tbody tr {
        border-bottom: 1px solid #eee;
    }

        .pending-table tbody tr:hover {
            background: #f8f9fa;
        }

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-approve {
    background: #198754;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

    .btn-approve:hover {
        background: #157347;
    }

.btn-reject {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

    .btn-reject:hover {
        background: #bb2d3b;
    }

/* BASE STYLE */
.pending-container {
    padding: 15px;
}

.pending-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* MOBILE FIRST */
.table-responsive-custom {
    overflow-x: auto;
}

.pending-table {
    min-width: 700px;
}

    .pending-table th,
    .pending-table td {
        padding: 8px;
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
    }

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* TABLET */
@media (min-width: 576px) {
    .action-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* DESKTOP */
@media (min-width: 768px) {
    .pending-table {
        min-width: 100%;
    }
}