/* Orders Page Styles */
.orders-section {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}

.orders-section h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.orders-section h1 i {
    color: var(--primary-color);
}

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Order Card */
.order-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1rem;
}

.order-header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.order-id-section {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.order-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.order-date {
    font-size: 0.85rem;
    color: var(--light-text);
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-shipped {
    background: #e3f2fd;
    color: #1565c0;
}

.status-delivered {
    background: #f1f8e9;
    color: #558b2f;
}

.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

/* Order Items */
.order-items {
    margin: 1rem 0;
}

.order-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}

.order-item:last-child {
    margin-bottom: 0;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.item-meta {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0.2rem;
}

.item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Order Footer */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    margin-top: 1rem;
}

.send-owner-btn {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.send-owner-btn:hover { 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

@media (max-width: 768px) {
    .order-footer { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .send-owner-btn { width: 100%; justify-content: center; }
}

.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.delivery-info p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

.delivery-info strong {
    color: var(--primary-color);
}

.order-total {
    text-align: right;
}

.order-total-label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.3rem;
}

.order-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Cancel Order Button */
.cancel-order-btn {
    background: #e53935;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.cancel-order-btn:hover {
    background: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.25);
}

/* Cancel Confirmation Modal */
.cancel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.cancel-modal-content {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cancel-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 26px;
    color: #888;
    cursor: pointer;
}

.cancel-icon {
    color: #f39c12;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.cancel-text {
    color: #666;
    margin: 0.5rem 0 1rem;
}

.cancel-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.btn-secondary,
.btn-danger {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary { background: #ecf0f1; color: #2c3e50; }
.btn-secondary:hover { background: #dfe6e9; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }

/* Address Section */
.order-address {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.order-address h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.order-address h4 i {
    color: var(--primary-color);
}

.order-address p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    color: var(--light-text);
    line-height: 1.5;
}

/* Empty State */
.empty-orders {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-orders i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.empty-orders h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.empty-orders p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.empty-orders a {
    display: inline-block;
    padding: 0.5rem 1.8rem 0.1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.empty-orders a:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .orders-section h1 {
        font-size: 1.5rem;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .order-total {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .orders-section {
        padding: 1rem 0.5rem;
    }
    
    .order-card {
        padding: 1rem;
    }
    
    .order-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .item-image {
        width: 100%;
        height: 150px;
    }
    
    .order-total-amount {
        font-size: 1.3rem;
    }
}
