/* Pengaturan Dasar dan Font */
:root {
    --primary-color: #28a745;
    --primary-dark: #218838;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f0f2f5;
    --bg-white: #ffffff;
    --border-color: #ecf0f1;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #333;
    margin: 0;
    padding: 20px 20px 100px 20px; /* Tambah padding bawah untuk nav */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Kontainer Utama */
.container {
    width: 100%;
    max-width: 500px;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 24px 32px;
    box-sizing: border-box;
}

/* Pengaturan Halaman (Page) */
.page {
    animation: fadeIn 0.5s ease;
}

.page.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header di setiap halaman */
header {
    text-align: center;
    margin-bottom: 24px;
}
.logo-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e8f5e9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px auto;
    color: var(--primary-color);
}
header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}
header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: var(--text-dark);
}
header .subtitle {
    margin: 4px 0 0 0;
    font-size: 16px;
    color: var(--text-light);
}

/* Tombol Tambah Sampah */
.add-button {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}
.add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}
.add-button .plus-icon {
    font-size: 20px;
}

/* Daftar Sampah */
.list-container {
    margin-top: 32px;
    text-align: left;
}
.list-container h2 {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 16px;
}
#wasteList {
    list-style: none;
    padding: 0;
    margin: 0;
}
#wasteList li {
    background-color: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.empty-state {
    text-align: center;
    color: #95a5a6;
    padding: 20px;
    background-color: transparent !important;
    border: none !important;
}
.delete-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.delete-button:hover {
    background-color: #c0392b;
}

/* Halaman Laporan (Grafik) */
.chart-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Halaman Tips */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.tip-card {
    background-color: #fafafa;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px;
}
.tip-card h3 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
}
.tip-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

/* Navigasi Bawah */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}
.nav-button {
    background: none;
    border: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 8px;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.nav-button span {
    font-size: 24px;
}
.nav-button.active {
    color: var(--primary-color);
}
.nav-button:hover {
    background-color: #f8f9fa;
}
