/* Global Reset & Basic Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Font yang umum dan modern */
    background-color: #F4F7FC; /* Warna latar belakang abu-abu muda seperti di desain */
    color: #333; /* Warna teks utama */
    line-height: 1.6;
    padding-top: 20px; /* Kasih jarak dari atas browser */
}

.app-container {
    max-width: 1200px; /* Batas lebar maksimal aplikasi */
    margin: 0 auto; /* Tengahin aplikasi */
    padding: 0 20px; /* Kasih padding kiri kanan biar gak nempel ke tepi browser */
}

/* App Header */
.app-header {
    background: linear-gradient(90deg, #7F00FF, #A12EFF); /* Gradasi ungu */
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(127, 0, 255, 0.2);
}

.app-header h1 {
    margin: 0;
    font-size: 2.8em; /* Ukuran font lebih besar untuk judul */
    font-weight: 700;
}

.app-header p {
    margin: 5px 0 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Main Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Tengahin item navigasi */
    background-color: #fff;
    padding: 12px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    flex-wrap: wrap; /* Biar responsif kalau itemnya banyak */
}

.main-nav li {
    margin: 5px 10px; /* Kasih jarak antar item navigasi */
}

.main-nav a {
    text-decoration: none;
    color: #555; /* Warna teks navigasi */
    font-weight: 600; /* Sedikit lebih tebal */
    padding: 10px 18px; /* Area klik lebih luas */
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.main-nav a i {
    margin-right: 8px; /* Jarak ikon ke teks */
    color: #8A2BE2; /* Warna ikon ungu */
}

.main-nav li.active a,
.main-nav a:hover {
    background-color: #f0e6ff; /* Warna latar saat aktif/hover */
    color: #7F00FF; /* Warna teks saat aktif/hover */
}

.main-nav li.active a i,
.main-nav a:hover i {
    color: #7F00FF; /* Warna ikon saat aktif/hover */
}


/* Dashboard Content Layout */
.dashboard-content {
    display: flex;
    gap: 25px; /* Jarak antara kolom kiri dan kanan */
    flex-wrap: wrap; /* Biar responsif di layar kecil */
}

.mood-summary-section {
    flex: 2; /* Kolom kiri lebih besar */
    min-width: 300px; /* Lebar minimum sebelum pindah baris */
}

.sidebar-stats {
    flex: 1; /* Kolom kanan lebih kecil */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Jarak antar card di sidebar */
    min-width: 300px;
}

/* Card Styling */
.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Section Titles */
.section-title {
    font-size: 1.3em; /* Ukuran font judul section */
    font-weight: 600;
    margin-bottom: 20px;
    color: #444;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #8A2BE2; /* Warna ikon ungu */
    font-size: 1.1em;
}

/* Today's Mood Summary Section */
.date-indicator {
    font-size: 0.95em;
    color: #777;
    margin-bottom: 25px;
}

.mood-visual {
    text-align: center;
    margin-bottom: 25px;
}

.mood-icon-placeholder {
    width: 100px; /* Ukuran area ikon mood */
    height: 100px;
    background-color: #f0e6ff; /* Latar belakang lingkaran ungu muda */
    border-radius: 50%; /* Bikin jadi lingkaran */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
}

.mood-icon-placeholder i {
    font-size: 48px !important; /* Pastikan ukuran ikon sesuai */
    color: #8A2BE2 !important; /* Pastikan warna ikon sesuai */
}

.mood-label {
    display: inline-block; /* Biar bisa di-style paddingnya */
    background-color: #e9ecef;
    color: #555;
    padding: 6px 18px;
    border-radius: 20px; /* Bikin jadi oval */
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.mood-status {
    font-size: 0.95em;
    color: #666;
    text-align: center;
}

/* Quick Stats Section */
.quick-stats-section .stat-item {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0; /* Garis pemisah antar stat */
}

.quick-stats-section .stat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stat-value {
    display: block;
    font-size: 2em; /* Ukuran angka statistik */
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.stat-value.highlight {
    color: #FFBF00; /* Warna kuning untuk 'Happy' */
}

.stat-label {
    font-size: 0.9em;
    color: #555;
    display: block; /* Biar 'This Week' dll bisa di bawahnya */
}

.stat-period {
    font-size: 0.8em;
    color: #888;
    display: block;
}

/* Daily Reminders Section */
.daily-reminders-section > p:first-of-type { /* Target paragraf pertama (Daily at 9:00 AM) */
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
}

.enable-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: flex; /* Biar ikon dan teks sejajar */
    align-items: center;
    justify-content: center;
    width: auto; /* Lebar tombol menyesuaikan konten */
    margin: 10px 0 15px 0; /* Kasih jarak atas bawah */
}

.enable-button i {
    margin-right: 8px;
}

.enable-button:hover {
    background-color: #555;
}

.reminder-info {
    font-size: 0.85em;
    color: #777;
    text-align: left; /* Teks penjelasan rata kiri */
}

/* Responsiveness (Contoh sederhana) */
@media (max-width: 768px) {
    .dashboard-content {
        flex-direction: column; /* Susun jadi satu kolom di layar kecil */
    }

    .main-nav ul {
        justify-content: space-around; /* Sebar item nav di layar kecil */
    }

    .main-nav li {
        margin: 5px;
    }

    .main-nav a {
        padding: 8px 10px;
    }

    .app-header h1 {
        font-size: 2.2em;
    }
}