/* ================================
   USER ORDERS PAGE STYLES
   ================================ */

.orders-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
}

.page-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.order-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-id {
    font-weight: 700;
    font-size: 1rem;
}

.order-date {
    font-size: 0.8rem;
    opacity: 0.9;
}

.order-body {
    padding: 15px;
}

.order-item-row {
    display: flex;
    gap: 15px;
}

.order-image {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}

.order-details {
    flex: 1;
}

.item-name {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
}

.order-info {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 4px;
}

.order-info strong {
    color: #333;
}

/* Nested Items Styles */
.order-items-list {
    padding: 0;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    align-items: flex-start;
}

.order-item.border-top {
    border-top: 1px dashed #e9ecef;
}

.item-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.order-image-small {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.item-meta {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 6px;
}

.item-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.btn-cancel-item {
    padding: 4px 10px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.crew-message-inline {
    font-size: 0.8rem;
    color: #667eea;
    margin-top: 6px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Status Colors */
.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}
.status-preparing {
    background: rgba(253, 126, 20, 0.15);
    color: #fd7e14;
}
.status-ready {
    background: rgba(13, 202, 240, 0.15);
    color: #0dcaf0;
}
.status-delivered {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}
.status-cancelled {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}
.status-not_available {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}
.status-other {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

/* Crew Message Box */
.crew-message-box {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.1)
    );
    border-left: 4px solid #667eea;
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
    margin-top: 10px;
    font-size: 0.85rem;
}

.crew-message-box strong {
    color: #667eea;
}

/* Order Footer */
.order-footer {
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.btn-cancel {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.empty-state i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
}

.modal-body {
    padding: 20px;
}

#status-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
}

#status-select:focus {
    border-color: #667eea;
    outline: none;
}
