/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- Sidebar --- */
#sidebar {
    width: 256px; /* 16rem */
}

#app-container.sidebar-collapsed #sidebar {
    width: 72px; /* 4.5rem */
}

#app-container.sidebar-collapsed .sidebar-text {
    display: none;
}

#app-container.sidebar-collapsed #sidebar-toggle-icon {
    transform: rotate(180deg);
}

.nav-link {
    position: relative; /* Needed for the ::before indicator */
}

.nav-link i {
    width: 1.25rem; /* Ensures icons align with or without text */
    text-align: center;
}

/* Style for active nav link - More Distinct */
.nav-link.active {
    background-color: #4f46e5; /* indigo-600 */
    color: white;
    font-weight: 600; /* semibold */
}

/* Adds a small indicator bar to the left of the active link */
.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 4px;
    background-color: #c7d2fe; /* indigo-200 */
    border-radius: 0 4px 4px 0;
}

/* --- Mobile Sidebar (Off-canvas) --- */
.sidebar-mobile-open {
    transform: translateX(0) !important;
}

/* --- Notification Toast --- */
.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(20px);
    margin-top: 0.5rem;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.toast.toast-success {
    background-color: #16a34a; /* green-600 */
}

.toast.toast-error {
    background-color: #dc2626; /* red-600 */
}


/* Print-specific styles for receipt */
@media print {
    body * {
        visibility: hidden;
    }
    #print-area, #print-area * {
        visibility: visible;
    }
    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none;
    }
}