/* --- Root Variables & Reset --- */
:root {
    --primary: #003366;    /* Deep Blue - Trust & Authority */
    --secondary: #ffcc00;  /* Gold - Excellence & Education */
    --accent: #e63946;     /* Red - Urgency for HR protection */
    --success: #2a9d8f;
    --background: #f8f9fa;
    --surface: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Layout Containers --- */
.header-container, .footer-container, .dashboard-layout, .auth-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header & Navigation --- */
#app-header {
    background-color: var(--primary);
    color: var(--surface);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--surface);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-btn-alt {
    background: transparent;
    border: 1px solid var(--surface);
    color: var(--surface);
    padding: 0.4rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn-alt:hover {
    background: var(--surface);
    color: var(--primary);
}

/* --- Auth / Login Card --- */
.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.auth-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.auth-header h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-action {
    margin-bottom: 2rem;
}

.auth-footer small {
    display: block;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    color: var(--text-muted);
}

/* --- Dashboard & Stats --- */
.page-title {
    margin: 2rem 0;
    border-left: 5px solid var(--secondary);
    padding-left: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.active {
    background-color: #d1fae5;
    color: var(--success);
}

/* --- Form Styles --- */
.data-form {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

fieldset {
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
}

legend {
    font-weight: bold;
    padding: 0 0.5rem;
    color: var(--primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
}

.btn-primary:hover {
    background: #002244;
}

.form-help {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* --- Footer --- */
#app-footer {
    background: #e9ecef;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: auto;
}

/* --- Responsive Helpers --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
}
