:root {
    --bg-color: #c6daff;
    --bg-color2: #dfe6f4;
    --card-bg: #f0f0f3;
    --primary-purple: #9d50bb;
    --accent-pink: #fbc2eb;
    --text-main: #444;
    --text-light: #888;
    --sunday: #ff7e5f;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body {
    background-color: var(--bg-color2);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 0px 0 20px 0;
}

.mobile-container {
    width: 100%;
    max-width: 400px;
    padding: 15px;
}

.calendar-card {
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 10px 10px 20px #486798;
    margin-bottom: 25px;
}

.calendar-header {
    background: linear-gradient(135deg, #c19fff, #a579f5);
    padding: 25px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 15px;
    gap: 8px;
    text-align: center;
}

.day-name { font-size: 0.8rem; color: var(--text-light); font-weight: bold; margin-bottom: 10px; }
.day-name.sun { color: var(--sunday); }

.date-cell {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--card-bg);
    box-shadow: 4px 4px 8px #d1d1d6, -4px -4px 8px #ffffff;
    cursor: pointer;
}

.date-cell span.pasaran { font-size: 0.5rem; font-weight: normal; color: var(--text-light); }
.date-cell.today { background: #a579f5; color: white; }
.date-cell.today span.pasaran { color: #eee; }
.date-cell.holiday { color: var(--sunday); }
.date-cell.cuti { 
    background: #ffecf0; /* Pink sangat muda untuk bg */
    color: #ff7e5f;      /* Oranye kemerahan untuk font */
}

/* Gaya Kartu Neumorphism yang Seragam */
.neumo-card {
    background: var(--card-bg);
    border-radius: 25px;
    box-shadow: 10px 10px 20px #486798;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.info-column {
    flex: 1;
    text-align: center;
}

.info-divider {
    width: 1px;
    height: 40px;
    background: #d1d1d6;
}

.label { 
    font-size: 0.65rem; 
    color: var(--text-light); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-security { 
    font-weight: 600; 
    color: #5a189a; 
    font-size: 14px; /* Ukuran font disesuaikan agar pas 2 kolom */
    line-height: 1.2;
}

.info-date {
    font-size: 13px; /* Ukuran sedikit lebih kecil agar pas 2 baris */
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.3; /* Jarak antar baris */
}

/* Tambahan agar kolom tetap seimbang */
.info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 45px; /* Menjaga tinggi kolom tetap stabil */
}

.holiday-list { 
    margin-top: 20px; 
    padding: 10px;
    font-size: 0.85rem; 
    color: #444;
}

.holiday-list { margin-top: 15px; font-size: 0.85rem; }

/* Tanggal dari bulan sebelum/sesudah */
.date-cell.faded {
    background: transparent;
    box-shadow: none;
    color: #bbb;
    opacity: 0.6;
    cursor: default;
}

/* Efek saat tanggal diklik (Overlay Grey) */
.date-cell:active {
    background: #d1d1d6;
    transform: scale(0.95);
    transition: 0.1s;
}

/* Class tambahan untuk menandai tanggal yang sedang dipilih (opsional) */
.date-cell.selected {
    background: #e0e0e0;
    
}

/* --- DESKTOP VERSION --- */
@media (min-width: 768px) {
    .mobile-container {
        max-width: 600px; /* Diperlebar dari 400px ke 600px */
        padding: 40px 20px;
    }

    .calendar-card {
        border-radius: 40px;
        box-shadow: 15px 15px 30px #48679888;
    }

    /* Memperbesar Header */
    .calendar-header h2 {
        font-size: 1.8rem;
    }

    /* Memperbesar Grid Tanggal */
    .days-grid {
        gap: 12px;
        padding: 25px;
    }

    .day-name {
        font-size: 1rem;
    }

    .date-cell {
        font-size: 1.2rem;
        border-radius: 18px;
    }

    .date-cell span.pasaran {
        font-size: 0.7rem;
        margin-top: 4px;
    }

    /* Memperbesar Info Box di Bawah */
    .neumo-card {
        border-radius: 35px;
        padding: 30px;
    }

    .info-security {
        font-size: 20px;
    }

    .info-date {
        font-size: 18px;
    }

    .info-date span:first-child {
        font-size: 0.85rem !important; /* Label Hari & Pasaran */
    }
    
    .info-date span:last-child {
        font-size: 16px !important; /* Label Tanggal */
    }

    .label {
        font-size: 0.8rem;
    }

    .holiday-list {
        font-size: 1rem;
        margin-top: 30px;
    }
}