/* ── Variables ───────────────────────────────────────────────── */
:root {
    --primary: #e03f42;
    --primary-dark: #e34346;
    --primary-light: #eff6ff;
    --success:       #16a34a;
    --text:          #1e293b;
    --muted:         #64748b;
    --border:        #e2e8f0;
    --bg:            #f1f5f9;
    --white:         #ffffff;
    --radius:        12px;
    --shadow:        0 4px 24px rgba(37,99,235,.08);
    --shadow-card:   0 2px 16px rgba(0,0,0,.07);
}

/* ── Reset / Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────── */
.adm-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(30,58,138,.3);
}
.adm-header .brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1.5px;
}
.adm-header .brand span {
    color: #93c5fd;
}
.adm-header .subtitle {
    font-size: .8rem;
    color: #bfdbfe;
    margin-top: 1px;
}

/* ── Main ────────────────────────────────────────────────────── */
.adm-main {
    flex: 1;
    padding: 36px 0 60px;
}

/* ── Step Hero Band ──────────────────────────────────────────── */
.adm-hero {
    background: #1c006d;
    padding: 30px 0 40px;
    margin-bottom: -50px;
    text-align: center;
}
.adm-hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.adm-hero p {
    color: #bfdbfe;
    margin: 4px 0 0;
    font-size: .9rem;
}
.adm-app-id {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: #fff;
    border-radius: 20px;
    padding: 2px 12px;
    font-size: .78rem;
    letter-spacing: .5px;
    margin-top: 6px;
}

/* ── Step Indicator ──────────────────────────────────────────── */
.adm-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}
.adm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 120px;
    position: relative;
}
.adm-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    border: 3px solid var(--border);
    background: var(--white);
    color: var(--muted);
    z-index: 1;
    transition: all .3s;
}
.adm-step.done .adm-step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.adm-step.active .adm-step-circle {
    background: var(--white);
    border-color: red;
    color: red;
    box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.adm-step-label {
    font-size: .72rem;
    color: var(--muted);
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}
.adm-step.active .adm-step-label { color: var(--primary); font-weight: 600; }
.adm-step.done .adm-step-label   { color: var(--primary); }

.adm-step-line {
    flex: 1;
    height: 3px;
    background: var(--border);
    margin-top: 20px;
    transition: background .3s;
}
.adm-step-line.done { background: var(--primary); }

/* ── Card ────────────────────────────────────────────────────── */
.adm-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    padding: 32px;
}

/* ── Section Title ───────────────────────────────────────────── */
.adm-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
    margin-bottom: 20px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.adm-section-title i { font-size: .9rem; }

/* ── Form Fields ─────────────────────────────────────────────── */
.adm-card label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}
.adm-card .form-control,
.adm-card .form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: .9rem;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.adm-card .form-control:focus,
.adm-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    outline: none;
}
.adm-card .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.adm-card .form-check-label { font-size: .875rem; font-weight: 400; }
.adm-card textarea.form-control { resize: vertical; min-height: 110px; }

/* ── School Cards ────────────────────────────────────────────── */
.school-option { cursor: pointer; }
.school-option input[type=radio] { display: none; }
.school-card-box {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    transition: all .2s;
    background: var(--white);
    height: 100%;
}
.school-card-box:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.school-option input:checked ~ .school-card-box {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.school-card-box .school-icon {
    width: 85%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.4rem;
    color: var(--primary);
}
.school-card-box .school-name {
    font-weight: 700;
    font-size: .88rem;
    color: var(--text);
}
.school-card-box .school-tag {
    font-size: .75rem;
    color: var(--primary);
    background: rgba(37,99,235,.1);
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 6px;
    display: inline-block;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-adm-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn-adm-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,.4);
    color: #fff;
}
.btn-adm-secondary {
    background: var(--white);
    color: var(--muted);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s;
}
.btn-adm-secondary:hover {
    background: var(--bg);
    color: var(--text);
}
.btn-adm-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(22,163,74,.3);
}
.btn-adm-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(22,163,74,.4);
    color: #fff;
}

/* ── Success Page ────────────────────────────────────────────── */
.adm-success-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--success);
    margin: 0 auto 20px;
}
.adm-app-id-box {
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    padding: 16px 32px;
    display: inline-block;
}
.adm-app-id-box .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.adm-app-id-box .value { font-size: 1.6rem; font-weight: 800; color: var(--primary); letter-spacing: 2px; }

/* ── Alert ───────────────────────────────────────────────────── */
.adm-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    padding: 10px 14px;
    font-size: .85rem;
    margin-bottom: 16px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.adm-footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 18px 0;
    font-size: .82rem;
    margin-top: auto;
}
.adm-footer a { color: #93c5fd; text-decoration: none; }

/* ── Select2 Override ────────────────────────────────────────── */
.adm-card .select2-container .select2-selection--single {
    height: 42px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
}
.adm-card .select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 576px) {
    .adm-card { padding: 20px 16px; }
    .adm-step-label { display: none; }
    .adm-hero h1 { font-size: 1.3rem; }
}
