:root {
    --primary: #2563eb;
    /* Biru Cerah - Jelas Birunya */
    --primary-light: #3b82f6;
    --accent: #2563eb;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --bg: #f1f5f9;
    --text: #334155;
    --text-dark: #0f172a;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
    --border: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Header & Nav */
.header {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo img {
    height: 40px;
}

.header-title h1 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05rem;
}

.header-title p {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Formal Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .nav-menu {
        display: flex;
    }

    .user-greeting {
        display: none;
    }

    .header-logo {
        gap: 0.5rem;
    }

    .header-logo img {
        height: 32px;
    }

    .header-title h1 {
        font-size: 0.9rem;
    }

    .header-title p {
        font-size: 0.55rem;
    }

    .container {
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.5rem !important;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .header-title p {
        display: none;
    }

    .header {
        padding: 0.75rem 0.75rem;
    }

    .btn-logout {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Table Enhancements */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05rem;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

td {
    padding: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

/* Footer Styles */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    margin-top: auto;
}

/* Auth Pages Style - FIXED CENTERING */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg);
    min-height: calc(100vh - 160px);
    /* Fill space between header and footer */
}

.auth-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text);
    opacity: 0.7;
    font-size: 0.95rem;
}

.auth-card .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-weight: bold;
    margin-top: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}