@layer utilities {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    ::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.6);
    }
    ::-webkit-scrollbar-thumb {
        background: rgba(20, 184, 166, 0.3);
        border-radius: 9999px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(20, 184, 166, 0.6);
    }
}

body {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Nav Buttons */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    color: #f1f5f9;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    color: #0d9488;
    background-color: rgba(13, 148, 136, 0.15);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.3);
}

/* Mobile Bottom Nav Button */
.mob-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.75rem;
    color: #64748b;
    transition: all 0.2s ease;
    flex: 1;
}

.mob-nav-btn.active {
    color: #2dd4bf;
}

/* Stat Cards */
.stat-card {
    background-color: #151c2c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.3);
}

/* Form Inputs */
.form-input {
    width: 100%;
    background-color: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

/* POS Card Hover Effects */
.pos-med-card {
    background-color: #151c2c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pos-med-card:hover {
    border-color: #14b8a6;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(20, 184, 166, 0.15);
}

.pos-med-card:active {
    transform: scale(0.97);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Print CSS */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-receipt, #printable-receipt * {
        visibility: visible;
    }
    #printable-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #000 !important;
    }
    .no-print {
        display: none !important;
    }
}