@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import "tailwindcss";
@source "../views";
@source "../../public/js";

/* =========================================================================
   DAPUR WIKI — Custom Styles (Glassmorphism Theme)
   ========================================================================= */

:root { font-size: 13.5px; }
@media (min-width: 1024px) { :root { font-size: 14px; } }
@media (max-width: 768px) { :root { font-size: 13px; } }

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #334155;
}

/* Glass Panel */
.glass-panel {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.08);
    border-radius: 1.2rem;
}

.glass-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(186, 230, 253, 0.4);
    box-shadow: 4px 0 24px 0 rgba(14, 165, 233, 0.03);
}

.glass-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.glass-input:focus {
    background: #ffffff;
    outline: none;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.glass-input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Text Gradient */
.text-gradient-sky {
    background: linear-gradient(to right, #0284c7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Blocker */
#mobileBlocker { display: none; }
@media (max-width: 767px) {
    #mobileBlocker { display: flex; }
    #mainWrapper { display: none !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(14, 165, 233, 0.25); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(14, 165, 233, 0.5); }

.custom-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 10px;
    margin: 4px 0;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background-color 0.3s ease;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.7);
    border: 2px solid transparent;
    background-clip: padding-box;
}

#hp_master_list::-webkit-scrollbar-thumb { background: rgba(251, 191, 36, 0.5); }
#hp_master_list::-webkit-scrollbar-thumb:hover { background: rgba(245, 158, 11, 0.8); }

/* Menu Active Styling */
.menu-active {
    background: linear-gradient(to right, #f0f9ff, #e0f2fe);
    font-weight: 700;
    color: #0369a1 !important;
    border-left: 4px solid #0ea5e9;
}
.menu-item { transition: all 0.2s ease-in-out; border-left: 4px solid transparent; }
.menu-item:hover:not(.menu-active) { background: #f8fafc; color: #0284c7 !important; }

/* Print */
@media print {
    body { background: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    #mainWrapper, #modalPilihDapur, #modalProfile, .swal2-container, #mobileBlocker, #previewBadge, #loadingOverlay {
        display: none !important;
    }
    #printContainer {
        display: block !important;
        visibility: visible !important;
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        color: black;
        background-color: white;
    }
    @page { size: A4 portrait; margin: 8mm; }
}

/* Blob Animation */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob { animation: blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }
