/* สไตล์ทั่วไป */
body {
    font-family: 'Kanit', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

h1 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 30px;
    font-size: 2.2em;
}

/* สไตล์ส่วนค้นหา */
.search-box {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.search-box input {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 300px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 8px rgba(26, 115, 232, 0.2);
}

.search-box button {
    padding: 12px 25px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}

/* สไตล์ตาราง */
.student-table {
    margin: 20px 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f8f9fa;
    color: #1a73e8;
    font-weight: 600;
}

tr {
    transition: background-color 0.3s ease;
}

tr:hover {
    background-color: #f8f9fa;
}

/* สไตล์ฟอร์มเพิ่มข้อมูล */
.add-student-form {
    margin-top: 40px;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.add-student-form h2 {
    color: #1a73e8;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 8px rgba(26, 115, 232, 0.2);
}

.add-student-form button {
    width: 100%;
    padding: 12px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-student-form button:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}

/* การตอบสนอง (Responsive) */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .add-student-form {
        padding: 20px;
    }
}

/* เพิ่ม animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
