:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --bg: #f4f7f6;
}

body { font-family: 'Segoe UI', sans-serif; background: var(--bg); color: #333; margin: 0; }
header { background: var(--primary); color: white; padding: 2rem; text-align: center; }
footer { background: var(--primary); color: white; padding: 2rem; text-align: center; }
.container { width: 90%; max-width: 1200px; margin: 2rem auto; }
.stats { margin-bottom: 1rem; font-size: 1.1rem; }

/* Grid Agenda */
.agenda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }

.agenda-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.card-header { padding: 15px; background: #eee; display: flex; justify-content: space-between; align-items: center; }

.badge { padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; color: white; }
.terlaksana { background: #27ae60; }
.mendatang { background: #f39c12; }
.dibatalkan { background: #e74c3c; }

.card-body { padding: 20px; }
.card-body h3 { margin-top: 0; color: var(--primary); }

.gallery { display: flex; gap: 10px; padding: 15px; background: #fafafa; }
.gallery img { width: 48%; height: 150px; object-fit: cover; border-radius: 5px; }

/* Admin Form */
.form-container { max-width: 600px; margin: 50px auto; background: white; padding: 30px; border-radius: 10px; }
input, textarea, select, button { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; }
button { background: var(--accent); color: white; border: none; font-weight: bold; cursor: pointer; }


/* Styling Bar Statistik dan Filter */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 0.9rem;
}

.btn-filter {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-reset {
    background: #95a5a6;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 10px;
    color: #7f8c8d;
    font-style: italic;
}

/* Penyesuaian Foto agar Proporsional */
.photo-box {
    flex: 1;
    height: 180px;
    overflow: hidden;
    border-radius: 5px;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-box img:hover {
    transform: scale(1.1);
}

/* Style untuk Modal (Background) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(5px);
}

/* Konten Gambar di dalam Modal */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* Tombol Close */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover {
    color: #bbb;
}

/* Responsif untuk HP */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
        margin-top: 100px;
    }
}

/* Tambahkan kursor pointer pada gambar di kartu agar pengunjung tahu itu bisa diklik */
.photo-box img {
    cursor: zoom-in;
}