@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #004e92;
    --light-blue: #000428;
    --white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    /* Biru gradasi putih */
    background: linear-gradient(135deg, #001f3f, #0052d4, #ffffff);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Efek berlian berkilau (sparkling diamonds) */
body::before, body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px),
        radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 30px);
    background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
    animation: sparkle 10s linear infinite;
}

body::after {
    background-size: 400px 400px, 300px 300px, 200px 200px, 100px 100px;
    background-position: 100px 100px, 140px 160px, 230px 370px, 170px 200px;
    animation: sparkle 8s linear infinite reverse;
}

@keyframes sparkle {
    0% { background-position: 0 0, 40px 60px, 130px 270px, 70px 100px; opacity: 0.8; }
    50% { opacity: 1; }
    100% { background-position: 550px 550px, 390px 410px, 380px 520px, 220px 250px; opacity: 0.8; }
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 850px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

h1, h2, h3 {
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header-title {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* Glassmorphism Cards */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.card h3 {
    color: var(--primary-blue);
    text-shadow: none;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Form Styles */
.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"], input[type="date"], input[type="time"], select {
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    width: 100%;
    max-width: 300px;
}

.btn {
    background: linear-gradient(45deg, #004e92, #000428);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Jadwal Grid */
.jadwal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.jadwal-item {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s;
}

.jadwal-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
}

.jadwal-name {
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.jadwal-time {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-top: 5px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-blue);
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

.text-center {
    text-align: center;
}

/* Admin Specific */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.btn-delete {
    background: #ff4757;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 14px;
}

.back-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.admin-body {
    background: linear-gradient(135deg, #001f3f, #0052d4);
}

/* Location display */
.location-display {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

#kegiatan-list {
    list-style: none;
    padding: 0;
}

#kegiatan-list li {
    background: #f8f9fa;
    margin-bottom: 10px;
    padding: 15px;
    border-left: 5px solid var(--primary-blue);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.keg-nama {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.keg-waktu {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}
