* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 480px; /* Lebar standar layar smartphone portrait */
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

h2, h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.nav-links a {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
}

/* Kalender Grid Sederhana */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    margin-bottom: 20px;
}

.day-name {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: bold;
    padding: 5px 0;
}

.day-cell {
    background: #f8f9fa;
    padding: 8px 2px;
    border-radius: 6px;
    min-height: 50px;
    font-size: 13px;
    position: relative;
}

.day-cell.active {
    background: #ebf5fb;
    border: 1px solid #3498db;
}

.has-event {
    background: #d4efdf !important;
    font-weight: bold;
    color: #1e8449;
}

/* List Agenda */
.agenda-list {
    margin-top: 15px;
}

.agenda-item {
    background: #fdfefe;
    border-left: 4px solid #3498db;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    font-size: 13px;
}

.agenda-item.pj-bagian {
    border-left-color: #e67e22;
}

/* Form & Input */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

button:active {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
    padding: 5px 10px;
    font-size: 12px;
    margin-top: 5px;
}

/* Tambahan styling untuk kalender visual */
.calendar-table th.sunday {
    background: #e74c3c !important; /* Header Minggu warna merah */
}
.calendar-table td.sunday-cell {
    background: #fdebd0; /* Latar tipis untuk kolom minggu */
}
.sunday-num {
    color: #e74c3c !important;
    font-weight: bold;
}
.event-badge { 
    background: #d4efdf !important; /* Warna hijau untuk kegiatan */
    color: #1e8449 !important; 
    padding: 1px 3px; 
    border-radius: 3px; 
    font-size: 9px; 
    margin-bottom: 1px; 
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis; 
    display: block; 
}

.event-badge { 
    background: #d4efdf !important; /* Hijau muda */
    color: #1e8449 !important;      /* Teks hijau tua */
    padding: 2px 4px; 
    border-radius: 4px; 
    font-size: 9px; 
    margin-bottom: 2px; 
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis; 
    display: block; 
    font-weight: bold;
}