:root {
    --primary-bg: #f4f9f4;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bibi-color: #0984e3;
    --sola-color: #e84393;
    --check-color: #00b894;
    --nav-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
}

/* NAVBAR */
.navbar {
    background: var(--nav-bg);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--check-color);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--check-color);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 40px;
}
.hero h1 { font-size: 3rem; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }
.btn-primary {
    background: white;
    color: #56ab2f;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* CONTAINER & SECTIONS */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-header {
    text-align: center;
    margin: 50px 0 30px;
}
.section-header h2 { font-size: 2rem; color: var(--text-main); }
.section-header p { color: var(--text-muted); }

/* DASHBOARD / CARDS */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px dashed #eee;
    padding-bottom: 15px;
}
.user-info { display: flex; align-items: center; gap: 10px; }
.card-bibi h2 { color: var(--bibi-color); font-size: 1.3rem; }
.card-sola h2 { color: var(--sola-color); font-size: 1.3rem; }
.avatar { font-size: 2.2rem; }
.badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}
.badge-blue { background: var(--bibi-color); }
.badge-pink { background: var(--sola-color); }

/* CHECKLIST STYLE */
.task-list { list-style: none; }
.task-list li { margin-bottom: 15px; }
.task-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    color: #444;
}
.task-list input[type="checkbox"] { display: none; }
.custom-checkbox {
    width: 26px; height: 26px;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-right: 15px;
    position: relative;
    transition: 0.3s;
}
.task-list input[type="checkbox"]:checked + .custom-checkbox {
    background-color: var(--check-color);
    border-color: var(--check-color);
}
.task-list input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}
.task-list input[type="checkbox"]:checked ~ label {
    color: #aaa;
    text-decoration: line-through;
}

/* PROGRESS BAR */
.progress-container {
    width: 100%; height: 10px;
    background-color: #edf2f7;
    border-radius: 10px;
    margin-top: 25px;
    overflow: hidden;
}
.progress-bar {
    height: 100%; width: 0%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-bibi .progress-bar { background-color: var(--bibi-color); }
.card-sola .progress-bar { background-color: var(--sola-color); }

/* SUCCESS MESSAGE */
.success-message {
    text-align: center;
    margin-top: 30px; padding: 20px;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    border-radius: 15px;
    font-weight: 600; font-size: 1.2rem;
    opacity: 0; display: none;
    transition: 0.5s ease;
}
.success-message.show {
    display: block; opacity: 1;
    animation: popUp 0.5s forwards;
}
@keyframes popUp {
    0% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* NUTRITION GRID */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
.nutrition-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.icon-wrapper {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}
.blue-icon { background: #e3f2fd; color: #2196f3; }
.green-icon { background: #e8f5e9; color: #4caf50; }
.orange-icon { background: #fff3e0; color: #ff9800; }
.nutrition-card h3 { margin-bottom: 10px; color: var(--text-main); }
.nutrition-card p { font-size: 0.9rem; color: var(--text-muted); }

/* QUOTE SECTION */
.quote-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative;
}
.quote-icon {
    font-size: 2rem; color: #dfe6e9;
    margin-bottom: 15px;
}
.quote-box p { font-size: 1.2rem; font-style: italic; color: #636e72; font-weight: 500; }

/* FOOTER */
footer {
    background: white;
    text-align: center;
    padding: 30px;
    border-top: 1px solid #eee;
}
.footer-sub { font-size: 0.85rem; color: #aaa; margin-top: 5px; }

/* RESPONSIVE HP */
@media (max-width: 768px) {
    .dashboard, .nutrition-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .navbar { padding: 15px 20px; flex-direction: column; gap: 15px; }
}
/* --- CSS TAMBAHAN UNTUK MANAGE.PHP --- */
.add-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-weight: 600;
    color: var(--text-main);
}
.form-group input, .form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--check-color);
    box-shadow: 0 0 5px rgba(0, 184, 148, 0.2);
}
.manage-list {
    list-style: none;
}
.manage-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #ddd;
}
.card-bibi .manage-list li { border-left-color: var(--bibi-color); }
.card-sola .manage-list li { border-left-color: var(--sola-color); }

.btn-delete {
    color: #ff7675;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}
.btn-delete:hover {
    color: #d63031;
    transform: scale(1.1);
}