body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 12px;
    background-color: #f8f9fa;
}

h1 {
    color: #1a73e8;
    text-align: center;
    font-size: 1.2rem;
    margin: 15px 0;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 0.8rem; /* បង្រួមអក្សរតូចជាងមុនបន្តិចដើម្បីកុំឱ្យធ្លាក់ជួរលើទូរស័ព្ទ */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

th, td {
    padding: 10px 4px; /* បន្ថយគម្លាតឆ្វេងស្តាំដើម្បីកុំឱ្យណែន */
    text-align: center;
    border: 1px solid #dadce0;
    word-break: break-word; /* ធ្លាក់បន្ទាត់ស្វ័យប្រវត្តបើឈ្មោះវែងពេក */
}

th {
    background-color: #1a73e8;
    color: white;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

.attendance-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #1a73e8;
    vertical-align: middle;
}

#submitBtn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 12px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(26,115,232,0.3);
    transition: background-color 0.2s;
}

#submitBtn:active {
    background-color: #1557b0;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    width: 80%;
    max-width: 320px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: popupSlide 0.3s ease;
}

@keyframes popupSlide {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 50px;
    height: 50px;
    background-color: #2e7d32;
    color: white;
    font-size: 1.8rem;
    line-height: 50px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
}

.popup-content h2 {
    margin: 0 0 10px 0;
    color: #2e7d32;
    font-size: 1.3rem;
}

.popup-content p {
    color: #5f6368;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.popup-content button {
    background-color: #3c4043;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}