/* =========================================
   1. BASE & PALET WARNA (PONDASI)
   ========================================= */
:root {
    --bg-body: #eef2f5;       /* Abu-abu muda untuk Body */
    --bg-sidebar: #ffffff;    /* Putih bersih untuk Sidebar */
    --text-main: #344767;
    --primary-color: #cb0c9f;
}

/* Matikan scroll utama window (agar sidebar diam) */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; 
    background-color: var(--bg-body) !important;
    color: var(--text-main);
    font-family: 'Segoe UI', sans-serif;
}

/* =========================================
   2. LAYOUT FIXED (SCROLLABLE CONTENT)
   ========================================= */
.main-content-scroll {
    height: 100vh;       /* Tinggi mentok layar */
    overflow-y: auto;    /* Aktifkan scroll vertikal */
    overflow-x: hidden;  /* Matikan scroll samping */
    position: relative;
    scroll-behavior: smooth;
}

/* KUSTOMISASI SCROLLBAR (Biar Elegan) */
.main-content-scroll::-webkit-scrollbar, 
.nav::-webkit-scrollbar {
    width: 6px; 
}
.main-content-scroll::-webkit-scrollbar-track,
.nav::-webkit-scrollbar-track {
    background: transparent; 
}
.main-content-scroll::-webkit-scrollbar-thumb,
.nav::-webkit-scrollbar-thumb {
    background-color: #cbd5e0; 
    border-radius: 20px;       
}
.main-content-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #a0aec0; 
}

/* =========================================
   3. SIDEBAR & MENU (STYLE EMASFOOD - COMPACT VERSION)
   ========================================= */
.sidebar-neu {
    background-color: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem !important; /* Kurangi padding atas container */
    padding-bottom: 1rem !important;
}

/* =========================================
   NAVIGASI COMPACT + EFEK EMAS (FIX)
   ========================================= */

/* 1. Tampilan Dasar Tombol (Ukuran Kecil) */
.nav-link {
    position: relative;
    font-weight: 600;
    font-size: 0.85rem;      /* Font sedikit lebih kecil lagi agar muat */
    
    /* SUPER COMPACT SETTINGS */
    margin-bottom: 2px;      /* Jarak antar tombol sangat rapat */
    padding: 2px 5px;        /* Tinggi tombol diperpendek lagi */
    
    background: #ffffff;
    color: #555; 
    border: 1px solid transparent; /* Siapkan border 1px saja */
    border-radius: 12px;     /* Radius dikurangi sedikit biar proporsional */
    box-shadow: 2px 2px 5px rgba(163, 177, 198, 0.1), -2px -2px 5px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    z-index: 1;
    display: flex;           
    align-items: center;
}

/* 2. Ukuran Ikon (Disesuaikan) */
.icon-shape {
    width: 10px;    
    height: 10px;   
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: white;
    transition: all 0.3s;
    font-size: 0.85rem; 
}

/* 3. EFEK AKTIF & HOVER (MERAH + BORDER EMAS TIPIS) */
.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    
    background: 
        linear-gradient(135deg, #d60000 0%, #ff4d4d 100%) padding-box, 
        linear-gradient(45deg, #ffd700, #ffaa00, #ffd700) border-box;
        
    /* DIPERKECIL: Border jadi 1px saja (sebelumnya 2px) */
    border: 1px solid transparent; 
    
    box-shadow: 0 4px 10px rgba(214, 0, 0, 0.3), 0 0 8px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px); /* Efek naik sedikit saja */
}

/* Pastikan Ikon jadi Putih saat aktif */
.nav-link:hover i, .nav-link.active i {
    color: #ffffff !important;
}

/* Kotak Ikon jadi transparan saat aktif agar menyatu dengan background merah */
.nav-link:hover .icon-shape, .nav-link.active .icon-shape {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}
/* =========================================
   4. DASHBOARD CARDS & KATALOG (NEU-CARD)
   ========================================= */
.neu-card {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Shadow Timbul Soft */
    box-shadow: 10px 10px 30px rgba(174, 174, 192, 0.15), -10px -10px 30px #ffffff;
    transition: transform 0.3s ease;
}

.neu-card:hover {
    transform: translateY(-5px);
    box-shadow: 15px 15px 40px rgba(174, 174, 192, 0.2), -15px -15px 40px #ffffff;
}

/* Khusus Katalog: Zoom gambar saat hover */
.neu-card:hover img {
    transform: scale(1.05);
}

/* =========================================
   5. LOGIN PAGE STYLES
   ========================================= */
.login-logo {
    max-width: 180px; 
    height: auto;
}
.card.shadow {
    border: none;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: #0d6efd;
    font-weight: bold;
    margin-left: 2px;
}

/* =========================================
   6. ANIMATIONS (ZOOM, FADE, GLOW)
   ========================================= */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; 
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.zoom-out-container { animation: zoomOut 1.2s forwards; }
@keyframes zoomOut { 
    0% { transform: scale(1.5); opacity: 0; } 
    100% { transform: scale(1); opacity: 1; } 
}

.logo-cyber-hover { animation: hoverGlow 3s infinite; }
@keyframes hoverGlow { 
    0%,100% {transform:translateY(0);} 
    50% {transform:translateY(-8px);} 
}
@keyframes blink { 50% { opacity: 0; } }

#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #ffffff; z-index: 9999;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    transition: opacity 0.5s ease-out;
}

/* =========================================
   7. UTILITIES & GRADIENTS
   ========================================= */
.icon-shape {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    color: white;
    transition: all 0.3s;
}

/* Daftar Warna Gradient */
.bg-gradient-primary { background: linear-gradient(310deg, #d60000, #ff4d4d); } /* Merah */
.bg-gradient-info    { background: linear-gradient(310deg, #2152ff, #21d4fd); } /* Biru */
.bg-gradient-success { background: linear-gradient(310deg, #17ad37, #98ec2d); } /* Hijau */
.bg-gradient-warning { background: linear-gradient(310deg, #f53939, #fbcf33); } /* Orange */
.bg-gradient-danger  { background: linear-gradient(310deg, #ea0606, #ff667c); } /* Merah Tua */
.bg-gradient-dark    { background: linear-gradient(310deg, #141727, #3a416f); } /* Hitam */
.bg-gradient-secondary { background: linear-gradient(310deg, #627594, #a8b8d8); } /* Abu */