* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #003366;
}

.header-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-center {
    text-align: center;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    max-width: 150px;
    object-fit: contain;
}

.header-center h1 {
    color: #000;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-center h2 {
    color: #003366;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-center h3 {
    color: #666;
    font-size: 16px;
    font-weight: normal;
}

.agenda-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.agenda-table thead {
    background-color: #0b59a7;
    color: white;
}

.agenda-table th {
    padding: 14px 10px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #003366;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.agenda-table td {
    padding: 12px 10px;
    border: 2px solid #003366;
    vertical-align: middle;
    text-align: left;
    line-height: 1.6;
}

.agenda-row {
    background-color: #ffff00;
    transition: background-color 0.2s;
}

.agenda-row:nth-child(even) {
    background-color: #ffff66;
}

.agenda-row:hover {
    background-color: #ffeb3b;
}

.current-agenda {
    background-color: #ff5722 !important;
    color: white;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.current-agenda td {
    color: white;
}

@keyframes pulse {
    0% {
        background-color: #ff5722;
    }
    50% {
        background-color: #ff7043;
    }
    100% {
        background-color: #ff5722;
    }
}

.agenda-table td:first-child {
    font-weight: bold;
    text-align: center;
    background-color: rgba(0, 51, 102, 0.1);
}

.agenda-table td:nth-child(2) {
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

.agenda-table td:nth-child(7) {
    font-size: 12px;
}

.center {
    text-align: center;
}

.footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px solid #003366;
    text-align: center;
    color: #666;
    font-size: 14px;
}

@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        padding: 0;
    }
    
    .agenda-table {
        font-size: 10px;
    }
    
    .agenda-row {
        background-color: #ffff00 !important;
    }
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-left,
    .header-right {
        order: 2;
    }
    
    .header-center {
        order: 1;
    }
    
    .agenda-table {
        font-size: 10px;
    }
    
    .agenda-table th,
    .agenda-table td {
        padding: 6px 4px;
    }
}

/* Responsive table wrapper for mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0;
}

@media screen and (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .header-center h1 {
        font-size: 18px;
    }
    
    .header-center h2 {
        font-size: 16px;
    }
    
    .header-center h3 {
        font-size: 12px;
    }
    
    .agenda-table {
        font-size: 9px;
        min-width: 600px;
    }
    
    .agenda-table th,
    .agenda-table td {
        padding: 4px 2px;
    }
    
    .logo {
        height: 40px;
    }
}

/* Attendance Button */
.attendance-btn {
    background-color: #003366;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    min-width: 40px;
}

.attendance-btn:hover {
    background-color: #004488;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003366;
}

.modal-header h3 {
    color: #003366;
    margin: 0;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-body {
    max-height: 400px;
    overflow-y: auto;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background-color: #f5f5f5;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item span {
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #003366;
    color: white;
}

.btn-primary:hover {
    background-color: #004488;
}

.btn-secondary {
    background-color: #666;
    color: white;
}

.btn-secondary:hover {
    background-color: #555;
}