@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* === ROOT VARIABLES === */
:root {
    --color-primary: #0f172a;
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-success: #10b981;
    --color-success-bg: #ecfdf5;
    --color-warning: #f59e0b;
    --color-warning-bg: #fffbeb;
    --color-danger: #ef4444;
    --color-danger-bg: #fef2f2;
    --color-text-primary: #1e293b;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-surface: rgba(255, 255, 255, 0.9);
    --color-page-bg: #f8fafc;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --radius-card: 20px;
    --radius-badge: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

/* === BASE & BODY === */
body {
    margin: 0;
    padding: 0;
    background-color: var(--color-page-bg);
    background-attachment: fixed;
    font-family: var(--font-main);
    color: var(--color-text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === TOP NAV BAR === */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: #1e3a8a;
    margin: 0;
    letter-spacing: -0.5px;
}

.nav-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-right {
    position: relative;
    display: flex;
    align-items: center;
}

/* === DROPDOWN MENU === */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-button {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.user-button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 12px;
    background-color: var(--color-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    z-index: 101;
    transform-origin: top right;
    animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFade {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.user-dropdown:hover .dropdown-content,
.user-dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content a,
.dropdown-content button {
    color: var(--color-text-secondary);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-main);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
    background-color: #f8fafc;
    color: var(--color-text-primary);
    padding-left: 24px;
}

/* === MAIN CONTENT === */
.main-content {
    margin-top: 96px;
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 50px 20px;
    animation: slideFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    width: 100%;
    max-width: 900px;
}

/* === WELCOME BANNER === */
.welcome-banner {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #047857;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.welcome-banner button {
    background: none;
    border: none;
    color: #047857;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 1;
}

.welcome-banner button:hover {
    transform: scale(1.2);
}

/* === WELCOME HEADING === */
.welcome-heading {
    margin-bottom: 40px;
}

.welcome-heading h1 {
    margin: 0 0 8px 0;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.welcome-heading p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 18px;
}

/* === ASSESSMENT STATUS CARD === */
.status-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: var(--glass-border);
    padding: 40px;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.status-card:hover {
    box-shadow: var(--shadow-hover);
}

.hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
}

.status-icon {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.status-icon svg {
    width: 32px;
    height: 32px;
    color: #1e293b;
    stroke-width: 2.5;
}

.status-card h2 {
    margin: 0 0 12px 0;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

.status-card p {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.625;
    margin-bottom: 32px;
}

.highlight-text {
    color: var(--color-primary);
    font-weight: 600;
}

.assessment-overview {
    margin-bottom: 40px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 12px 24px;
    border: 1px solid var(--color-border);
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.overview-item:last-child {
    border-bottom: none;
}

.overview-number {
    width: 28px;
    height: 28px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    flex-shrink: 0;
}

.overview-text {
    flex: 1;
    font-family: var(--font-main);
    font-size: 14px;
    color: #334155;
}

.overview-detail {
    font-weight: 400;
    color: #64748b;
    margin-left: 4px;
}

.btn-large {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 18px;
    background: #2563eb;
    color: #fff;
    border-radius: 14px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    letter-spacing: 0.5px;
}

.btn-large:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-secondary);
    border: 2px solid var(--color-border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--color-text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.actions-row {
    display: flex;
    gap: 20px;
}

.actions-row a,
.actions-row button {
    flex: 1;
}

/* === SECTION PROGRESS LIST === */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.progress-row:hover {
    transform: translateX(5px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.progress-row-completed {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.badge {
    padding: 6px 12px;
    border-radius: var(--radius-badge);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid #a7f3d0;
}

.badge-warning {
    background-color: var(--color-warning-bg);
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-primary {
    background-color: #eff6ff;
    color: var(--color-accent);
    border: 1px solid #bfdbfe;
}

/* === INFO CARDS ROW === */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
}

.info-card:hover {
    border-color: rgba(203, 213, 225, 1);
}

/* Info Card color themes mapping */
.info-card-indigo:hover::before {
    background-color: #3b82f6;
}

.info-card-amber:hover::before {
    background-color: #d97706;
}

.info-card-emerald:hover::before {
    background-color: #059669;
}

/* Card Icon Container styling */
.card-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* Soft background tints */
.bg-indigo-soft {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
}

.bg-amber-soft {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
}

.bg-emerald-soft {
    background-color: #ecfdf5;
    border: 1px solid #d1fae5;
}

/* Text coloring for icons */
.text-indigo {
    color: #3b82f6;
}

.text-amber {
    color: #d97706;
}

.text-emerald {
    color: #059669;
}

.info-card h3 {
    margin: 0 0 12px 0;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
}

.info-card p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* === MODAL (RETAKE CONFIRMATION) === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
    to {
        transform: scale(1);
    }
}

.modal h3 {
    margin-top: 0;
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-primary);
}

.modal p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.modal-actions button {
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    flex: 1;
    font-size: 16px;
    transition: all 0.2s ease;
}

.modal-confirm {
    background: #ef4444;
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}

.modal-confirm:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.modal-cancel {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-secondary);
}

.modal-cancel:hover {
    background: #f8fafc;
    color: var(--color-text-primary);
}

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-bar {
        padding: 0 20px;
    }

    .nav-subtitle {
        display: none;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .actions-row {
        flex-direction: column;
        gap: 12px;
    }

    .status-card {
        padding: 24px;
    }

    .status-icon {
        width: 56px;
        height: 56px;
    }

    .status-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* === AYECA LOGO STYLES === */
.nav-logo {
    max-height: 88px;
    width: auto;
    border-radius: 6px;
    vertical-align: middle;
}