/**
 * Kheda Arts and Commerce College - Result Lookup & Marksheet Stylesheet
 * Palette: Navy #01356F, Burgundy #792D43, Section Bg #F5E9EC, Charcoal #302B35
 */

.result-lookup-section {
    background-color: #f8fafc;
    padding: 70px 0 90px;
}

.result-lookup-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(1, 53, 111, 0.06);
    padding: 32px 36px;
    margin-bottom: 32px;
}

.result-lookup-header {
    border-bottom: 2px solid #F5E9EC;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.result-lookup-header h2 {
    color: #01356F;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.result-lookup-header p {
    color: #64748b;
    margin-bottom: 0;
    font-size: 15px;
}

.result-lookup-form .form-label {
    color: #01356F;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.result-lookup-form .form-select,
.result-lookup-form .form-control {
    height: 46px;
    border-color: #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

.result-lookup-form .form-select:focus,
.result-lookup-form .form-control:focus {
    border-color: #01356F;
    box-shadow: 0 0 0 0.2rem rgba(1, 53, 111, 0.14);
}

.result-show-btn {
    height: 46px;
    background-color: #01356F;
    border-color: #01356F;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    padding: 0 26px;
    transition: all 0.25s ease;
}

.result-show-btn:hover,
.result-show-btn:focus {
    background-color: #792D43;
    border-color: #792D43;
    color: #ffffff;
}

/* Not Found / Error Card */
.result-not-found-card {
    background: #ffffff;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    padding: 24px 28px;
    text-align: center;
}

.result-not-found-card i {
    font-size: 38px;
    color: #dc2626;
    display: block;
    margin-bottom: 8px;
}

/* Marksheet Card */
.result-sheet-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(1, 53, 111, 0.08);
    overflow: hidden;
}

.result-sheet-topbar {
    background: linear-gradient(135deg, #01356F 0%, #094a91 100%);
    color: #ffffff;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.result-sheet-topbar-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
}

.result-sheet-batch-pill {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.result-sheet-college-banner {
    padding: 22px 30px;
    border-bottom: 2px solid #F5E9EC;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.result-sheet-logo {
    max-height: 68px;
    width: auto;
    object-fit: contain;
}

.result-sheet-address {
    color: #475569;
    font-size: 13.5px;
    text-align: right;
    line-height: 1.5;
}

.result-sheet-body {
    padding: 28px 30px;
}

.result-student-info-grid {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 26px;
}

.result-info-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    margin-bottom: 2px;
}

.result-info-value {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
}

.result-marks-heading {
    color: #792D43;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
}

.result-marks-table th {
    background-color: #01356F !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    border-color: #01356F !important;
    padding: 12px 14px;
}

.result-marks-table td {
    padding: 11px 14px;
    font-size: 14.5px;
    color: #1e293b;
    border-color: #e2e8f0;
    vertical-align: middle;
}

.result-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.result-status-pass {
    background-color: #dcfce7;
    color: #15803d;
}

.result-status-fail {
    background-color: #fee2e2;
    color: #b91c1c;
}

.result-summary-bar {
    background-color: #F5E9EC;
    border: 1px solid #e2c5ce;
    border-radius: 10px;
    padding: 18px 22px;
    margin-top: 22px;
}

.result-summary-metric-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #792D43;
}

.result-summary-metric-val {
    font-size: 22px;
    font-weight: 800;
    color: #01356F;
}

.result-overall-pill {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #ffffff;
}

.result-overall-pill.pass {
    background-color: #16a34a;
}

.result-overall-pill.fail {
    background-color: #dc2626;
}

.result-sheet-actions {
    padding: 18px 30px 26px;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.result-btn-print {
    background-color: #01356F;
    border-color: #01356F;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
}

.result-btn-print:hover {
    background-color: #094a91;
    border-color: #094a91;
    color: #ffffff;
}

.result-btn-pdf {
    background-color: #792D43;
    border-color: #792D43;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
}

.result-btn-pdf:hover {
    background-color: #632236;
    border-color: #632236;
    color: #ffffff;
}

@media (max-width: 767px) {
    .result-lookup-card,
    .result-sheet-body,
    .result-sheet-college-banner,
    .result-sheet-topbar,
    .result-sheet-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .result-sheet-address {
        text-align: left;
    }
}

@media print {
    .top-header-area,
    .header-brand-area,
    .latest-notice-area,
    .main-menu-navbar,
    .page-banner-area,
    .footer-area,
    .copyright-area,
    .go-top,
    .preloader-area,
    .sidebarModal,
    .no-print-frontend {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .result-lookup-section {
        padding: 0 !important;
        background: #ffffff !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .result-sheet-card {
        box-shadow: none !important;
        border: 1px solid #01356F !important;
        border-radius: 0 !important;
    }

    .result-sheet-topbar {
        background: #01356F !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .result-marks-table th {
        background-color: #01356F !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .result-summary-bar,
    .result-overall-pill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
