/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ===== BODY ===== */
body.admission {
    background: #f4faf7;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ===== WRAPPER ===== */
.admission-wrapper {
    width: min(1100px, 95%);
    height: 86vh;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.10);
    border: 1px solid #dceae2;
}

/* ===== LEFT COLUMN ===== */
.admission-wrapper .col-md-6:first-child {
    background: #ffffff;
    border-right: 1px solid #dceae2;
    display: flex;
    align-items: center;
}

.admission-wrapper .row.p-3.p-md-5,
.admission-wrapper .row.p-md-5 {
    width: 100%;
}

/* ===== LOGO ===== */
.admission-logo {
    width: 90px;
    height: auto;
}

/* ===== SCHOOL BADGE ===== */
.admission-wrapper .col-12.mb-5 {
    margin-bottom: 28px !important;
}

/* ===== HEADING ===== */
.admission-wrapper h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 38px;
    color: #0f2318;
    line-height: 1.2;
    margin-bottom: 8px;
}

.admission-wrapper h4 span {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 42px;
    color: #1a6b3c;
    display: block;
    position: relative;
    width: fit-content;
}

.admission-wrapper h4 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #f0a500;
    border-radius: 2px;
    opacity: 0.8;
}

/* ===== SUBHEADING ===== */
.admission-wrapper h5 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: #3d5a47;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ===== FEATURE PILLS ===== */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f4faf7;
    border: 1px solid #dceae2;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #3d5a47;
}

/* ===== CTA BUTTON ===== */
.admission-wrapper .btn-primary {
    background: #1a6b3c !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 13px 28px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 18px rgba(26, 107, 60, 0.28) !important;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admission-wrapper .btn-primary:hover {
    background: #2d8f56 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 107, 60, 0.35) !important;
}

/* ===== FOOTER NOTE ===== */
.admission-footer-note {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dceae2;
    font-size: 12px;
    color: #7a9885;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admission-footer-note strong {
    color: #3d5a47;
}

/* ===== RIGHT COLUMN ===== */
.admission-wrapper .col-md-6:last-child {
    background: #f4faf7;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorative circles */
.admission-wrapper .col-md-6:last-child::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid #dceae2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.admission-wrapper .col-md-6:last-child::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid #dceae2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ===== BANNER IMAGE ===== */
.admission-banner {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
}

/* ===== LOGIN BOX (login.php) ===== */
.login-box-card {
    width: 95%;
    max-width: 400px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.admission-wrapper .col-12.mb-5    { animation: fadeUp 0.4s ease 0.05s both; }
.admission-wrapper h4               { animation: fadeUp 0.4s ease 0.15s both; }
.admission-wrapper h5               { animation: fadeUp 0.4s ease 0.22s both; }
.feature-pills                      { animation: fadeUp 0.4s ease 0.30s both; }
.admission-wrapper .btn-primary     { animation: fadeUp 0.4s ease 0.38s both; }
.admission-footer-note              { animation: fadeUp 0.4s ease 0.45s both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .admission-wrapper {
        height: auto;
        min-height: 80vh;
    }
    .admission-wrapper h4 {
        font-size: 28px;
    }
    .admission-wrapper h4 span {
        font-size: 32px;
    }
}


/* ================================================
   LOGIN PAGE
   ================================================ */

.login-box-card {
    width: 95%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #dceae2;
    box-shadow: 0 8px 48px rgba(0,0,0,0.09);
    padding: 40px 36px;
    animation: fadeUp 0.5s ease both;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}
.login-logo {
    width: 70px;
    height: auto;
    margin-bottom: 12px;
}
.login-school {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f2318;
    margin: 0 0 4px 0;
}
.login-subtitle {
    font-size: 13px;
    color: #7a9885;
    margin: 0;
    font-weight: 400;
}

/* Divider line below header */
.login-header::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #1a6b3c;
    border-radius: 2px;
    margin: 14px auto 0 auto;
}

/* Error */
.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #b91c1c;
    margin-bottom: 20px;
}

/* Fields */
.login-field {
    margin-bottom: 18px;
}
.login-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #3d5a47;
    margin-bottom: 7px;
}
.login-label i {
    color: #1a6b3c;
    margin-right: 4px;
}
.login-input {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #dceae2;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #0f2318;
    background: #f9fcfa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input:focus {
    border-color: #1a6b3c;
    box-shadow: 0 0 0 3px rgba(26,107,60,0.10);
    background: #ffffff;
}
.login-input::placeholder {
    color: #b0c4b8;
    font-size: 13px;
}

/* Password toggle */
.login-pass-wrap {
    position: relative;
}
.login-pass-wrap .login-input {
    padding-right: 44px;
}
.login-eye {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7a9885;
    transition: color 0.2s;
}
.login-eye:hover { color: #1a6b3c; }

/* Submit button */
.login-btn {
    width: 100%;
    padding: 13px;
    background: #1a6b3c;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(26,107,60,0.25);
    transition: all 0.25s ease;
    margin-top: 8px;
}
.login-btn:hover:not(:disabled) {
    background: #2d8f56;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(26,107,60,0.32);
}
.login-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Spinner animation */
.spin {
    animation: spinAnim 0.8s linear infinite;
}
@keyframes spinAnim {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #dceae2;
    font-size: 12px;
    color: #7a9885;
}


/* ================================================
   ACCORDION — Add Student / Edit Student
   ================================================ */

/* Overall accordion border */
.accordion {
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Each item */
.accordion-item {
    border: none !important;
    border-bottom: 1px solid #e8f0eb !important;
}
.accordion-item:last-child {
    border-bottom: none !important;
}

/* Header button — CLOSED state */
.accordion-button {
    background: #ffffff !important;
    color: #1a3c2a !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    padding: 18px 20px !important;
    box-shadow: none !important;
    border-left: 4px solid transparent !important;
    transition: all 0.2s ease !important;
}

.accordion-button:hover {
    background: #f4faf7 !important;
    border-left-color: #a8d5b8 !important;
}

/* Header button — OPEN state */
.accordion-button:not(.collapsed) {
    background: #baddc1 !important;
    color: #1a6b3c !important;
    border-left: 4px solid #1a6b3c !important;
    box-shadow: none !important;
}

/* Arrow icon color */
.accordion-button::after {
    filter: none !important;
}
.accordion-button:not(.collapsed)::after {
    filter: invert(31%) sepia(60%) saturate(500%) hue-rotate(100deg) !important;
}

/* Number badge */
.accordion-button .badge.bg-primary {
    background: #1a6b3c !important;
    border-radius: 8px !important;
    width: 26px;
    height: 26px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    font-weight: 700 !important;
    flex-shrink: 0;
}

.accordion-button:not(.collapsed) .badge.bg-primary {
    background: #1a6b3c !important;
    box-shadow: 0 2px 8px rgba(26,107,60,0.30);
}

/* Accordion body */
.accordion-body {
    background: #ffffff;
    padding: 24px 24px 28px 24px !important;
}

/* Form inputs inside accordion */
.accordion-body .form-control,
.accordion-body .form-select {
    border: 1px solid #c4c4c4 !important;
    border-radius: 8px !important;
    padding: 9px 14px !important;
    font-size: 15px !important;
    background: #f9fcfa !important;
    color: #0f2318 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.accordion-body .form-control:focus,
.accordion-body .form-select:focus {
    border-color: #1a6b3c !important;
    box-shadow: 0 0 0 3px rgba(26,107,60,0.10) !important;
    background: #ffffff !important;
    outline: none !important;
}

.accordion-body .form-control::placeholder {
    color: #b0c4b8 !important;
    font-size: 13px !important;
}

/* Form labels */
.accordion-body .form-label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #3d5a47 !important;
    margin-bottom: 6px !important;
}

/* Disabled fields */
.accordion-body .form-control:disabled,
.accordion-body .form-select:disabled {
    background: #f0f4f1 !important;
    color: #9ab0a0 !important;
    cursor: not-allowed !important;
}

/* Save button */
.btn.btn-primary.btn-lg {
    background: #1a6b3c !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 13px 48px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 18px rgba(26,107,60,0.25) !important;
    transition: all 0.25s ease !important;
}
.btn.btn-primary.btn-lg:hover {
    background: #2d8f56 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 26px rgba(26,107,60,0.32) !important;
}


/* ================================================
   STUDENT PROFILE PAGE
   ================================================ */

/* Section card headers — blue -> green */
.card-header.bg-primary {
    background: #1a6b3c !important;
    border-color: #1a6b3c !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    border-radius: 0 !important;
}

/* Card border */
.card.border-0.shadow-sm {
    border: 1px solid #e8f0eb !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
}

/* Profile table rows */
.card-body.p-0 .table td {
    font-size: 15px !important;
    padding: 9px 16px !important;
    border-color: #e8f0eb !important;
    vertical-align: middle !important;
}

/* Label column — first td */
.card-body.p-0 .table td:first-child {
    color: #3d5a47 !important;
    font-weight: 500 !important;
    background: #f9fcfa !important;
    width: 38% !important;
}

/* Value column */
.card-body.p-0 .table td:last-child {
    color: #0f2318 !important;
}

/* Class/section badge */
.badge.bg-primary {
    background: #1a6b3c !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
}

/* Top profile card */
.card.border-0.shadow-sm.p-4.mb-4 {
    border: 1px solid #dceae2 !important;
    border-radius: 16px !important;
}

/* Print/PDF button */
.btn.btn-secondary {
    background: #4a5568 !important;
    border: none !important;
    border-radius: 8px !important;
}

/* Edit button */
.btn.btn-warning {
    background: #f0a500 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
}

/* Back button */
.btn.btn-outline-secondary {
    border-color: #dceae2 !important;
    color: #3d5a47 !important;
    border-radius: 8px !important;
}
.btn.btn-outline-secondary:hover {
    background: #f4faf7 !important;
    color: #1a6b3c !important;
}

/* View All / outline-primary buttons */
.btn.btn-outline-primary {
    border-color: #1a6b3c !important;
    color: #1a6b3c !important;
    border-radius: 8px !important;
}
.btn.btn-outline-primary:hover {
    background: #1a6b3c !important;
    color: #ffffff !important;
}
/* Attendance - Load Students button */
.btn.btn-primary {
    background: #1a6b3c !important;
    border-color: #1a6b3c !important;
}
.btn.btn-primary:hover {
    background: #2d8f56 !important;
    border-color: #2d8f56 !important;
}
