:root {
    --primary-color: #DA041B;
    --primary-hover: #b80316;
    --bg-light: #f8f9fa;
}

body {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.app-header {
    text-align: center;
}

.app-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.app-title i {
    margin-right: 0.5rem;
}

.card {
    border: none;
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.input-group-text.bg-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

.search-result-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.search-result-item:hover {
    background-color: #f0f0f0;
    border-left-color: var(--primary-color);
    transform: translateX(2px);
}

.search-result-item.active {
    background-color: #e8f4f8;
    border-left-color: var(--primary-color);
}

.product-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 1rem;
}

.product-name {
    font-weight: 600;
    color: #212529;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-details {
    font-size: 0.9rem;
    color: #6c757d;
}

.product-details strong {
    color: #495057;
}

.price-editable {
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
    min-width: 80px;
}

.price-editable:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.price-editable:active {
    background-color: #dee2e6;
}

.badge-custom {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
}

.alert {
    border-radius: 8px;
    border: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(218, 4, 27, 0.25);
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .app-title {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.empty-state .btn {
    min-width: 200px;
}

/* Recent products - same style as search results */
#recentProducts {
    /* Uses same styling as search results via .search-result-item class */
}

