/* Custom base styles beyond Tailwind */

/* iOS safe area paddings */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* Hide scrollbar for clean mobile UI */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Custom form inputs */
.form-input {
    width: 100%;
    padding: 10px 14px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

/* iOS style toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: #ef4444;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Tab active state */
.nav-btn.active {
    color: #ef4444;
}
.nav-btn.active i {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #print-area, #print-area * {
        visibility: visible;
    }
    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: block !important;
    }
    
    .print-bill {
        width: 100mm;
        margin: 0 auto 20px auto;
        padding: 10px;
        border: 2px dashed #000;
        page-break-after: always;
        font-family: Arial, sans-serif;
    }
    .print-title {
        font-weight: bold;
        font-size: 18px;
        text-align: center;
        border-bottom: 2px solid #000;
        padding-bottom: 5px;
        margin-bottom: 10px;
    }
}
