:root {
    --navy: #1e293b;
    --blue: #2563eb;
    --slate: #f1f5f9;
}

* { box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }

body { 
    background: #e2e8f0; 
    margin: 0; 
    padding: 10px; 
    font-size: 13px; 
    color: #334155; 
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); 
}

.flex-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--slate); 
    padding-bottom: 15px;
    margin-bottom: 20px;
}

h1 { font-size: 16px; margin: 0; color: var(--navy); }

/* FORM LAYOUT */
.log-form { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 12px; 
    background: var(--slate); 
    padding: 15px; 
    border-radius: 6px; 
    margin-bottom: 20px;
}

.field label { display: block; font-weight: 600; font-size: 11px; margin-bottom: 4px; color: #64748b; text-transform: uppercase; }
input, select { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px; outline: none; background: white; }
input:focus, select:focus { border-color: var(--blue); }

button { 
    width: 100%; 
    background: var(--navy); 
    color: white; 
    padding: 11px; 
    border: none; 
    border-radius: 4px; 
    font-weight: bold; 
    cursor: pointer; 
}

button:hover { background: var(--blue); }

/* RESPONSIVE TABLE */
.table-wrap { width: 100%; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--navy); color: white; text-align: left; padding: 12px; font-size: 12px; }
tbody td { padding: 12px; border-bottom: 1px solid var(--slate); }

/* LOGIN PAGE SPECIFIC STYLES */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f1f5f9; /* Soft Slate */
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo img {
    max-width: 120px;
    margin-bottom: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.login-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.login-card h2 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: var(--navy);
}

.login-card p {
    margin: 0 0 25px 0;
    color: #64748b;
    font-size: 13px;
}

.error-msg {
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 20px;
    border: 1px solid #fee2e2;
}

.login-btn {
    margin-top: 10px;
    padding: 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.login-footer {
    margin-top: 30px;
    font-size: 11px;
    color: #94a3b8;
}

/* Mobile Adjustment for Login */
@media screen and (max-width: 480px) {
    .login-card {
        padding: 20px;
    }
    .login-body {
        align-items: flex-start; /* Push card higher on mobile screens */
        padding-top: 50px;
    }
}

/* MOBILE FRIENDLY TABLE TRANSFORMATION */
@media screen and (max-width: 600px) {
    .flex-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .log-form { grid-template-columns: 1fr; }
    
    .responsive-table thead { display: none; } /* Hide headers on mobile */
    .responsive-table tr { 
        display: block; 
        margin-bottom: 15px; 
        border: 1px solid #e2e8f0; 
        border-radius: 6px; 
        background: white;
    }
    .responsive-table td { 
        display: block; 
        text-align: right; 
        padding: 8px 12px; 
        border-bottom: 1px solid #f1f5f9; 
    }
    .responsive-table td:last-child { border-bottom: none; }
    
    /* Show labels from the data-label attribute */
    .responsive-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 10px;
        color: #94a3b8;
    }
}

/* PAGINATION */
.pagination { margin-top: 20px; display: flex; gap: 5px; justify-content: center; }
.pagination a { 
    padding: 6px 12px; 
    border: 1px solid #cbd5e1; 
    text-decoration: none; 
    color: var(--navy); 
    border-radius: 4px; 
}
.active-page { background: var(--navy); color: white !important; border-color: var(--navy); }