:root {
    --primary-color: #0f172a;
    --accent-color: #0284c7;
    --accent-hover: #0369a1;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --orange: #f97316;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-orange {
    background-color: var(--orange) !important;
}

.text-orange {
    color: var(--orange) !important;
}

/* Sidebar Layout */
.admin-layout {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background-color: #0f172a;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0.75rem;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: #0f172a;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

.sidebar-menu .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-menu .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.sidebar-menu .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.sidebar-menu .nav-link:hover {
    color: #ffffff;
    background-color: #1e293b;
}

.sidebar-menu .nav-link:hover i {
    color: #38bdf8;
}

.sidebar-menu .nav-link.active {
    color: #ffffff;
    background-color: #0284c7;
    font-weight: 700;
}

.sidebar-menu .nav-link.active i {
    color: #ffffff;
}

.sidebar-heading {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    padding: 0.75rem 1rem 0.25rem;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #1e293b;
    background-color: #090d16;
}

.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

.topbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1.75rem;
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -260px;
    }
    .sidebar.show {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

.card-custom {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    background-color: var(--card-bg);
}

.card-header-custom {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.btn-primary-custom {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
}

/* Wizard Progress */
.progress-wizard {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
}

.progress-bar-wizard {
    background: linear-gradient(90deg, #0284c7 0%, #0d9488 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Timeline Stepper Header */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding: 0.75rem 0.25rem;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 95px;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stepper-title {
    font-size: 0.73rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.25;
    max-width: 110px;
}

.stepper-item.completed .stepper-circle {
    background-color: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.stepper-item.completed .stepper-title {
    color: #059669;
    font-weight: 700;
}

.stepper-item.active .stepper-circle {
    background-color: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25);
    transform: scale(1.1);
}

.stepper-item.active .stepper-title {
    color: #0284c7;
    font-weight: 800;
}

.question-card {
    border-left: 4px solid var(--accent-color);
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.question-number {
    font-weight: 700;
    color: var(--accent-color);
}

.option-radio-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    margin-bottom: 0.5rem;
}

.option-radio-label:hover {
    border-color: var(--accent-color);
    background: #f0f9ff;
}

.form-check-input:checked + .option-text {
    font-weight: 600;
    color: var(--accent-hover);
}

.score-badge-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-ready { background-color: #10b981; color: white; }
.badge-developing { background-color: #f59e0b; color: white; }
.badge-preparing { background-color: #f97316; color: white; }
.badge-at-risk { background-color: #ef4444; color: white; }

.table-custom th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}
