/* Orders Page Styles */
.orders-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.orders-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.orders-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Login Required */
.login-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.login-message {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 500px;
}

.login-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-message h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.login-message p {
    margin-bottom: 1.5rem;
}

/* Orders Filter */
.orders-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem;
    padding-right: 2.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-box i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.filter-dropdown select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* Orders List */
.orders-list {
    position: relative;
    min-height: 300px;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.spinner {
    margin: 0 auto 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #eaeaea;
    border-top-color: var(--primary-color);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-orders {
    text-align: center;
    padding: 3rem 1rem;
}

.no-orders i {
    font-size: 3rem;
    color: #777;
    margin-bottom: 1rem;
}

.no-orders h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-orders p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Order Card */
.order-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.order-main {
    display: flex;
    flex-direction: column;
}

.order-id {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.order-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.order-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.order-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.paid {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.pending {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.failed {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-badge.cancelled {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-badge.refunded {
    background-color: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.view-details {
    font-size: 0.9rem;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
}

/* Order Details Modal */
.order-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.order-details-modal.show {
    display: flex;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.modal-body {
    padding: 1.5rem;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.order-info-item {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.3rem;
}

.value {
    font-weight: 500;
}

.order-details-section {
    margin-top: 1.5rem;
}

.order-details-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.plan-details, .payment-details, .delivery-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-price {
    font-weight: 700;
    color: var(--primary-color);
}

.payment-details, .delivery-details {
    display: grid;
    gap: 0.5rem;
}

.payment-info-item, .delivery-info-item {
    display: flex;
}

.payment-info-item .label, .delivery-info-item .label {
    min-width: 120px;
    flex-shrink: 0;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eaeaea;
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .orders-filter {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        max-width: none;
    }
    
    .order-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-side {
        margin-top: 1rem;
        align-items: flex-start;
    }
    
    .order-info {
        grid-template-columns: 1fr;
    }
} 