@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #1c1e21;
}

.container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.up-side h2 {
    color: #003aa0;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Status Banner Modernization */
.status-banner {
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.status-approved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-pending {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    color: #004085;
    border: 1px solid #b8daff;
}

/* Tabs Redesign */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e4e6eb;
    padding-bottom: 5px;
}

.tablinks {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    color: #65676b;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tablinks:hover {
    background-color: rgba(0, 123, 255, 0.05);
    color: #007bff;
}

.tablinks.active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
    background-color: transparent;
}

/* Tab Content & Tables */
.tabcontent {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e4e6eb;
}

th {
    background-color: #f8f9fa;
    color: #4b4f56;
    font-weight: 600;
    padding: 12px;
    text-align: center;
    border-bottom: 2px solid #e4e6eb;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e4e6eb;
    text-align: center;
}

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

tr:hover td {
    background-color: #f8f9fa;
}

tfoot th {
    background-color: #f0f2f5;
    font-weight: 700;
    color: #1c1e21;
}

.subtotal {
    color: #007bff;
    font-weight: 600;
}

/* Validation Section Cards */
.validation-card {
    background-color: #f8f9fa;
    border: 1px solid #e4e6eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.validation-card h3 {
    margin-top: 0;
    color: #003aa0;
    font-size: 1.25rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.validation-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.validation-stat strong {
    color: #4b4f56;
}

.validation-stat .value {
    font-weight: 700;
    color: #007bff;
}

/* Modern Buttons */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

/* Modal Modernization */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalScale 0.3s ease;
}

@keyframes modalScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #1c1e21;
}

textarea#reject_reason {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    margin-top: 10px;
}

/* Attachment Section */
.down-side {
    margin-top: 40px;
    background-color: #ffffff;
    border: 1px solid #007bff;
    padding: 25px;
    border-radius: 12px;
}

.files-container ul {
    list-style: none;
    padding: 0;
}

.files-container li {
    padding: 10px;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
}

.files-container li a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.files-container li a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tablinks {
        flex: 1;
        padding: 10px;
        font-size: 0.9rem;
    }
}