/* OrderPortal Module Styles */
:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

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

.navbar-brand img {
    height: 40px;
}

.main-content {
    min-height: calc(100vh - 76px);
    padding: 2rem 0;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
}

/* Override Bootstrap's primary color classes to use our green theme */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.spinner-border.text-primary {
    color: var(--primary-color) !important;
}

.availability-result {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.loading-spinner {
    display: none;
}

.loading-spinner.show {
    display: inline-block;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 0.5rem;
}

.step.active .step-number {
    background-color: var(--secondary-color);
    color: white;
}

.step.completed .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step-line {
    width: 60px;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 1rem;
}

.step.completed + .step .step-line {
    background-color: var(--primary-color);
}

/* Customer Type Card Styles */
.customer-type-card, .customer-status-card {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.customer-type-card:hover, .customer-status-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.15);
}

.customer-type-card.selected, .customer-status-card.selected {
    border-color: var(--primary-color);
    background-color: #f8f9ff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.customer-type-card .card-body, .customer-status-card .card-body {
    position: relative;
    padding: 2rem 1.5rem;
}

.customer-type-card.selected .card-body::before,
.customer-status-card.selected .card-body::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    background-color: var(--success-color);
    border-radius: 50%;
    opacity: 0.1;
}

/* Products Grid Styles */
.products-grid {
    min-width: 1080px; /* Ensure minimum width for proper product display */
}

.products-grid .card {
    min-width: 180px; /* Minimum width for each product card */
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .step-indicator {
        flex-wrap: wrap;
    }
    
    .step-line {
        width: 40px;
    }
    
    .step span {
        font-size: 0.75rem;
        max-width: 80px;
    }
    
    .products-grid {
        flex-wrap: wrap !important;
    }
    
    .products-grid .card {
        min-width: 200px;
        flex: 0 0 calc(50% - 0.5rem);
    }
}

