/* --- Global Styles & Variables --- */
:root {
    --primary-color: #e53935;
    --secondary-color: #ffcdd2;
    --dark-text: #212121;
    --light-text: #757575;
    --background-color: #f5f5f5;
    --white-color: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--dark-text);
    line-height: 1.6;
}

/* --- App Layout --- */
#app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#content-area {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
}

.content-padding {
    padding: 1rem;
}

/* --- Page Management --- */
.page {
    display: none; /* Semua halaman tersembunyi secara default */
}

.page.active {
    display: block; /* Hanya halaman aktif yang ditampilkan */
}

/* --- Slider Banner --- */
.slider-container {
    height: 33vh;
    position: relative;
    overflow: hidden;
    background-color: #eee;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slides img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--white-color);
}

/* --- Delivery/Takeaway Tabs --- */
.delivery-takeaway-container {
    display: flex;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: bold;
    color: var(--light-text);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    margin-bottom: 1.5rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel input,
.tab-panel select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

/* --- Menu Categories --- */
.menu-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.category-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.category-item:hover i {
    transform: scale(1.1);
}

.category-item span {
    font-size: 0.8rem;
    color: var(--dark-text);
}

/* --- Login Section --- */
.login-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fffde7;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.login-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Section Header (Paket Party) --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    font-size: 1.2rem;
}

.see-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* --- Product List --- */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.product-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.product-info h4 {
    font-size: 1.1rem;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--light-text);
}

.price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.add-to-cart {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 0.5rem;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #c62828;
}

/* --- Menu Page Specific --- */
.menu-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.menu-header p {
    font-weight: bold;
    color: var(--light-text);
}

.menu-header select,
.menu-header input[type="search"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

/* --- Aktivitas & Profil Page --- */
.activity-placeholder, .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--light-text);
}

.activity-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.profile-header i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.profile-menu {
    display: flex;
    flex-direction: column;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--dark-text);
    border-bottom: 1px solid var(--border-color);
}

.profile-menu a i {
    width: 24px;
    text-align: center;
    color: var(--light-text);
}


/* --- Bottom Navigation --- */
#bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--white-color);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    bottom: 0;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
    font-size: 0.75rem;
    transition: color 0.3s;
    padding: 0.25rem;
}

.nav-link i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.nav-link.active {
    color: var(--primary-color);
}