/* ส่วนที่ 1: ฟอร์มกรอกรหัสทีม */
.team-code-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.login-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(64, 178, 205, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h3 {
    color: #40b2cd;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-header p {
    font-size: 14px;
    margin-bottom: 0;
}

.login-body .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.login-body .form-control {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-body .form-control:focus {
    border-color: #40b2cd;
    box-shadow: 0 0 0 0.2rem rgba(64, 178, 205, 0.15);
}

.login-body .btn-primary {
    background-color: #40b2cd;
    border-color: #40b2cd;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-body .btn-primary:hover {
    background-color: #359bb3;
    border-color: #359bb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 178, 205, 0.3);
}

/* ส่วนที่ 2: แสดงผลการสอบ */
.result-section {
    padding: 30px 0;
}

.school-info {
    background-color: #f8f9fa;
    border-left: 4px solid #40b2cd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.school-info h4 {
    color: #40b2cd;
    font-weight: 600;
    margin: 0;
    font-size: 1.5rem;
}

.students-results {
    display: grid;
    gap: 30px;
}

.student-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.student-card:hover {
    box-shadow: 0 4px 25px rgba(64, 178, 205, 0.2);
    transform: translateY(-3px);
}

.student-header {
    background-color: #40b2cd;
    color: white;
    padding: 20px;
}

.student-header h5 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    opacity: 0.95;
}

.student-header h6 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.exam-results {
    padding: 25px;
}

.exam-results .table {
    margin-bottom: 0;
}

.exam-results .table thead th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    border-color: #dee2e6;
    padding: 12px;
    font-size: 0.95rem;
}

.exam-results .table tbody td {
    padding: 12px;
    vertical-align: middle;
    color: #555;
}

.exam-results .table tbody td.score {
    font-weight: 600;
    color: #40b2cd;
    font-size: 1.1rem;
}

.exam-results .table .table-active {
    background-color: #f0f8fa;
}

.exam-results .table .table-active td {
    font-size: 1.05rem;
}

.btn-outline-primary {
    color: #40b2cd;
    border-color: #40b2cd;
    padding: 10px 30px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #40b2cd;
    border-color: #40b2cd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 178, 205, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .school-info h4 {
        font-size: 1.2rem;
    }
    
    .exam-results {
        padding: 15px;
    }
    
    .exam-results .table {
        font-size: 0.9rem;
    }
    
    .exam-results .table thead th,
    .exam-results .table tbody td {
        padding: 8px;
    }
}