/* --- 5. SEARCH & INPUT REFINEMENTS --- */
.premium-search-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-pill);
    padding: 2px 5px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.premium-search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: scale(1.01);
}

/* --- 6. MODAL OVERLAYS --- */
.modal-overlay-blur {
    background: rgba(15, 23, 42, 0.4) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
}

/* --- 7. BUTTON REFINEMENTS --- */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-premium:hover::after {
    transform: translate(-50%, -50%) scale(1);
}


/* --- 10. ELITE TABLE COMPONENTS --- */
.hover-lift-subtle:hover {
    transform: translateY(-2px);
    background-color: #f8fafc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn-icon-elite {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--anim-fast);
}

.btn-icon-elite:hover {
    transform: scale(1.1);
    filter: brightness(0.95);
}

.btn-icon-elite.danger:hover {
    background: #ef4444 !important;
    color: white !important;
}

/* Elite Table Header Styling */
.table-elite thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 850;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 15px 16px;
    border-bottom: 1px solid #e2e8f0;
}

/* Button Variants */
.btn-primary-elite {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(211, 22, 40, 0.2);
    cursor: pointer;
    transition: all var(--anim-fast);
}

.btn-primary-elite:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 22, 40, 0.3);
    filter: brightness(1.1);
}

.btn-ghost-elite {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary-soft);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 800;
    transition: all var(--anim-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost-elite:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-ai-elite {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    cursor: pointer;
    transition: all var(--anim-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ai-elite:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3);
    filter: brightness(1.1);
}

.btn-icon-elite.edit {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-icon-elite.edit:hover {
    background: #e2e8f0;
}

.btn-icon-elite.barcode {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-icon-elite.barcode:hover {
    background: #e2e8f0;
}

.btn-icon-elite.delete {
    background: #fee2e2;
    color: #ef4444;
}

.btn-icon-elite.delete:hover {
    background: #ef4444 !important;
    color: white !important;
}

/* Stock Badges */
.stock-badge {
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 850;
    font-size: 0.7rem;
    display: inline-block;
}

.stock-badge.out {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.stock-badge.low {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.stock-badge.ok {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

/* =========================================
   CHECKOUT MODAL (QUICK SALE) - PREMIUM REFINEMENTS
   ========================================= */

/* Action Bar Aligned to Right */
.swal2-popup.premium-popup .swal2-actions {
    justify-content: flex-end !important;
    padding: 10px 45px 35px !important;
    width: 100% !important;
    margin-top: 15px !important;
    gap: 15px !important;
}

/* Confirm Button - Elite Green Style */
.swal2-popup.premium-popup .swal2-actions .swal2-confirm.qs-confirm-btn {
    background-color: #22c55e !important;
    background-image: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: white !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    padding: 14px 45px !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4) !important;
    border: none !important;
    margin: 0 !important;
}

.swal2-popup.premium-popup .swal2-actions .swal2-confirm.qs-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 25px -5px rgba(34, 197, 94, 0.5) !important;
}


/* Close Button (X) Forced to Top-Right */
.swal2-popup.premium-popup .swal2-close {
    right: 20px !important;
    left: auto !important;
    top: 20px !important;
    position: absolute !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
    font-size: 20px !important;
    box-shadow: var(--shadow-sm);
}

.swal2-popup.premium-popup .swal2-close:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

/* =========================================
   FORCED SOLID SEARCH RESULTS
   ========================================= */

#qs-item-results {
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border: 1px solid #e2e8f0 !important;
    z-index: 100000 !important;
}

.qs-prod-row {
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
}

.qs-prod-row:hover {
    background: #f8fafc !important;
}

/* Fix "Double Field" look - Remove focus-within border/scale */
.swal2-popup.premium-popup .premium-search-container:focus-within {
    border-color: #e2e8f0 !important;
    /* Keep original border color on focus */
    box-shadow: none !important;
    transform: none !important;
}

.swal2-popup.premium-popup .premium-search-container {
    background: #f8fafc !important;
    /* Slightly grayer to distinguish from cards */
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
}

