#lu-results-container {
    max-width: 1000px;
    margin: 20px auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
}

#result-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.input-field input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-field input:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.btn-custom {
    background: #197cff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-custom:hover {
    background: #455a64;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-custom:focus {
    background: #009688;
}
.result-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.bg-custom {
    background: linear-gradient(135deg, #004a99, #003366);
}

.student-summary-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
    border-color: #eee;
}

.student-summary-table td {
    font-weight: 500;
    color: #1a1a1a;
    background: #eaeef2;
    border-color: #e6e7e9;
}

.semester-title {
    margin: 40px 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: #003366;
    display: flex;
    align-items: center;
}

.semester-title::before {
    content: "";
    display: block;
    width: 5px;
    height: 30px;
    background: #28a745;
    margin-right: 15px;
    border-radius: 10px;
}

.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.result-table thead th {
    background: #003366;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.result-table tbody td {
    padding: 15px;
    background: white;
    border-bottom: 1px solid #eee;
}

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

.result-table tbody tr:hover td {
    background: #f0f7ff;
}

.result-table tfoot th {
    background: #f8f9fa;
    padding: 15px;
    color: #333;
    font-weight: 700;
    text-align: left;
}

.grade-badge {
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.grade-A-plus { background: #d4edda; color: #155724; }
.grade-A { background: #e2f3e7; color: #1e7e34; }
.grade-A-minus { background: #e9f7ef; color: #218838; }
.grade-B-plus { background: #f4fce3; color: #5c940d; }
.grade-B { background: #fff9db; color: #e67700; }
.grade-B-minus { background: #fff3bf; color: #d9480f; }
.grade-C-plus { background: #fff4e6; color: #d9480f; }
.grade-C { background: #ffe8cc; color: #d44000; }
.grade-C-minus { background: #ffdad6; color: #c92a2a; }
.grade-D-plus { background: #ffc9c9; color: #c92a2a; }
.grade-D { background: #ffa8a8; color: #a61e1e; }
.grade-D-minus { background: #ff8787; color: #901616; }
.grade-F { background: #f8d7da; color: #721c24; }

@media print {
    .hidden-print { display: none !important; }
    #lu-results-container { width: 100%; max-width: none; margin: 0; padding: 0; }
    .result-card { box-shadow: none; border: 1px solid #eee; }
}

#student-info h4 {
    padding-left: 15px;
    margin-bottom: 0px;
    padding-bottom: 10px;
    color: white;
}
.bg-navy {
    background: #003366;
}
table.student-summary-table {
    margin-bottom: 0px;
}

/* Mobile Responsive Stacking for Student Summary Table */
@media (max-width: 767px) {
    .student-summary-table, 
    .student-summary-table tbody, 
    .student-summary-table tr, 
    .student-summary-table th, 
    .student-summary-table td {
        display: block; 
        width: 100% !important;
        text-align: left !important;
    }

    /* Ensure hidden fields stay hidden even with block layout */
    .student-summary-table .hidden-field {
        display: none !important;
    }

    .student-summary-table tr {
        border-bottom: 1px solid #ddd;
    }

    .student-summary-table tr:last-child {
        border-bottom: none;
    }

    .student-summary-table th {
        background-color: #f1f3f5 !important;
        padding: 10px 15px !important;
        border-bottom: none !important;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .student-summary-table td {
        padding: 10px 15px 15px !important;
        background-color: #fff !important;
        border-top: none !important;
    }
    
    #waived-credit-container td {
        padding-top: 10px !important;
    }
}