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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9;
    color: #1f2937;
}

/* ---------- Auth pages ---------- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a5f, #2c5f8a);
}

.auth-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 380px;
}

.auth-card h1 { font-size: 1.4rem; margin-bottom: 0.25rem; color: #1e3a5f; }
.auth-card .subtitle { color: #6b7280; margin-bottom: 1.5rem; font-size: 0.9rem; }

.auth-card label { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; margin-top: 1rem; color: #374151; }
.auth-card input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}
.auth-card button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.7rem;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
.auth-card button:hover { background: #16304d; }

.alert { padding: 0.6rem 0.8rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 0.5rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* ---------- App layout ---------- */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 230px;
    background: #1e3a5f;
    color: #fff;
    padding: 1.5rem 0;
    flex-shrink: 0;
}
.sidebar h2 { font-size: 1.1rem; padding: 0 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar nav { margin-top: 1rem; }
.sidebar nav a {
    display: block;
    padding: 0.7rem 1.25rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
}
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,0.08); color: #fff; }

.main-content {
    flex: 1;
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.10;
    pointer-events: none;
}

.main-content > *:not(.bg-video) {
    position: relative;
    z-index: 1;
}

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.topbar h1 { font-size: 1.3rem; color: #1e3a5f; }
.topbar .user-info { font-size: 0.85rem; color: #6b7280; }
.topbar .user-info a { color: #dc2626; text-decoration: none; margin-left: 0.75rem; }

/* ---------- Cards & tables ---------- */
.card { background: #fff; border-radius: 8px; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 1.25rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table th, table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid #e5e7eb; }
table th { background: #f9fafb; color: #374151; font-weight: 600; }
table tr:hover { background: #f9fafb; }

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: #1e3a5f;
}
.btn:hover { background: #16304d; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #6b7280; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid label { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; color: #374151; }
.form-grid input, .form-grid select {
    width: 100%; padding: 0.55rem 0.7rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem;
}

.readonly-id {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.hamburger-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0.5rem 1rem; } @media (max-width: 768px) { .app-layout { flex-direction: column; } .hamburger-btn { display: block; position: fixed; top: 0.75rem; left: 0.75rem; z-index: 1001; background: #1e3a5f; border-radius: 6px; } .sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 230px; transform: translateX(-100%); transition: transform 0.25s ease; z-index: 1000; overflow-y: auto; padding-top: 3.5rem; } .sidebar.open { transform: translateX(0); } .main-content { padding: 4rem 1rem 1.5rem; width: 100%; } table { display: block; overflow-x: auto; white-space: nowrap; } .form-grid { grid-template-columns: 1fr; } .topbar { flex-wrap: wrap; gap: 0.5rem; } }