/**
 * Public styles for Student Management System
 */

/* Result Checker Styles */
.result-checker-container {
    max-width: 1200px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
}

.result-checker-wrapper {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* School Header */
.school-header {
    background-color: #fff;
    text-align: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.school-logo {
    max-height: 100px;
    margin-bottom: 10px;
}

.school-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.school-motto {
    font-style: italic;
    color: #666;
}

/* Content Area - 80% Dark Blue, 20% Dark Yellow as requested */
.result-checker-content {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #0a2463 80%, #ffc20a 20%);
    padding: 0;
}

@media (min-width: 768px) {
    .result-checker-content {
        flex-direction: row;
    }
}

/* Left Side - Dark Blue */
.result-checker-left {
    flex: 4;
    background-color: #0a2463; /* Dark Blue */
    padding: 30px;
    color: white;
}

/* Right Side - Dark Yellow */
.result-checker-right {
    flex: 1;
    background-color: #ffc20a; /* Dark Yellow */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Slider */
.result-checker-slider {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 250px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
}

/* Search Form */
.result-checker-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
}

.result-checker-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 194, 10, 0.5);
}

.form-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
}

.btn-check-result {
    width: 100%;
    padding: 12px;
    background-color: #ffc20a; /* Dark Yellow */
    border: none;
    color: #0a2463; /* Dark Blue */
    font-weight: 700;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-check-result:hover {
    background-color: #ffcf3c;
    transform: translateY(-2px);
}

/* Multi-step Flow Styles */
.print-option-card {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.print-option-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-5px);
    border-color: #ffc20a !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.print-option-card h3 {
    font-size: 1.25rem;
    color: #ffc20a;
    margin-top: 15px;
}

#available_sessions .list-group-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    margin-bottom: 8px;
    border-radius: 5px !important;
    transition: all 0.2s;
    cursor: pointer;
}

#available_sessions .list-group-item:hover {
    background: #fff;
    border-color: #ffc20a;
    transform: translateX(5px);
}

#available_sessions .list-group-item.active {
    background-color: #ffc20a;
    border-color: #ffc20a;
    color: #0a2463;
}

.back-to-selection, .back-to-portal {
    color: #ffc20a !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
}

.back-to-selection:hover, .back-to-portal:hover {
    color: #fff !important;
}

/* Transcript Card Adjustments */
.transcript-card {
    background: white;
    padding: 40px;
    border-radius: 0;
    position: relative;
    color: #333;
    min-height: 1000px;
    display: flex;
    flex-direction: column;
}

.signature-block {
    position: relative;
}

.signature-block .place-to-sign {
    border-bottom: 1px dotted #333;
    height: 40px;
    margin-bottom: 5px;
}

/* Hide UI elements during print */
@media print {
    .btn-print-transcript, .back-to-selection, .back-to-portal, .result-checker-slider {
        display: none !important;
    }
}

/* Result Display */
#result_container {
    margin-top: 30px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.result-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 30px;
}

.result-card .card-header {
    padding: 15px 20px;
}

.result-card .card-body {
    padding: 25px;
}

.student-info {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.student-info h4 {
    margin-bottom: 10px;
    color: #333;
}

.student-info p {
    margin-bottom: 5px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 767px) {
    .result-checker-content {
        flex-direction: column;
    }
    
    .result-checker-left,
    .result-checker-right {
        width: 100%;
    }
    
    .result-checker-right {
        padding: 20px;
    }
    
    .result-checker-slider {
        height: 180px;
    }
}

/* Animation Effects */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Right Side Content */
.school-info {
    color: #0a2463;
    text-align: center;
}

.school-contact {
    margin-top: 20px;
    font-size: 14px;
}

.school-contact p {
    margin: 10px 0;
}


.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0a2463;
    color: #ffc20a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #061a4b;
}

/* Print Styling */
@media print {
    body * {
        visibility: hidden;
    }
    
    #result_container, #result_container * {
        visibility: visible;
    }
    
    #result_container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .btn-success {
        display: none;
    }
}

/* Force WordPress theme containers to expand so they don't shrink the online application form */
body:has(.sms-portal-dashboard) .container,
body:has(.sms-portal-dashboard) .ast-container,
body:has(.sms-portal-dashboard) .site-content > .row,
body:has(.sms-portal-dashboard) #content > .container,
body:has(.sms-portal-dashboard) .elementor-container,
body:has(.sms-portal-dashboard) .nv-content-wrap,
body:has(.sms-portal-dashboard) .site-main,
body:has(.sms-portal-dashboard) .entry-content,
body:has(.sms-portal-dashboard) .post-content {
    max-width: 1200px !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Premium Form Insulation for Public Portal Pages */
.sms-portal-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.5 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.sms-portal-dashboard .dashboard-container {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    max-width: 850px !important;
    margin: 2rem auto !important;
}

.sms-portal-dashboard label.form-label {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.4rem !important;
    display: inline-block !important;
}

.sms-portal-dashboard input.form-control,
.sms-portal-dashboard select.form-select,
.sms-portal-dashboard textarea.form-control {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 6px !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.sms-portal-dashboard input.form-control:focus,
.sms-portal-dashboard select.form-select:focus,
.sms-portal-dashboard textarea.form-control:focus {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #1a2980 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(26, 41, 128, 0.25) !important;
}

.sms-portal-dashboard .input-group-text {
    background-color: #f8fafc !important;
    border: 1px solid #94a3b8 !important;
    color: #475569 !important;
}

.sms-portal-dashboard .form-step h5 {
    color: #0f172a !important;
    font-weight: 800 !important;
    border-bottom-color: #e2e8f0 !important;
}

/* ==========================================================================
   FORTRESS INSULATION: Absolute Protection Against Any WordPress Theme/Plugin Overrides
   ========================================================================== */
.sms-portal-dashboard,
.sms-portal-dashboard *,
.application-status-card,
.application-status-card * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    box-sizing: border-box !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    text-shadow: none !important;
    line-height: 1.5 !important;
}

/* Guarantee visibility and flex layout of all grid rows and columns */
.sms-portal-dashboard .row,
.application-status-card .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -0.75rem !important;
    margin-right: -0.75rem !important;
    width: calc(100% + 1.5rem) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sms-portal-dashboard .col-md-6,
.sms-portal-dashboard .col-md-12,
.sms-portal-dashboard .col-md-4,
.sms-portal-dashboard .col-md-8,
.application-status-card .col-md-8 {
    position: relative !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    .sms-portal-dashboard .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    .sms-portal-dashboard .col-md-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .sms-portal-dashboard .col-md-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
    .sms-portal-dashboard .col-md-8,
    .application-status-card .col-md-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
        width: 66.666667% !important;
    }
}

/* Guarantee visibility and pristine styling of all form inputs */
.sms-portal-dashboard input[type="text"],
.sms-portal-dashboard input[type="email"],
.sms-portal-dashboard input[type="date"],
.sms-portal-dashboard input[type="file"],
.sms-portal-dashboard input.form-control,
.sms-portal-dashboard select,
.sms-portal-dashboard select.form-select,
.sms-portal-dashboard textarea,
.sms-portal-dashboard textarea.form-control,
.application-status-card input[type="text"],
.application-status-card input.form-control {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 6px !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.75rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.sms-portal-dashboard select,
.sms-portal-dashboard select.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
}

.sms-portal-dashboard input:focus,
.sms-portal-dashboard select:focus,
.sms-portal-dashboard textarea:focus {
    border-color: #1a2980 !important;
    outline: none !important;
    box-shadow: 0 0 0 0.25rem rgba(26, 41, 128, 0.25) !important;
}

.sms-portal-dashboard label,
.sms-portal-dashboard label.form-label,
.application-status-card label {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.2rem !important;
    text-transform: none !important;
}

/* Explicitly protect form steps and tabs from being hidden by theme JS or CSS */
.sms-portal-dashboard .form-step {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
    background: #ffffff !important;
}

.sms-portal-dashboard .tab-pane.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sms-portal-dashboard #step1 {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Full-Screen Portal Takeover: Hide theme headers, navigation bars, footers, and page titles on online application and status pages */
body:has(.sms-portal-dashboard) header,
body:has(.sms-portal-dashboard) footer,
body:has(.sms-portal-dashboard) .site-header,
body:has(.sms-portal-dashboard) #masthead,
body:has(.sms-portal-dashboard) .site-footer,
body:has(.sms-portal-dashboard) #colophon,
body:has(.sms-portal-dashboard) .elementor-location-header,
body:has(.sms-portal-dashboard) .elementor-location-footer,
body:has(.sms-portal-dashboard) #top-header,
body:has(.sms-portal-dashboard) #main-header,
body:has(.sms-portal-dashboard) #footer-nav,
body:has(.sms-portal-dashboard) .ast-above-header,
body:has(.sms-portal-dashboard) .ast-main-header-wrap,
body:has(.sms-portal-dashboard) .ast-below-header,
body:has(.sms-portal-dashboard) .site-primary-header-wrap,
body:has(.sms-portal-dashboard) .nv-navbar,
body:has(.sms-portal-dashboard) .footer-top,
body:has(.sms-portal-dashboard) .footer-bottom,
body:has(.sms-portal-dashboard) .site-info,
body:has(.sms-portal-dashboard) .entry-title,
body:has(.sms-portal-dashboard) .page-title,
body:has(.sms-portal-dashboard) .post-title,
body:has(.sms-portal-dashboard) .wp-block-post-title,
body:has(.sms-portal-dashboard) .elementor-heading-title,
body:has(.sms-portal-dashboard) h1.entry-title,
body:has(.sms-portal-dashboard) h1.page-title,
body:has(.sms-portal-dashboard) header.page-header,
body:has(.sms-portal-dashboard) header.entry-header,
body:has(.sms-portal-dashboard) .ast-single-post-order,
body:has(.sms-portal-dashboard) .ast-archive-description,
body:has(.sms-portal-dashboard) .ast-post-title,
body:has(.sms-portal-dashboard) .page-title-section,
body:has(.sms-portal-dashboard) .page-header-title,
body:has(.sms-portal-dashboard) .nv-page-title,
body:has(.sms-portal-dashboard) .tg-page-header,
body:has(.sms-portal-dashboard) .oceanwp-page-header,
body:has(.sms-portal-dashboard) .kadence-page-header,
body:has(.sms-portal-dashboard) .fl-post-header,
body:has(.sms-portal-dashboard) .et_pb_title_container,
body:has(.sms-portal-dashboard) h1,
body:has(.application-status-card) header,
body:has(.application-status-card) footer,
body:has(.application-status-card) .site-header,
body:has(.application-status-card) #masthead,
body:has(.application-status-card) .site-footer,
body:has(.application-status-card) #colophon,
body:has(.application-status-card) .elementor-location-header,
body:has(.application-status-card) .elementor-location-footer,
body:has(.application-status-card) .entry-title,
body:has(.application-status-card) .page-title,
body:has(.application-status-card) .post-title,
body:has(.application-status-card) .wp-block-post-title,
body:has(.application-status-card) .elementor-heading-title,
body:has(.application-status-card) h1.entry-title,
body:has(.application-status-card) h1.page-title,
body:has(.application-status-card) header.page-header,
body:has(.application-status-card) header.entry-header,
body:has(.application-status-card) .ast-single-post-order,
body:has(.application-status-card) .ast-archive-description,
body:has(.application-status-card) .ast-post-title,
body:has(.application-status-card) .page-title-section,
body:has(.application-status-card) .page-header-title,
body:has(.application-status-card) .nv-page-title,
body:has(.application-status-card) .tg-page-header,
body:has(.application-status-card) .oceanwp-page-header,
body:has(.application-status-card) .kadence-page-header,
body:has(.application-status-card) .fl-post-header,
body:has(.application-status-card) .et_pb_title_container,
body:has(.application-status-card) h1 {
    display: none !important;
}

.sms-portal-dashboard h1,
.application-status-card h1 {
    display: block !important;
}

body:has(.sms-portal-dashboard),
body:has(.application-status-card) {
    background-color: #f8fafc !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:has(.sms-portal-dashboard) #page,
body:has(.sms-portal-dashboard) #content,
body:has(.sms-portal-dashboard) .site,
body:has(.sms-portal-dashboard) .site-content,
body:has(.application-status-card) #page,
body:has(.application-status-card) #content,
body:has(.application-status-card) .site,
body:has(.application-status-card) .site-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force Font Awesome font-family to override any theme constraints */
.fa, .fas, .far, .fal, .fad, .fab, [class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
}
.fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome Brands", sans-serif !important;
}
