/* ==================================================================
   index.css
   Styling for the public landing page (index.php) only — the
   employee-facing entry point, not the admin panel. Uses its own
   colour variables so it never depends on layout.css.
   ================================================================== */

:root {
    --pub-primary: #2f5fef;
    --pub-dark: #0f1729;
    --pub-body-bg: #f4f6fb;
    --pub-border: #e5e9f2;
    --pub-text: #1e2433;
    --pub-text-muted: #6b7280;
}

body.public-page {
    margin: 0;
    background: var(--pub-body-bg);
    color: var(--pub-text);
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------------- Navbar ---------------- */

.public-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: #ffffff;
    border-bottom: 1px solid var(--pub-border);
}

.public-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--pub-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.public-navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.public-navbar-brand .brand-name {
    font-weight: 700;
    font-size: 15px;
}

.public-navbar-brand .brand-sub {
    font-size: 11px;
    color: var(--pub-text-muted);
}

.public-navbar-tabs {
    display: flex;
    gap: 6px;
    background: var(--pub-body-bg);
    padding: 4px;
    border-radius: 999px;
}

.tab-link {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pub-text-muted);
}

.tab-link.active {
    background: #ffffff;
    color: var(--pub-primary);
    box-shadow: 0 2px 6px rgba(15, 23, 41, 0.08);
}

.admin-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    background: #f4f6fb;
    border: 1px solid var(--pub-border);
    color: var(--pub-text);
    font-size: 13px;
    font-weight: 600;
}

.admin-login-btn:hover {
    background: #e9edf7;
}

/* ---------------- Hero ---------------- */

.public-hero {
    background: linear-gradient(135deg, var(--pub-dark), #1b2b52);
    color: #fff;
    text-align: center;
    padding: 70px 24px;
    border-radius: 0 0 40px 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 18px;
}

.hero-badge i {
    font-size: 8px;
}

.public-hero h1 {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px;
}

.public-hero p {
    color: #b8c1d9;
    margin: 0 0 26px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.btn-hero-primary {
    background: var(--pub-primary);
    color: #fff;
}

.btn-hero-primary:hover {
    background: #1e3fc4;
}

.btn-hero-secondary {
    background: #ffffff;
    color: var(--pub-text);
}

.btn-hero-secondary:hover {
    background: #eef1f8;
}

/* ---------------- Footer ---------------- */

.public-footer {
    text-align: center;
    padding: 24px;
    color: var(--pub-text-muted);
    font-size: 12px;
}

@media (max-width: 640px) {
    .public-navbar {
        flex-wrap: wrap;
        gap: 12px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
