/* Custom AdminLTE Styles */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap");

/* Fix dropdown/select styling */
select.form-control,
select.form-control-sm {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.5;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

select.form-control-sm {
    min-height: 31px;
    padding: 4px 8px;
    font-size: 13px;
}

select.form-control:focus,
select.form-control-sm:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Ensure selects have proper width */
select.form-control,
select.form-control-sm {
    width: 100%;
    display: block;
}

/* Fix for AdminLTE form groups */
.form-group select.form-control,
.form-group select.form-control-sm {
    display: block;
    width: 100%;
}

/* Dashboard refresh */
:root {
    --dash-ink: #1e2732;
    --dash-muted: #5b6675;
    --dash-accent: #1f7a8c;
    --dash-accent-strong: #145d6a;
    --dash-sand: #f3f5f8;
    --dash-cream: #fef7ec;
    --dash-border: #e2e8f0;
    --dash-surface: #ffffff;
    --dash-wash: #f8fafc;
}

.dashboard-scope {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-link .logo-icon {
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    padding: 0;
}

.brand-wordmark {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Academic settings tabs */
.academic-tabs {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.wizard-eyebrow {
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--dash-muted);
    margin-bottom: 4px;
}

.wizard-subtitle {
    color: var(--dash-muted);
    margin-bottom: 0;
}

.academic-tabs .settings-card {
    border: 0;
    border-radius: 20px;
    background: #f8fafc;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.academic-tabs .settings-card__header {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #0ea5a4, #0f766e);
    border-radius: 20px 20px 0 0;
}

.academic-tabs .tab-nav {
    gap: 6px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

.academic-tabs .nav-tabs {
    border-bottom: 1px solid #e5e7eb;
}

.academic-tabs .nav-tabs .nav-link {
    border-radius: 12px 12px 0 0;
    padding: 10px 18px;
    background: #f1f3f5;
    color: #64748b;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.academic-tabs .nav-tabs .nav-link.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 -6px 16px rgba(30, 39, 50, 0.08);
}

.academic-tabs .tab-content-card {
    background: #fff;
    padding: 0;
    border: none;
}

.academic-tabs .tab-pane {
    background: #fff;
}

.academic-tabs .tab-pane .wizard-panel__title {
    font-size: 22px;
}

.academic-tabs .tab-pane .wizard-panel__subtitle {
    font-size: 14px;
}

.academic-tabs .tab-pane .row {
    --bs-gutter-y: 1.25rem;
}

.academic-tabs .tab-pane .wizard-card h6 {
    font-weight: 600;
    margin-bottom: 12px;
}

.academic-tabs .tab-pane .wizard-card p {
    margin-bottom: 10px;
}

.academic-tabs .tab-pane .wizard-card {
    width: 100%;
}

.academic-tabs .tab-pane .form-check {
    margin-bottom: 8px;
}

.academic-tabs .tab-pane .btn {
    white-space: nowrap;
}

.wizard-panel__title {
    font-weight: 700;
    margin-bottom: 4px;
    color: #0f172a;
}

.wizard-panel__subtitle {
    color: #64748b;
    margin-bottom: 18px;
}

.wizard-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(30, 39, 50, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wizard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(30, 39, 50, 0.12);
}

.tab-pane.fade {
    transition: opacity 0.25s ease;
}

/* Shared student form styling */
.student-form-card {
    border: 0;
    border-radius: 20px;
    background: #f8fafc;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.student-form-card .card-header {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #0ea5a4, #0f766e);
    border-radius: 20px 20px 0 0;
}

.student-form-tabs.nav-tabs {
    border-bottom: 1px solid #e5e7eb;
    gap: 6px;
    padding-bottom: 6px;
}

.student-form-tabs .nav-link {
    border-radius: 12px 12px 0 0;
    padding: 0.55rem 1.1rem;
    background: #f1f3f5;
    color: #64748b;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.student-form-tabs .nav-link.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 -6px 16px rgba(30, 39, 50, 0.08);
}

.student-form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.75rem;
}

.student-form-section h6 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.student-form-section .row {
    row-gap: 1.25rem;
}

.dashboard-head {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 18px;
    color: var(--dash-ink);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.dashboard-eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 6px;
    color: var(--dash-muted);
}

.dashboard-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.dashboard-subtitle {
    color: var(--dash-muted);
    margin-bottom: 0;
}

.dashboard-head-actions .btn {
    border-radius: 999px;
}

.dashboard-hero {
    border-radius: 18px;
    background: var(--dash-wash);
    border: 1px solid var(--dash-border);
}

.hero-title {
    color: var(--dash-ink);
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    color: var(--dash-muted);
    margin-bottom: 0;
}

.stat-card {
    background: var(--dash-surface);
    border-radius: 16px;
    border: 1px solid var(--dash-border);
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    box-shadow: 0 6px 16px rgba(30, 39, 50, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(30, 39, 50, 0.14);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--dash-sand);
    color: var(--dash-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-label {
    margin-bottom: 2px;
    color: var(--dash-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stat-value {
    margin: 0;
    color: var(--dash-ink);
    font-weight: 700;
    font-size: 20px;
}

.quick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dash-surface);
    border-radius: 14px;
    border: 1px solid var(--dash-border);
    padding: 14px 16px;
    color: var(--dash-ink);
    text-decoration: none;
    height: 100%;
    box-shadow: 0 6px 18px rgba(30, 39, 50, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(30, 39, 50, 0.12);
    color: var(--dash-ink);
}

.quick-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.quick-subtitle {
    margin: 0;
    color: var(--dash-muted);
    font-size: 13px;
}

.quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--dash-sand);
    color: var(--dash-accent-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.hero-divider {
    border-top: 1px solid var(--dash-border);
    margin: 24px 0 18px;
}

.split-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dash-ink);
}

.split-legend {
    display: flex;
    align-items: center;
    color: var(--dash-muted);
    font-size: 13px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.legend-male {
    background: #1f7a8c;
}

.legend-female {
    background: #f4a261;
}

.split-progress {
    height: 22px;
    border-radius: 999px;
    background: #e8edf0;
}

.split-bar {
    font-weight: 600;
    font-size: 12px;
}

.split-bar-male {
    background: #1f7a8c;
}

.split-bar-female {
    background: #f4a261;
}

.dashboard-surface {
    border-radius: 18px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    box-shadow: 0 10px 24px rgba(30, 39, 50, 0.08);
}

.section-title {
    font-weight: 700;
    color: var(--dash-ink);
    margin-bottom: 18px;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--dash-border);
    text-decoration: none;
    color: var(--dash-ink);
    background: var(--dash-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.action-item:hover {
    border-color: var(--dash-accent);
    box-shadow: 0 6px 16px rgba(30, 39, 50, 0.08);
    color: var(--dash-ink);
}

.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--dash-cream);
    color: var(--dash-accent-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-card {
    border-radius: 14px;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    padding: 16px;
    height: 100%;
}

.highlight-label {
    color: var(--dash-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.highlight-value {
    margin-bottom: 6px;
    color: var(--dash-ink);
    font-weight: 700;
}

.highlight-caption {
    color: var(--dash-muted);
    margin-bottom: 0;
    font-size: 13px;
}

@media (max-width: 992px) {
    .dashboard-head {
        padding: 20px;
    }

    .dashboard-head-actions .btn {}
}

/* Auth Page Background Pattern (Hero Patterns - Topography) */
.login-page,
.register-page {
    background-color: #e4e9f2;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
}

.login-box,
.register-box {
    margin-top: 0;
}