:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --accent-color: #6c5ce7;
    --accent-light: #a29bfe;
    --success-color: #00b894;
    --danger-color: #ff7675;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding: 40px 20px;
    /* Center container on large screens */
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: fit-content;
    margin: 0 auto;
}

.nav-btn {
    background: none;
    border: none;
    padding: 10px 25px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-btn.active {
    background-color: var(--accent-color);
    color: white;
}

.nav-btn:hover:not(.active) {
    background-color: #f0f0f0;
    color: var(--text-main);
}

/* Utilities */
.hidden {
    display: none !important;
}

.view-section {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 25px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

h1 {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

.clock-widget {
    text-align: right;
}

#clock {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}

#date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Status Card */
.status-card {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border-radius: var(--border-radius);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.status-item {
    flex: 1;
    z-index: 1;
}

.label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

#current-subject {
    font-size: 2rem;
    font-weight: 700;
}

.status-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 40px;
}

#next-subject {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.95;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.day-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.day-card.active-day {
    border: 2px solid var(--accent-color);
    position: relative;
}

.day-card.active-day::after {
    content: 'HARI INI';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.day-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.day-name {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subject-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.subject-item:last-child {
    border-bottom: none;
}

.subject-item.break-time {
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-style: italic;
    border-radius: 4px;
    padding: 5px 8px;
    margin: 5px 0;
    border-bottom: none;
}

.time-slot {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    width: 90px;
}

.subject-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    text-align: right;
    flex: 1;
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
        display: block;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .clock-widget {
        text-align: left;
    }

    .status-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }

    .status-divider {
        width: 100%;
        height: 1px;
        margin: 20px 0;
    }
}