/* styles.css */

/* Custom Styles */

body {
    font-family: Arial, sans-serif;
}

/* Hero Section */
.hero-section {
    
    background-image: url('https://belajardietnutrisi.ikinitip.com/assets/images/hero-image.jpg');    
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section::before {
    content: '';
    background-color: rgba(57, 114, 167, 0.8);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer-section a {
    text-decoration: none;
}

/* Buttons */
.btn-warning {
    background-color: rgb(255, 140, 40);
    border-color: rgb(255, 140, 40);
}

.btn-warning:hover {
    background-color: rgb(255, 120, 20);
    border-color: rgb(255, 120, 20);
}

/* Forms */
.form-label {
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Menyembunyikan input pinggul secara default */
#bodyfat-hip-container {
    display: none;
}

/* Styling untuk Sidebar */
.sidebar {
    width: 220px; /* Sesuaikan dengan lebar sidebar */
    background: #3972a7; /* Warna utama aplikasi */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100%;
    padding: 20px;
    transform: translateX(-220px); /* Secara default, sembunyikan sidebar ke kiri */
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Pastikan sidebar di depan konten utama */
}
.sidebar-header {
    text-align: center;
    padding: 10px 0;
    color: #fff;
    position: relative; /* Untuk posisi tombol close */
}
.profile-picture {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #fff;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu li {
    margin: 2px 0; /* Mengurangi jarak antar menu */
}
.sidebar-menu a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 5px 8px; /* Mengurangi padding untuk jarak yang lebih dekat */
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 13px; /* Ukuran font yang lebih kecil */
}
.sidebar-menu a i {
    margin-right: 10px; /* Menambahkan jarak antara ikon dan teks */
}
.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Tombol Toggle Sidebar */
.sidebar-toggle {
    display: block;
    background-color: #3972a7; /* Warna utama aplikasi */
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 70px; /* Di bawah menu header */
    left: 10px;
    z-index: 1001; /* Pastikan tombol toggle di depan sidebar */
}

/* Styling untuk Konten Utama */
.main-content {
    margin-left: 0; /* Sesuaikan dengan lebar sidebar */
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
    z-index: 500; /* Pastikan main content berada di bawah sidebar */
}

/* Responsif Sidebar untuk Tampilan Mobile */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0); /* Tampilkan sidebar secara penuh di desktop */
    }
    .main-content {
        margin-left: 220px; /* Tambahkan margin pada konten utama di desktop */
    }
}

/* Tampilkan tombol toggle di semua device */
.sidebar-toggle {
    display: block;
}


/* CSS Umum */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Greeting */
.greeting {
    color: #3972a7;
    margin-bottom: 20px;
}

/* Target Summary dan Progress Tracker */
.target-summary {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.target-summary p {
    margin: 0;
    color: #555;
}
.progress-tracker progress {
    width: 100%;
    margin: 10px 0;
}

/* Quick Access Widgets */
.quick-access-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.widget {
    flex: 1 1 calc(20% - 10px); /* Menyesuaikan ukuran widget */
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.widget a {
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    background-color: #3972a7;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.widget a:hover {
    background-color: #28538a;
}

/* Notifications and Announcements */
.notifications-announcements h3 {
    color: #3972a7;
    margin-bottom: 10px;
}
.notifications-announcements ul {
    list-style-type: none;
    padding: 0;
}
.notifications-announcements li {
    background-color: #fff;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Latest Articles and Recipes */
.latest-articles-recipes h3 {
    color: #3972a7;
    margin-bottom: 10px;
}
.latest-articles-recipes ul {
    list-style-type: none;
    padding: 0;
}
.latest-articles-recipes li {
    background-color: #fff;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}




/* CSS Dashboard */
.dashboard-container {
    max-width: 800px; /* Mengatur lebar maksimal konten */
    margin: 70px auto 20px; /* Mengatur jarak atas untuk menghindari tabrakan dengan toggle button */
    padding: 20px;
    background-color: #fff; /* Background konten */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px; /* Rounded corners */
}

/* Greeting */
.greeting {
    color: #3972a7;
    margin-bottom: 20px;
    text-align: center; /* Memusatkan teks greeting */
}

/* Target Summary dan Progress Tracker */
.target-summary {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.target-summary p {
    margin: 0;
    color: #555;
    text-align: center; /* Memusatkan teks */
}
.progress-tracker progress {
    width: 100%;
    margin: 10px 0;
}

/* Quick Access Widgets */
.quick-access-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Memusatkan widget */
    margin-bottom: 20px;
}
.widget {
    flex: 1 1 calc(50% - 10px); /* Mengatur ukuran widget untuk dua kolom */
    max-width: 200px; /* Lebar maksimal widget */
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s; /* Animasi saat hover */
}
.widget:hover {
    transform: translateY(-5px); /* Efek hover */
}
.widget a {
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    background-color: #3972a7;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Jarak antara ikon dan teks */
    transition: background-color 0.3s;
}
.widget a:hover {
    background-color: #28538a;
}
.widget a i {
    font-size: 1.5em; /* Ukuran ikon */
}

/* Notifications and Announcements */
.notifications-announcements h3 {
    color: #fff;
    background-color:#ff8c28;
    margin-bottom: 10px;
    text-align: center; /* Memusatkan teks judul */
}
.notifications-announcements ul {
    list-style-type: none;
    padding: 0;
}
.notifications-announcements li {
    background-color: #f9f9f9;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Latest Articles and Recipes */
.latest-articles-recipes h3 {
    color: #fff;
    background-color:#ff8c28;
    margin-bottom: 10px;
    text-align: center; /* Memusatkan teks judul */
}
.latest-articles-recipes ul {
    list-style-type: none;
    padding: 0;
}
.latest-articles-recipes li {
    background-color: #f9f9f9;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tombol Toggle Sidebar */
.sidebar-toggle {
    display: block;
    background-color: #3972a7; /* Warna utama aplikasi */
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 70px; /* Di bawah menu header */
    left: 10px;
    z-index: 1001; /* Pastikan tombol toggle di depan sidebar */
}


/* Tambahan styling jika diperlukan */

