/* FONT DAN RESET DASAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f4f8; 
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* CONTAINER UTAMA */
.planner-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* HEADER STYLING */
.planner-header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 5px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* TIMELINE CONTAINER & GARIS PENGHUBUNG */
.schedule-timeline {
    position: relative;
    padding-left: 15px;
}

/* Garis vertikal di tengah */
.schedule-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background-color: #d1d8e0;
}

/* AKTIVITAS ITEM */
.activity {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    align-items: flex-start;
}

/* Blok Waktu (Lingkaran di Garis) */
.time-block {
    flex-shrink: 0;
    width: 120px;
    padding: 5px 0;
    text-align: right;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    margin-right: 20px;
}

/* Styling Titik di Garis Waktu */
.time-block::after {
    content: '';
    position: absolute;
    right: -23px; 
    top: 10px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #2c3e50;
    border: 3px solid white;
    z-index: 10;
}

/* KARTU DETAIL AKTIVITAS */
.detail-card {
    flex-grow: 1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.detail-card h2 {
    margin-top: 0;
    font-size: 1.25em;
    color: #2c3e50;
}

.icon {
    font-size: 1.5em;
    float: right;
    margin-left: 10px;
}

.task-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.task-list li {
    padding-left: 1.5em;
    text-indent: -1.5em;
}

.task-list li::before {
    content: "\2022"; 
    color: #ff6b6b; 
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
}

.target-info {
    font-style: italic;
    color: #888;
    margin-top: 5px;
}

.break-time {
    font-size: 0.9em;
    margin-top: 10px;
    color: #e63946;
    font-weight: 600;
}

/* SKEMA WARNA BERDASARKAN KATEGORI (MAPPING DARI JSON) */
/* Fokus/Belajar */
.activity.focus .detail-card {
    background-color: #e6f7ff; 
    border-left: 5px solid #007bff;
}

/* Istirahat Besar */
.activity.break-lg .detail-card {
    background-color: #fff9e6; 
    border-left: 5px solid #f39c12;
}

/* Pagi/Ritual */
.activity.morning .detail-card {
    background-color: #e6ffe6;
    border-left: 5px solid #27ae60;
}

/* Sore/Malam/Relaksasi */
.activity.evening .detail-card {
    background-color: #f7f0ff;
    border-left: 5px solid #9b59b6;
}

/* Tidur */
.activity.sleep .detail-card {
    background-color: #eceff1;
    border-left: 5px solid #7f8c8d;
}

/* baru */
/* STYLING MODAL PWA CUSTOM */
.pwa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Latar belakang gelap */
    display: none; /* Sembunyikan secara default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pwa-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.pwa-modal-content h2 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.pwa-modal-content p {
    margin-bottom: 25px;
}

#install-button {
    margin: 5px;
}

.btn.close-btn {
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 10px 20px;
}


/* RESPONSIVENESS */
@media (max-width: 600px) {
    .planner-container {
        padding: 15px;
        margin: 20px auto;
    }

    .time-block {
        width: 80px;
        font-size: 0.9em;
        margin-right: 10px;
        color: #007bff; 
        text-align: left;
    }

    /* Hilangkan garis tengah dan titik untuk tampilan yang lebih rapi di ponsel */
    .schedule-timeline::before,
    .time-block::after {
        display: none;
    }
    
    .activity {
        flex-direction: column;
        margin-bottom: 25px;
    }

    .detail-card {
        border-left-width: 3px !important;
    }
}