@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Vazirmatn', sans-serif;
}

.dir-ltr {
    direction: ltr;
    text-align: left;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Toggle switch animation */
button[role="switch"] {
    transition: background-color 0.2s ease;
}

/* Input focus effect */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Number input - hide arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Phone input special styling */
input[type="tel"] {
    letter-spacing: 0.15em;
    font-size: 1.125rem;
}

/* Print styles */
@media print {
    body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    @page {
        margin: 0;
    }
}

/* Label print size: 7.5cm x 4cm */
.label-print {
    width: 7.5cm;
    height: 4cm;
    padding: 3mm;
    font-size: 8pt;
    line-height: 1.4;
    page-break-after: always;
}

/* Receipt print size: 8cm x 8cm */
.receipt-print {
    width: 8cm;
    min-height: 8cm;
    padding: 5mm;
    font-size: 9pt;
    line-height: 1.5;
}

/* Thermal printer optimization */
.thermal-print {
    font-family: 'Vazirmatn', monospace;
    color: #000;
    background: #fff;
}

/* QR Code container */
.qr-container {
    width: 2cm;
    height: 2cm;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slide panel animation */
.slide-panel {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
}

/* Button active state */
button:active {
    transform: scale(0.98);
}

/* Card hover effect */
.card-hover {
    transition: box-shadow 0.2s ease;
}

.card-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Success animation */
@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    animation: successPulse 0.5s ease-out;
}

/* Order code styling */
.order-code {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    direction: ltr;
}
