/* Custom styles for Stock Integration Tool */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: 600;
}

/* Severity badges */
.severity-high {
    background-color: #dc3545 !important;
    color: white;
}

.severity-medium {
    background-color: #fd7e14 !important;
    color: white;
}

.severity-low {
    background-color: #0dcaf0 !important;
    color: white;
}

.severity-none {
    background-color: #6c757d !important;
    color: white;
}

/* Table row highlighting */
.table tbody tr.severity-high {
    background-color: rgba(220, 53, 69, 0.1);
}

.table tbody tr.severity-medium {
    background-color: rgba(253, 126, 20, 0.1);
}

.table tbody tr.severity-low {
    background-color: rgba(13, 202, 240, 0.1);
}

/* Difference type badges */
.diff-quantity {
    background-color: #e74c3c;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin: 0.1rem;
    display: inline-block;
}

.diff-status {
    background-color: #f39c12;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin: 0.1rem;
    display: inline-block;
}

.diff-backorders {
    background-color: #3498db;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin: 0.1rem;
    display: inline-block;
}

/* Status indicators */
.status-in-stock {
    color: #28a745;
    font-weight: 600;
}

.status-out-of-stock {
    color: #dc3545;
    font-weight: 600;
}

.status-unknown {
    color: #6c757d;
    font-style: italic;
}

.status-enabled {
    color: #198754;
    font-weight: 600;
}

.status-disabled {
    color: #dc3545;
    font-weight: 600;
}

.status-enabled {
    color: #198754;
    font-weight: 600;
}

.status-disabled {
    color: #dc3545;
    font-weight: 600;
}

/* Quantity display */
.qty-positive {
    color: #28a745;
    font-weight: 600;
}

.qty-zero {
    color: #ffc107;
    font-weight: 600;
}

.qty-negative {
    color: #dc3545;
    font-weight: 600;
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Card enhancements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Button enhancements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Table enhancements */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    vertical-align: middle;
    font-size: 0.875rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Form enhancements */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Animation for loading */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Utility classes */
.text-truncate-custom {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cursor-pointer {
    cursor: pointer;
}

/* Success state */
.success-icon {
    color: #28a745;
    font-size: 4rem;
}

/* Error state */
.error-icon {
    color: #dc3545;
    font-size: 4rem;
}

/* Highlight differences */
.highlight-difference {
    background-color: #fff3cd;
    padding: 0.25rem;
    border-radius: 0.25rem;
    border-left: 3px solid #ffc107;
}

/* Data source labels */
.data-source {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.7;
}

/* Comparison values */
.comparison-value {
    display: block;
    margin-bottom: 0.25rem;
}

.comparison-value:last-child {
    margin-bottom: 0;
}
