body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.main-container {
    padding: 20px;
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.schedule-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border 0.4s ease;
    cursor: pointer;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
}

.schedule-card.active {
    transform: scale(1.03);
    border: 1px solid transparent;
}

.schedule-card.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff00de, #00ff7d, #007dff, #ff00de);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 17px;
    animation: rgb-glow 5s infinite;
}

.day-text {
    position: absolute;
    top: 10px;
    left: 15px;
    background-color: #4a148c;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 15px 0 15px 0;
    font-weight: 600;
    font-size: 0.9em;
}

/* Teks MAPEL dihilangkan, jadi aturan ini dihapus */
/* .mapel-text { ... } */

.lesson-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: right;
    padding-top: 50px; /* Disesuaikan agar lebih proporsional */
}

.lesson-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lesson-list li:last-child {
    border-bottom: none;
}

@keyframes rgb-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Jam digital dihilangkan, jadi aturan ini dihapus */
/* #digital-clock { ... } */

.copyright-text {
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
}

/* Media Query untuk tampilan mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    .schedule-card {
        padding: 15px;
    }
    .lesson-list {
        padding-top: 40px; /* Disesuaikan untuk mobile */
    }
    .day-text {
        font-size: 0.8em;
    }
    .copyright-text {
        font-size: 0.8em;
    }
}
