body {
    box-sizing: border-box;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.tab-active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.inventory-card {
    transition: all 0.3s ease;
}

.inventory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.config-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 300px;
    z-index: 1000;
    transform: translateX(320px);
    transition: transform 0.3s ease;
}

.config-panel.open {
    transform: translateX(0);
}

.config-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.config-toggle:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

/* Mobile menu styles */
.mobile-tab-btn.active {
    background-color: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

@media (max-width: 768px) {
    .config-panel {
        width: calc(100vw - 40px);
        max-width: 300px;
    }
}

/* Bulk import styles */
.import-mode {
    transition: all 0.3s ease;
}

.bulk-product-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    position: relative;
}

.bulk-product-item:hover {
    border-color: #3b82f6;
}

.remove-product-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-product-btn:hover {
    background: #dc2626;
}

/* Compare inventory styles */
.compare-filter-btn.active {
    background: #3b82f6 !important;
    color: white !important;
}

.compare-result-item {
    transition: all 0.3s ease;
}

.compare-result-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Barcode scanner animation */
@keyframes scan {
    0% { transform: translateY(-100px); }
    50% { transform: translateY(100px); }
    100% { transform: translateY(-100px); }
}

@view-transition { navigation: auto; }