/* Modern Public Theme */
:root {
    --brand-primary: #0f62fe;
    --brand-accent: #00a884;
    --brand-dark: #112240;
    --surface: #ffffff;
    --surface-soft: #f5f8ff;
    --text-main: #1d2a3a;
    --text-muted: #637084;
    --danger: #d7263d;
    --warning: #f59f00;
    --success: #1a9a52;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(15, 34, 64, 0.08);
    --shadow-strong: 0 18px 38px rgba(15, 34, 64, 0.14);
}

* {
    box-sizing: border-box;
}

body.public-shell {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 8% 0%, rgba(15, 98, 254, 0.16), transparent 32%),
        radial-gradient(circle at 95% 2%, rgba(0, 168, 132, 0.12), transparent 35%),
        linear-gradient(180deg, #f9fbff 0%, #f4f7ff 48%, #f7fbff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 0.5rem;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
}

.container {
    position: relative;
    z-index: 2;
}

.navbar {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #0c2d7a, #0f62fe) !important;
    box-shadow: 0 10px 28px rgba(15, 98, 254, 0.35);
    position: sticky;
    top: 0;
    z-index: 1070;
}

.navbar .dropdown-menu {
    z-index: 1080;
    position: absolute;
}

.navbar .nav-link {
    border-radius: 10px;
    padding: 0.45rem 0.72rem !important;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.card {
    border: 1px solid rgba(15, 34, 64, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(15, 98, 254, 0.22);
}

.card-header {
    background: linear-gradient(120deg, #0f62fe, #2b7bff);
    color: #fff;
    font-weight: 700;
    border-bottom: none;
}

.job-card {
    border-left: 4px solid var(--brand-primary);
}

.job-card .card-title {
    color: var(--brand-primary);
    font-weight: 800;
}

.form-label {
    font-weight: 600;
    color: #2c3e52;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 10px;
    border: 1px solid #d7deea;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(15, 98, 254, 0.15);
}

.required:after {
    content: " *";
    color: var(--danger);
    font-weight: 700;
}

.btn {
    border-radius: 11px;
    font-weight: 700;
    letter-spacing: 0.15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 34, 64, 0.2);
}

.btn-primary {
    background: linear-gradient(120deg, #0f62fe, #2b7bff);
    border: none;
}

.btn-outline-primary {
    border-color: #0f62fe;
    color: #0f62fe;
}

.btn-outline-primary:hover {
    background: #0f62fe;
    color: #fff;
}

.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 34, 64, 0.08);
    animation: slideDownFade 0.35s ease;
}

.login-toast-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1090;
    transition: opacity 0.3s ease;
}

.login-toast-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.login-toast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.6rem;
    width: min(420px, 90vw);
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(26, 154, 82, 0.2);
    animation: loginPop 0.35s ease;
}

.login-toast-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(26, 154, 82, 0.12);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

.login-toast-title {
    font-weight: 800;
    font-size: 1.2rem;
}

.login-toast-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
}

.login-toast-btn {
    border-radius: 999px;
    padding: 0.4rem 1.4rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

@keyframes loginPop {
    0% { transform: translateY(10px) scale(0.98); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.table {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: #eef4ff;
}

.table-hover tbody tr:hover {
    background: rgba(15, 98, 254, 0.05);
}

.badge {
    border-radius: 999px;
    padding: 0.45rem 0.72rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--brand-primary);
    border-radius: 14px;
}

.signature-img {
    width: 220px;
    height: 88px;
    object-fit: contain;
    border: 1px dashed #c7d1e2;
    border-radius: 10px;
    padding: 6px;
    background: #fff;
}

.breadcrumb {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 34, 64, 0.06);
}

.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    max-width: 560px;
    width: 100%;
}

.auth-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    align-items: stretch;
    width: min(980px, 100%);
}

.auth-hero {
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.12), rgba(0, 168, 132, 0.1));
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(15, 98, 254, 0.12);
    box-shadow: var(--shadow-soft);
}

.auth-hero h2 {
    font-size: 2rem;
    margin-bottom: 0;
}

.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 98, 254, 0.12);
    color: #0f62fe;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    width: fit-content;
}

.auth-hero-metric {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: auto;
}

.auth-hero-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-hero-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.auth-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(15, 34, 64, 0.08);
}

.auth-form-header h3 {
    font-weight: 800;
    margin-bottom: 0.25rem;
}

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

.auth-form-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.auth-form-footer p {
    margin-bottom: 0.35rem;
}

.timeline-card {
    background: #f7faff;
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid #e5ecf8;
}

.timeline-title {
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}

.timeline-step {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid #e5ecf8;
}

.timeline-step.done {
    border-color: rgba(26, 154, 82, 0.25);
    box-shadow: 0 10px 20px rgba(26, 154, 82, 0.08);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d9e8;
}

.timeline-step.done .timeline-dot {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(26, 154, 82, 0.18);
}

.timeline-label {
    font-size: 0.9rem;
    font-weight: 600;
}

footer {
    background: linear-gradient(120deg, #0f172a, #12263f) !important;
    color: #dbe6ff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
    color: #8fd3ff !important;
}

.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

.fade-reveal {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes slideDownFade {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .navbar .nav-link {
        margin-bottom: 4px;
    }

    .auth-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-img {
        width: 120px;
        height: 120px;
    }

    .signature-img {
        width: 100%;
        max-width: 220px;
    }

    .table-responsive {
        font-size: 0.92rem;
    }
}

@media print {
    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card {
        box-shadow: none;
        border: 1px solid #d5deeb;
    }
}
/* Enhanced hover effects for stat cards */
.card[style*="border-left"] {
    cursor: pointer;
    position: relative;
}

.card[style*="border-left"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
}

/* Smooth page transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
