/* Order History Specific Styles */
.order-history-container {
    padding: 140px 0 80px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.page-header {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #27ae60;
    margin: 0;
    font-weight: bold;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    flex: 1;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #27ae60;
}

.filter-group:has(.filter-btn) {
    flex-direction: column;
    align-items: stretch;
}

.filter-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.filter-btn:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

/* Order List */
.order-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.order-list-header {
    background: #27ae60;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.order-item:hover {
    background: #f8f9fa;
}

.order-item:last-child {
    border-bottom: none;
}

.order-content {
    padding: 1.5rem;
}

.order-header {
    margin-bottom: 1rem;
}

.order-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-info h3 {
    color: #333;
    margin: 0;
    font-size: 1.2rem;
    flex: 1;
}

.order-meta {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    flex-wrap: nowrap !important;
    align-items: center;
    width: 100%;
}

.order-meta span {
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.order-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;
    flex-shrink: 0;
}

.order-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.product-item:last-child {
    border-bottom: none;
}

.product-info {
    width: 100%;
}

.product-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
}

.product-options {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.product-price-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-quantity {
    color: #6c757d;
    font-size: 0.9rem;
}

.product-price {
    font-weight: 600;
    color: #27ae60;
}

.product-actions {
    flex-shrink: 0;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.btn-lesson {
    background: #27ae60;
    color: white;
}

.btn-lesson:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #495057;
}

.empty-state p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.shop-now-btn {
    background: #27ae60;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.shop-now-btn:hover {
    background: #2ecc71;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-history-container {
        padding: 100px 0 60px 0;
    }
    
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .filter-group:last-child {
        grid-column: 1 / -1;
    }
    
    .filter-group label {
        min-width: 60px;
        font-size: 0.8rem;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .order-content {
        padding: 1rem;
    }
    
    .order-title {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .order-title h3 {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .order-total {
        font-size: 1.1rem;
    }
    
    .order-meta {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.75rem;
        font-size: 0.8rem;
        flex-wrap: nowrap !important;
        width: 100%;
        overflow: visible;
    }
    
    .order-meta span {
        display: inline-flex !important;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .action-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filter-group:last-child {
        grid-column: auto;
    }
    
    .filter-group label {
        min-width: 70px;
    }
    
    .order-list-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .empty-state {
        padding: 3rem 1rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    .order-title {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .order-meta {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem;
        font-size: 0.75rem;
        flex-wrap: nowrap !important;
        width: 100%;
    }
    
    .order-meta span {
        display: inline-flex !important;
        gap: 0.2rem;
        flex-shrink: 0;
    }
    
    .order-meta i {
        font-size: 0.8em;
    }
    
    .action-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}