/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #0038A8;
    --primary-red: #CE1126;
    --primary-yellow: #FCD116;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #475569;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.brand-logo {
    max-width: 100%;
    height: auto;
    width: 250px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-red);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.glass-panel:nth-child(1) { animation-delay: 0.1s; }
.glass-panel:nth-child(2) { animation-delay: 0.3s; }
.glass-panel:nth-child(3) { animation-delay: 0.5s; }

.section-title {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-yellow);
    bottom: -6px;
    left: 0;
    border-radius: 2px;
}

.text-content p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.text-content strong {
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 56, 168, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: rgba(248, 250, 252, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-blue);
    background: rgba(248, 250, 252, 0.8);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    color: var(--text-muted);
    font-weight: 500;
}

.file-upload-info {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
}

.checkbox-group label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #002266 100%);
    color: var(--white);
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 56, 168, 0.2);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Auth Pages & Dashboard */
.auth-container {
    max-width: 450px;
    margin: 5rem auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}
.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    width: auto;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    font-weight: 600;
    color: var(--text-main);
    background: rgba(241, 245, 249, 0.5);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.badge-pending { background: #fef08a; color: #854d0e; }
.badge-approved { background: #bbf7d0; color: #166534; }
.badge-denied { background: #fecaca; color: #991b1b; }

.action-btn {
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
    margin-right: 0.5rem;
    font-weight: 500;
}
.btn-approve { background: #10b981; color: white; }
.btn-deny { background: #ef4444; color: white; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .container { padding: 2rem; }
    header h1 { font-size: 3rem; }
    .glass-panel { padding: 2.5rem; }
    .brand-logo { width: 300px; }
    
    .hamburger-btn { display: none !important; }
    .nav-buttons { 
        display: flex !important; 
        position: static;
        flex-direction: row;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
    .nav-buttons {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        flex-direction: column;
        align-items: stretch;
        margin-top: 0.5rem;
        background: #ffffff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        z-index: 50;
    }
    .nav-buttons.active {
        display: flex;
    }
    .nav-buttons .btn {
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
        text-align: center;
        width: 100%;
    }
    footer p {
        font-size: 0.75rem;
        padding: 0 1rem;
    }
    footer {
        padding: 1.5rem 0;
    }
    
    /* Mobile Stats (3 per row) */
    .dashboard-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    .dashboard-stats .glass-panel {
        padding: 1rem 0.5rem !important;
    }
    .dashboard-stats h4 {
        font-size: 0.8rem !important;
    }
    .dashboard-stats div {
        font-size: 1.5rem !important;
    }
    
    /* Mobile Tables (Card Accordion View) */
    table, thead, tbody, th, td, tr { 
        display: block; 
    }
    thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr { 
        border: 1px solid #e2e8f0;
        margin-bottom: 1rem;
        border-radius: 8px;
        background: #fff;
        padding: 0;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
        overflow: hidden;
    }
    td { 
        border: none;
        border-bottom: 1px solid #f1f5f9; 
        position: relative;
        padding-left: 45%; 
        padding-right: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        min-height: 40px;
        text-align: left;
    }
    td:last-child {
        border-bottom: 0;
    }
    td:before { 
        position: absolute;
        top: 1.15rem;
        left: 0.75rem;
        width: 40%; 
        padding-right: 10px; 
        white-space: nowrap;
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 0.8rem;
        text-transform: uppercase;
    }
    
    /* Accordion Logic */
    tr.collapsed td:not(.card-header) {
        display: none !important;
    }
    td.card-header {
        cursor: pointer;
        padding: 1.25rem 3rem 1.25rem 1.25rem !important;
        background: #f8fafc;
    }
    td.card-header::before {
        display: none !important;
    }
    td.card-header::after {
        content: '▼';
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        font-size: 0.8rem;
        color: var(--primary-blue);
    }
    tr:not(.collapsed) td.card-header::after {
        transform: translateY(-50%) rotate(180deg);
    }
    tr:not(.collapsed) td.card-header {
        border-bottom: 2px solid #e2e8f0;
    }
}

/* Modal Lightbox */
.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(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}
.close:hover, .close:focus {
    color: var(--primary-red);
    text-decoration: none;
    cursor: pointer;
}
