/* Modern Portal Styles - Premium UI with Carousel Support */
:root {
    --primary: #0062cc;
    --primary-dark: #004a99;
    --accent: #e53e3e;
    --text-main: #1a202c;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: transparent !important;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Navbar - Premium Look */
.navbar.navbar-info {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 2px solid var(--primary) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0 15px !important;
    color: var(--primary) !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    display: flex;
    align-items: center;
}

.navbar-nav li a {
    color: #2d3748 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 10px 18px !important;
    margin: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

/* Header Link Buttons - High End UI */
.navbar-nav li.btn-danger-link a {
    background: #e53e3e !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.25);
}

.navbar-nav li.btn-danger-link a:hover {
    background: #c53030 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(229, 62, 62, 0.35);
}

.navbar-nav li.btn-primary-link a {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 98, 204, 0.25);
}

.navbar-nav li.btn-primary-link a:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 98, 204, 0.35);
}

.navbar-nav li a:not([class*="link"]):hover {
    background: #f7fafc !important;
    color: var(--primary) !important;
}

/* Page Spacing and Overlay */
#wrap {
    padding-top: 85px;
}

.container-fluid.bg {
    min-height: calc(100vh - 85px);
    background: rgba(0, 0, 0, 0.3) !important; /* Slightly darker overlay for better contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px !important; /* Reduced top padding to move card up */
}

/* Login Card Readability */
.app-card {
    background: #ffffff !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: none !important;
}

/* Mobile Navbar - Hamburger Menu */
.navbar-toggle {
    border: none !important;
    margin-top: 15px !important;
    padding: 10px !important;
    background: transparent !important;
}

.navbar-toggle:hover, .navbar-toggle:focus {
    background: #f7fafc !important;
}

.navbar-toggle .icon-bar {
    background-color: var(--primary) !important;
    width: 24px !important;
    height: 3px !important;
    border-radius: 2px !important;
    margin-bottom: 4px !important;
    transition: all 0.2s;
}

.navbar-toggle .icon-bar:last-child {
    margin-bottom: 0 !important;
}

/* Footer Premium */
#footer {
    background: rgba(255,255,255,0.9);
    border-top: 1px solid #e2e8f0;
    padding: 20px 0;
    position: relative;
    z-index: 20;
}

/* --- Student Portal Layout Components --- */

/* Sidebar Navigation */
.sidebar {
    background: #003366 !important; /* NWRI Deep Blue */
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.42), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

.sidebar .logo {
    padding: 25px 15px !important;
    background: rgba(0,0,0,0.1);
}

.sidebar .logo .simple-text {
    color: #fff !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 18px !important;
}

.sidebar .nav li.active > a {
    background-color: var(--primary) !important;
    box-shadow: 0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(0, 98, 204, 0.4) !important;
}

.sidebar .nav li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.main-panel {
    background-color: #f5f7fb !important;
    background-image: none !important;
}

/* Main Navbar */
.main-panel > .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

.main-panel > .navbar .navbar-brand {
    color: var(--text-main) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

/* --- Consolidated Modern Components --- */

/* Modern Card */
.modern-card, .status-card {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: white;
    padding: 0; /* Changed to 0 to allow header/content control */
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
}

/* Wizard Vibe Background - Water Light Blue */
.wizard-vibe {
    background-color: #e0f2fe !important; /* Light Water Blue */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 98, 204, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(96, 165, 250, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(0, 98, 204, 0.03) 0px, transparent 50%) !important;
    background-attachment: fixed !important;
}

/* Ensure parents are transparent on wizard pages */
.wizard-vibe .main, 
.wizard-vibe .profile-content,
.wizard-vibe .wrapper,
.wizard-vibe .main-panel {
    background: transparent !important;
}

/* Wizard Specific Components */
.section-title {
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.form-label-modern {
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 8px;
    display: block;
    font-size: 13px;
}

.form-control-modern {
    border-radius: 8px !important;
    padding: 10px !important;
    border: 1px solid #e2e8f0 !important;
    height: auto !important;
    box-shadow: none !important;
    transition: all 0.2s;
}

.form-control-modern:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 98, 204, 0.1) !important;
}

.wizard-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #edf2f7;
}

.alert-modern {
    border-radius: 8px;
    border: none;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-modern-warning {
    background: #fffaf0;
    color: #8a6d3b;
}

/* Wizard Navigation */
.wizard-header {
    background: rgba(248, 250, 252, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #edf2f7;
    padding-top: 4px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.wizard-nav {
    border: none;
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #f0f0f0;
}

.wizard-step {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.wizard-step:last-child {
    border-right: none;
}

.wizard-step a {
    display: block;
    padding: 20px 10px;
    text-decoration: none !important;
}

.wizard-step i.material-icons {
    font-size: 24px;
    margin-bottom: 0;
    color: #cbd5e0;
    display: block;
    transition: all 0.3s;
}

.step-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.done-icon {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 16px !important;
    color: #10b981 !important;
    background: white;
    border-radius: 50%;
    display: none !important;
}

.wizard-step.completed .done-icon {
    display: block !important;
}

.wizard-step.completed i:not(.done-icon) {
    color: #10b981 !important;
}

.wizard-step.completed h4 {
    color: #059669 !important;
}

.wizard-step.active i.material-icons {
    color: var(--primary);
    transform: scale(1.1);
}

.wizard-step h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #cbd5e0;
}

.wizard-step p {
    margin: 0;
    font-size: 11px;
    color: #cbd5e0;
    font-weight: 600;
}

.wizard-step.active {
    background: #f0f9ff;
    border-bottom: 3px solid var(--primary);
}

.wizard-step.active h4 {
    color: var(--primary);
}

.wizard-step.active p {
    color: var(--text-muted);
}

.wizard-step:not(.disabled) {
    cursor: pointer;
}

.wizard-step:not(.active) {
    opacity: 0.7;
}

.setup-content {
    animation: wizardSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wizardSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.declaration-box {
    background: #fffaf0;
    border: 1px solid #feebc8;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

/* Notice Card - for Registration Closed etc */
.notice-card {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
    background: white;
    max-width: 950px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-card .card-header {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    color: white;
    padding: 35px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.notice-card .card-body {
    padding: 50px 40px;
    text-align: center;
}

.alert-notice {
    background-color: rgba(230, 126, 34, 0.08);
    border: 2px solid rgba(230, 126, 34, 0.2);
    color: #7e5109;
    border-radius: 15px;
    padding: 40px 35px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.alert-notice-icon {
    font-size: 80px;
    margin-bottom: 25px;
    color: #e67e22;
}

.alert-notice-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* --- Auth and Single Card Form Pages --- */
.auth-container {
    min-height: calc(100vh - 300px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px !important;
    background: transparent !important;
    margin: 0 !important;
}

/* Override legacy spacing for auth pages */
#wrap > .auth-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.container-fluid.bg {
    padding-top: 0 !important;
}

/* SweetAlert should be on top of everything */
.swal2-container {
    z-index: 999999 !important;
}

.auth-card {
    width: 100%;
    max-width: 650px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    opacity: 0;
    animation: authFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
}

.auth-header.light {
    background: #ffffff;
    color: var(--text-main);
    border-bottom: 1px solid #edf2f7;
}

.auth-header h2, .auth-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: inherit;
}

.auth-header p {
    margin: 2px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.auth-title {
    margin: 0;
    font-weight: 800;
    font-size: 20px;
}

/* Info List Components */
.info-list {
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-label-group i {
    font-size: 18px;
    color: var(--primary);
    opacity: 0.8;
}

.info-text-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.info-text-value {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

/* Payment Box Components */
.payment-box-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.payment-box-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.currency-symbol {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}

.amount-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Footer & Branding */
.auth-footer-divider {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

.footer-small-text {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.footer-logo-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-logo {
    max-height: 24px;
    opacity: 0.8;
}

/* Payment Specific Premium UI */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

.payment-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.payment-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(0, 98, 204, 0.05), transparent);
    border-radius: 0 0 0 100%;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.secure-badge i {
    font-size: 14px;
}

.amount-breakdown {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.breakdown-row.total {
    color: var(--text-main);
    font-weight: 800;
    font-size: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.btn-auth-premium {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white !important;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 98, 204, 0.25);
    cursor: pointer;
}

.btn-auth-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 98, 204, 0.35);
    filter: brightness(1.1);
}

.btn-auth-premium:active {
    transform: translateY(0);
}

.auth-body {
    padding: 25px 30px;
}


.auth-body .form-group {
    margin-bottom: 8px !important;
}

.auth-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.auth-input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0px;
    position: relative;
}

.auth-input-group:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 98, 204, 0.15), 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.auth-input-icon {
    position: absolute;
    left: 0;
    width: 48px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    height: 100%;
    top: 0;
    transition: color 0.3s ease;
}

.auth-input-icon-right {
    position: absolute;
    right: 0;
    width: 48px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    cursor: pointer;
    z-index: 10;
    height: 100%;
    top: 0;
    transition: all 0.3s ease;
}

.auth-input-icon-right i {
    font-size: 20px;
    line-height: 1;
    display: block;
}

.auth-input-group:focus-within .auth-input-icon,
.auth-input-group:focus-within .auth-input-icon-right {
    color: var(--primary);
}

.auth-input-icon-right:hover {
    color: var(--primary);
}

.auth-control {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 15px !important;
    font-size: 15px;
    color: #2d3748;
    outline: none;
    width: 100%;
    position: relative;
    z-index: 2;
    height: 48px;
}

select.auth-control {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* For Select elements, we need to add back a custom arrow since appearance:none removes it */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 15px) center !important;
    background-size: 16px !important;
    padding-right: 45px !important;
    cursor: pointer;
    min-width: 100%;
}

select.auth-control:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230062cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Apply extra padding only when icons are present */
.auth-input-icon ~ .auth-control {
    padding-left: 48px !important;
}

.auth-input-icon-right ~ .auth-control,
.auth-input-group > .auth-input-icon-right ~ .auth-control {
    padding-right: 48px !important;
}

/* If input is before the right icon in DOM */
.auth-control:has(+ .auth-input-icon-right),
.auth-control:has(+ * + .auth-input-icon-right) {
    padding-right: 48px !important;
}

/* Fix for textarea which shouldn't have fixed height */
textarea.auth-control {
    height: auto;
    padding-top: 15px !important;
}

.section-container {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.auth-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--primary);
    padding: 2px 12px;
    background: linear-gradient(to right, #f8fafc, transparent);
    border-radius: 0 4px 4px 0;
}

.auth-section-title i {
    color: var(--primary);
}
    padding: 8px;
    border-radius: 10px;
    font-size: 20px;
}

.form-control-wizard {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #2d3748;
    background-color: #f8fafc;
    background-clip: padding-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.form-control-wizard:focus {
    background-color: #fff;
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(0, 98, 204, 0.1);
}

.btn-auth {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white !important;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 98, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
}

.btn-auth:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(0, 98, 204, 0.2);
}

.btn-auth-secondary {
    background: #f8fafc;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0;
    margin-top: 6px;
}

.btn-auth-secondary:hover {
    background: #edf2f7;
    transform: none;
    box-shadow: none;
}

.auth-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.auth-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.auth-footer-text {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-divider {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.auth-section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Specific Auth Helpers */
.timer-box {
    background: #fff5f5;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 10px;
    text-align: center;
    border: 1px solid #fed7d7;
}

.deadline-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c53030;
    letter-spacing: 0.5px;
    opacity: 0.8;
    display: block;
}

#deadline {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #e53e3e;
    font-variant-numeric: tabular-nums;
}

.help-box {
    margin-top: 10px;
    padding: 10px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 12px;
    color: #0369a1;
    text-align: center;
    border: 1px solid #e0f2fe;
}

.alert-notice-message {
    font-size: 24px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    color: #5d4207;
}

/* --- Card Header & Content --- */
.card-header-modern {
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    padding: 30px;
}

.card-title-modern {
    color: #1e293b;
    margin: 0;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(0, 98, 204, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrapper i {
    color: var(--primary);
}

.card-subtitle-modern {
    color: var(--text-muted);
    margin: 10px 0 0 52px;
    font-size: 14px;
    font-weight: 500;
}

.card-content-modern {
    padding: 25px 30px;
}

/* --- Profile UI --- */
.profile-avatar-wrapper {
    margin: -15px auto 15px;
    width: 130px;
    height: 130px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 4px solid white;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-weight: 800;
    color: var(--text-main);
    font-size: 20px;
    margin-bottom: 5px;
}

.profile-category {
    color: var(--accent);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.profile-location {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.profile-info-pill {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--primary);
    font-size: 16px;
    display: block;
}

.status-card {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Admission & Info Boxes */
.admission-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
}

.admission-info.pending {
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.admission-info.rejected {
    background: #fef2f2;
    border: 1px solid #fee2e2;
}

.course-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    margin: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 98, 204, 0.2);
}

/* Button Variants - Modern */
.btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary-modern { background: var(--primary); color: white !important; box-shadow: 0 4px 12px rgba(0, 98, 204, 0.2); }
.btn-primary-modern:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-secondary-modern { background: #edf2f7; color: #4a5568 !important; border: 1px solid #e2e8f0; }
.btn-secondary-modern:hover { background: #e2e8f0; color: #2d3748 !important; transform: translateY(-1px); }

.btn-success-modern { background: #10b981; color: white !important; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }
.btn-success-modern:hover { background: #059669; transform: translateY(-1px); }

.btn-info-modern { background: #0ea5e9; color: white !important; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2); }
.btn-info-modern:hover { background: #0284c7; transform: translateY(-1px); }

.btn-warning-modern { background: #f59e0b; color: white !important; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2); }
.btn-warning-modern:hover { background: #d97706; transform: translateY(-1px); }

.btn-danger-modern { background: #e53e3e; color: white !important; box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2); }
.btn-danger-modern:hover { background: #c53030; transform: translateY(-1px); }

/* Action & Layout Helpers */
.main-container {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 50px;
}

.action-buttons {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.congrats-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.status-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.info-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 700;
    color: #1e293b;
}

.payment-box {
    background: white;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-top: 25px;
}

.payment-amount {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 15px 0;
}

/* Modern Table */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.modern-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border-bottom: 1px solid #edf2f7;
}

.modern-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    vertical-align: middle;
}

.modern-table tr:hover {
    background: #f8fafc;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

/* Checkbox Styling */
.checkbox-wrapper {
    text-align: center;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 4px;
    vertical-align: middle;
}

.sitting-header {
    background: #edf2f7;
    padding: 10px 15px;
    font-weight: 800;
    font-size: 12px;
    color: #2d3748;
    text-transform: uppercase;
}

.sn-circle {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* Status UI */
.status-pill, .status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.status-core { background: #e0f2fe; color: #0369a1; }
.status-elective { background: #fef3c7; color: #92400e; }
.status-approved, .status-success { background: #def7ec; color: #03543f; }
.status-pending, .status-danger { background: #fdf2f2; color: #9b1c1c; }

/* Student Info Boxes */
.student-info-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex-grow: 1;
}

.info-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 2px;
}

.info-item span {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

/* Form Elements Styling */
.section-title {
    font-weight: 800;
    color: var(--text-main);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border-radius: 8px !important;
    padding: 10px 15px !important;
    border: 1px solid #e2e8f0 !important;
    height: auto !important;
    font-size: 14px !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    background-color: white !important;
    box-shadow: 0 0 0 3px rgba(0, 98, 204, 0.1) !important;
}

.form-control:disabled {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}

/* Profile Specific UI */
.profile-preview-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

.profile-preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.custom-file-upload {
    display: block;
    width: 100%;
    padding: 10px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    margin-top: 5px;
}

.custom-file-upload:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.custom-file-upload i {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

/* Alert Container Fix */
.alert-container {
    margin-bottom: 20px;
}

.alert-container .alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
    .student-info-box { flex-direction: column-reverse; gap: 20px; }
    .modern-card { 
        padding: 0 !important; 
        margin-bottom: 10px !important;
        border-radius: 8px !important;
    }
    
    .main-raised {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        margin-top: -100px !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .wrapper {
        overflow-x: hidden !important;
    }

    .content {
        padding-top: 15px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-modern .navbar-brand {
        font-size: 16px !important;
        gap: 8px !important;
    }
    
    /* Wizard Navigation Mobile */
    .wizard-nav {
        overflow-x: auto;
        white-space: nowrap;
        display: flex !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        scrollbar-width: none; /* Firefox */
        border-bottom: 1px solid #edf2f7;
    }
    .wizard-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .wizard-step {
        flex: 0 0 auto !important;
        min-width: 90px !important;
        border-right: none !important;
        text-align: center;
    }
    
    .wizard-step a {
        padding: 12px 8px !important;
    }
    
    .wizard-step h4 {
        font-size: 11px !important;
        margin-bottom: 0 !important;
    }

    .wizard-step i.material-icons {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }
    
    .wizard-step p {
        display: none !important;
    }

    .wizard-step.active {
        background: #f0f7ff !important;
        border-bottom: 3px solid var(--primary) !important;
    }

    .wizard-header {
        position: relative !important;
    }

    /* Container & Section Adjustments */
    .card-content {
        padding: 15px !important;
    }

    .section-container {
        padding: 15px !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
    }

    .auth-section-title {
        font-size: 14px !important;
        gap: 8px !important;
    }

    /* Button Adjustments */
    .btn-modern {
        width: 100% !important;
        margin-top: 10px !important;
        float: none !important;
        padding: 12px 15px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 10px !important;
    }

    .btn-modern i {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }

    .section-container {
        padding: 15px !important;
        margin-bottom: 20px !important;
        border-radius: 10px !important;
    }

    .auth-section-title {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }

    .wizard-box {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    .auth-label {
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }

    .auth-control {
        height: 44px !important;
        font-size: 14px !important;
    }

    .auth-input-icon {
        width: 40px !important;
    }

    .auth-input-icon ~ .auth-control {
        padding-left: 40px !important;
    }

    .row [class*="col-"] {
        margin-bottom: 10px;
    }

    /* Flex row adjustments for buttons */
    .col-md-12[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .col-md-12[style*="display: flex"] .btn-modern {
        margin-top: 0 !important;
        flex: none !important;
    }

    .form-group[style*="max-width"] {
        max-width: 100% !important;
    }

    /* O-Level Table Mobile Optimization */
    .modern-table {
        table-layout: auto !important;
        width: 100% !important;
    }

    .modern-table th, .modern-table td {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }
    
    .sn-col, .modern-table th[style*="width: 70px"], .modern-table td[style*="width: 70px"] { 
        width: 30px !important; 
        min-width: 30px !important;
    }
    .sn-cell { padding: 8px 4px !important; }
    .sn-circle { width: 22px !important; height: 22px !important; line-height: 22px !important; font-size: 10px !important; }
    
    .modern-table th[style*="width: 150px"], 
    .modern-table td[style*="padding: 8px"] .auth-control {
        font-size: 13px !important;
    }

    .modern-table th[style*="width: 150px"],
    .modern-table th[style*="width: 200px"] {
        width: 80px !important;
        min-width: 80px !important;
    }

    .auth-input-icon {
        width: 35px !important;
    }

    .auth-input-icon ~ .auth-control {
        padding-left: 35px !important;
    }

    .auth-control {
        padding: 8px 10px !important;
        font-size: 14px !important;
        height: 40px !important;
    }

    select.auth-control {
        padding-right: 30px !important;
        background-position: calc(100% - 10px) center !important;
    }
    
    .sitting-header {
        padding: 10px 15px !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .exam-info-badge {
        width: 100%;
        justify-content: center;
    }
}

/* Carousel Adjustments */
.cb-slideshow li div h3 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #fff !important;
}
