/* ============================================================================
   GB GLOBAL TRADE - STYLES
   ============================================================================ */

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

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Steps Indicator */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    flex: 1;
    z-index: 1;
    cursor: pointer;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 10px;
    transition: all 0.3s;
}

.step-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.step.active .step-number {
    background: #0d6efd;
    color: white;
    transform: scale(1.1);
}

.step.active .step-label {
    color: #0d6efd;
    font-weight: bold;
}

.step.completed .step-number {
    background: #198754;
    color: white;
}

.step.completed .step-label {
    color: #198754;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Animations */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.table thead {
    background: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

/* Status Badges */
.badge-ok { background-color: #198754; }
.badge-partial { background-color: #ffc107; color: #000; }
.badge-out { background-color: #dc3545; }
.badge-notfound { background-color: #6c757d; }

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .steps {
        flex-wrap: wrap;
        padding: 0 10px;
    }
    
    .steps::before {
        display: none;
    }
    
    .step {
        flex-basis: 33.333%;
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .step-label {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .step {
        flex-basis: 50%;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* Alert Animations */
.alert {
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Success/Error States */
.success-icon {
    color: #198754;
    font-size: 48px;
    margin-bottom: 20px;
}

.error-icon {
    color: #dc3545;
    font-size: 48px;
    margin-bottom: 20px;
}

/* Input Groups */
.input-group-text {
    background-color: #f8f9fa;
}

/* Modal */
.modal-content {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Loading Button Container */
.loading-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #0d6efd;
    color: white;
    border-radius: 0.375rem;
    min-height: 48px;
    animation: buttonPulse 1.5s infinite;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loading-button-container .loading-text {
    color: white;
    font-weight: 500;
    margin-left: 10px;
    font-size: 1rem;
}

.loading-button-container .spinner-border {
    border-color: rgba(255, 255, 255, 0.3);
    border-right-color: white;
}

@keyframes buttonPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.85; 
        transform: scale(0.98);
    }
}

/* Utility Classes */
.text-muted {
    color: #6c757d !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

