/* Numbers Marketplace - Bootstrap 4 Design */
#orderpage {
    padding: 20px 0;
}

.numbers-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.numbers-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #212529;
}

.numbers-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-top: 20px;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.filter-group .form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-group .form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.numbers-results {
    margin: 30px 0;
}

.numbers-results .table {
    background: #fff;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.numbers-results .table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.numbers-results .table thead th {
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    vertical-align: middle;
}

.numbers-results .table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.numbers-results .result-row {
    transition: background-color 0.15s ease-in-out;
}

.numbers-results .result-row:hover {
    background-color: #f8f9fa;
}

.numbers-results .result-row.active {
    background-color: #e7f3ff !important;
    border-left: 3px solid #007bff;
}

.numbers-results .result-row.active:hover {
    background-color: #d4edff !important;
}

/* Class Badge - Bootstrap 4 Badge Style (use badge classes) */
.class-badge.badge {
    min-width: 32px;
    padding: 0.35em 0.65em;
    font-size: 0.875em;
}

/* Price formatting */
.numbers-results .table td.text-right {
    font-weight: 500;
    color: #28a745;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Add to Cart Button - Use Bootstrap 4 btn classes */
.result-button.btn {
    /* Bootstrap btn classes handle styling */
}

/* Remove Link */
.result-remove {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease-in-out;
}

.result-remove:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Order Button */
.numbers-order {
    text-align: center;
    padding: 30px 0;
    display: none;
    border-top: 1px solid #dee2e6;
    margin-top: 30px;
}

.numbers-order .result-cart.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.numbers-order .result-cart .cart-cnt.badge {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

/* Pagination */
.pagination-controls {
    margin: 20px 0;
    text-align: center;
}

.pagination-controls .btn {
    margin: 0 5px;
}

/* Loading state */
.numbers-results tbody td.text-center {
    padding: 40px 15px;
}

/* Numbers Intro */
.numbers-intro {
    margin-bottom: 30px;
}

.numbers-intro h1 {
    margin-bottom: 15px;
}

.numbers-intro .lead {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Classes Info Card */
.numbers-classes-info {
    margin-top: 30px;
}

.numbers-classes-info .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.numbers-classes-info .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
}

.numbers-classes-info .card-header h3 {
    color: #212529;
    font-weight: 600;
}

.numbers-classes-info .card-body {
    padding: 20px;
}

.numbers-classes-info .badge-lg {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
    min-width: 35px;
}

.numbers-classes-info ul {
    padding-left: 20px;
}

.numbers-classes-info ul li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .numbers-filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .numbers-results .table {
        font-size: 0.875rem;
    }
    
    .numbers-results .table thead th,
    .numbers-results .table tbody td {
        padding: 8px 10px;
    }
    
    .numbers-classes-info .row > div {
        margin-bottom: 20px;
    }
}

/* Cycle Switch */
.numbers-cycle-selector {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.cycle-switch-container {
    display: inline-block;
}

.cycle-switch {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.cycle-switch input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cycle-switch .cycle-option {
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    position: relative;
    user-select: none;
    color: #333;
    background: transparent;
}

.cycle-switch .cycle-option.active {
    background: #007bff;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.cycle-switch .cycle-option:hover:not(.active) {
    background: #f8f9fa;
}

.cycle-switch .badge-discount {
    display: inline-block;
    background: #ffc107;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive cycle switch */
@media (max-width: 576px) {
    .cycle-switch .cycle-option {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .cycle-switch .badge-discount {
        font-size: 9px;
        padding: 1px 4px;
        margin-left: 4px;
    }
}
