/* Custom CSS untuk Frontend Mobile-First (DonasiApps) */

:root {
    --primary-color: #0284c7;
    --primary-light: #e0f2fe;
    --secondary-color: #64748b;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --bottom-nav-height: 65px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* Pembatas lebar agar tampil seperti aplikasi mobile di desktop */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Area konten utama yang dapat di-scroll, memberikan ruang untuk bottom nav */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding-bottom: var(--bottom-nav-height);
}

/* Header Aplikasi */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bottom-nav-height);
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease-in-out;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
    transition: transform 0.2s;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

.bottom-nav-item:hover {
    color: var(--primary-color);
}

/* Utility Classes Tambahan */
.radius-xl {
    border-radius: 1rem;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

/* Menghilangkan scrollbar bawaan untuk area horizontal scroll */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Kartu Modern (Modern Card) */
.modern-card {
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-card:active {
    transform: scale(0.98);
}

/* Skeleton Loading Animation */
.skeleton {
    background: #e2e8f0;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Horizontal Scroll Snap Slider (Untuk Banner) */
.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.slider-item {
    scroll-snap-align: start;
    flex: 0 0 100%; /* Lebar satu item = 100% container */
    max-width: 100%;
    position: relative;
}

/* Menghilangkan scrollbar khusus untuk slider */
.slider-container::-webkit-scrollbar {
    display: none;
}
.slider-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
