/* Orders Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1C1C1C 0%, #2C2C2C 100%);
    padding: 4rem 0;
    text-align: center;
    color: #F8F4E3;
}

.page-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #F8F4E3;
}

.page-header-content p {
    font-size: 1.2rem;
    color: #EBC42A;
    max-width: 600px;
    margin: 0 auto;
}

/* Orders Section */
.orders-section {
    padding: 4rem 0;
    min-height: 60vh;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 0;
}

.loading-spinner {
    font-size: 3rem;
    color: #EBC42A;
    margin-bottom: 1rem;
}

.loading-state p {
    font-size: 1.1rem;
    color: #666;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 0;
}

.empty-icon {
    font-size: 4rem;
    color: #EBC42A;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #1C1C1C;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #EBC42A 0%, #D4A017 100%);
    color: #1C1C1C;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 196, 42, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(235, 196, 42, 0.4);
}

/* Orders List */
.orders-list {
    max-width: 1000px;
    margin: 0 auto;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #EBC42A;
}

.orders-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.orders-header h2 {
    font-size: 2rem;
    color: #1C1C1C;
    font-weight: 600;
    margin: 0;
}


.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #EBC42A;
    border-radius: 8px;
    background: white;
    color: #1C1C1C;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(235, 196, 42, 0.2);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clear-filter-btn {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    white-space: nowrap;
}

.clear-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.clear-filter-btn:hover:not([style*="background: linear-gradient(135deg, #dc3545"]) {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

.clear-filter-btn[style*="background: linear-gradient(135deg, #dc3545"]:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
}

.clear-filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.clear-filter-btn i {
    font-size: 0.8rem;
}

.clear-filter-btn span {
    font-size: 0.85rem;
}

/* Orders Grid */
.orders-grid {
    display: grid;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #EBC42A;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.order-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1C1C1C;
}

.order-date {
    font-size: 0.9rem;
    color: #666;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #FFF3CD;
    color: #856404;
}

.status-confirmed {
    background-color: #D1ECF1;
    color: #0C5460;
}

.status-shipped {
    background-color: #D4EDDA;
    color: #155724;
}

.status-delivered {
    background-color: #C3E6CB;
    color: #155724;
}

.status-cancelled {
    background-color: #F8D7DA;
    color: #721C24;
}

.order-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.order-item {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    border: 1px solid #e9ecef;
}

.order-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #EBC42A;
    transition: transform 0.2s ease;
}

.order-item-image:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.order-total {
    text-align: right;
}


.total-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.order-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.view-details {
    background: none;
    border: 2px solid #EBC42A;
    color: #EBC42A;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: #EBC42A;
    color: #1C1C1C;
}

.tracking-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.tracking-info i {
    color: #EBC42A;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 4rem 0;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.error-state h3 {
    font-size: 1.8rem;
    color: #1C1C1C;
    margin-bottom: 1rem;
}

.error-state p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.retry-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #1C1C1C;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #1C1C1C;
}

.modal-body {
    padding: 1.5rem;
}

/* Order Detail Content */
.order-detail-grid {
    display: grid;
    gap: 2rem;
}

.detail-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.detail-section h4 {
    font-size: 1.2rem;
    color: #1C1C1C;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #EBC42A;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #1C1C1C;
}

.detail-value {
    color: #666;
}

.detail-value.status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.items-list {
    display: grid;
    gap: 1rem;
}

.item-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e9ecef;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #1C1C1C;
    margin-bottom: 0.25rem;
}

.item-price {
    color: #EBC42A;
    font-weight: 600;
}

.item-quantity {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header-content h1 {
        font-size: 2.5rem;
    }
    
    .orders-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .orders-filter {
        width: 100%;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .clear-filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .order-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .order-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .order-total {
        text-align: left;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .view-details {
        text-align: center;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .item-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .orders-section {
        padding: 2rem 0;
    }
    
    .order-card {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #EBC42A 0%, #D4B025 100%);
    color: #1C1C1C;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 196, 42, 0.3);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #D4B025 0%, #C4A020 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 196, 42, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(235, 196, 42, 0.3);
}

.load-more-btn i {
    font-size: 1.1rem;
}

.load-more-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-btn:disabled:hover {
    background: #666;
    transform: none;
    box-shadow: none;
}

/* Orders Count Display */
.orders-count {
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
}

.orders-count strong {
    color: #EBC42A;
    font-weight: 600;
}
