* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #dce3ed;
    color: #333333;
    padding-bottom: 40px;
    transition: background-color 0.4s ease;
}

/* ธีมแบบสลับเมื่อกดปุ่ม คลิก */
body.bg-active {
    background-color: #c5d3e8;
}

/* แถบหัวเว็บ Navigation Bar */
.top-nav {
    background-color: #3b286d;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.back-btn {
    background-color: #4f5bb0;
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.back-btn:hover {
    background-color: #3d4999;
}

.nav-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto;
}

/* Main Container */
.main-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
}

/* ส่วนข้อมูลนักศึกษา */
.student-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}

.avatar-icon {
    background-color: #e5e8f0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.profile-details h2 {
    font-size: 18px;
    color: #222;
    margin-bottom: 4px;
}

.profile-details p {
    font-size: 15px;
    color: #444;
}

.section-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #111;
}

/* Grid ของ การ์ดทดสอบเหตุการณ์ */
.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* การ์ดหลัก */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

/* การ์ดเลื่อนเมาส์ (Hover Effect) */
.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
    border: 1px solid #90caf9;
}

/* Header ของการ์ด */
.card-header {
    width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.header-blue {
    background-color: #bce0fd;
    color: #0b4f8a;
}

.header-purple {
    background-color: #f0e6ff;
    color: #4a154b;
}

/* Pill แสดงสถานะและปุ่มกด */
.status-pill {
    background-color: #d1e9ff;
    color: #0c3e66;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    width: 80%;
    transition: all 0.3s ease;
}

.status-gray {
    background-color: #e9ecef;
    color: #495057;
}

.action-btn {
    background: linear-gradient(135deg, #4d73ff, #6b46c1);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    width: 80%;
    box-shadow: 0 4px 10px rgba(107, 70, 193, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:active {
    transform: scale(0.97);
}

.card-footer {
    font-size: 12px;
    color: #666;
    margin-top: auto;
}

/* การ์ดสรุปเกณฑ์การส่งงานด้านล่าง */
.summary-card {
    background-color: #e3e8f0;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.summary-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    font-size: 13px;
    margin-bottom: 15px;
}

.checklist-col p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.badge-pass {
    background-color: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 4px;
}

.submission-info {
    margin-top: 10px;
}

.submission-info ul {
    list-style: none;
    padding-left: 10px;
}

.submission-info a {
    color: #0056b3;
    text-decoration: none;
}

.checklist-bottom {
    border-top: 1px dashed #bbb;
    padding-top: 10px;
    font-size: 13px;
}