/* Membangun Custom Styles */

:root {
    --primary: #015196;
    --secondary: #44c0ec;
    --accent: #f59e0b;
    --sidebar-bg: #ffffff;
}

body {
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Sidebar Nav Links */
.nav-link {
    color: #64748b;
}

.nav-link.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(1, 81, 150, 0.3);
}

.nav-link:not(.active):hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

/* Input Styling */
.build-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    border: 2px solid transparent;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
    outline: none;
}

.build-input:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(1, 81, 150, 0.05);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Dashboard Stat Cards */
.stat-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* POS Cart Styles */
#posCart {
    box-shadow: -10px 0 30px rgba(0,0,0,0.03);
}

/* Receipt Styles */
.receipt-paper {
    background: #fff;
    position: relative;
    padding: 40px;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

.receipt-paper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(-45deg, #fff 5px, transparent 0), linear-gradient(45deg, #fff 5px, transparent 0);
    background-size: 10px 10px;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #modalContainer, #modalContainer * {
        visibility: visible;
    }
    #modalContainer {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    #modalBackdrop, 
    #modalContent button,
    #modalContent .flex.gap-4,
    #notificationContainer {
        display: none !important;
    }
    #modalContent {
        position: static;
        width: 100% !important;
        max-width: none !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .receipt-paper {
        box-shadow: none !important;
        padding: 10px !important;
        border: none !important;
        width: 100% !important;
        max-width: 80mm;
        margin: 0 auto;
    }
    .receipt-paper::after {
        display: none;
    }
}
