/* CSS: customer/orders.php (PREMIUM VERSION) */

:root {
    --primary-red: #ea1d2c;
    --bg-main: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    background: var(--bg-main); 
    color: var(--text-main);
    margin: 0; 
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
}

/* Header Glassmorphism */
.header { 
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 20px; 
    text-align: center; 
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn { 
    position: absolute; 
    left: 20px; 
    color: var(--text-main); 
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.back-btn:hover { background: rgba(0,0,0,0.05); }

.container { 
    max-width: 480px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* Tab Navigation */
.status-nav { 
    display: flex; 
    gap: 8px; 
    overflow-x: auto; 
    padding: 4px 0 16px; 
    margin-bottom: 12px; 
    scrollbar-width: none; 
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}
.status-nav:active { cursor: grabbing; }
.status-nav::-webkit-scrollbar { display: none; }

.status-link { 
    white-space: nowrap; 
    padding: 10px 18px; 
    border-radius: 100px; 
    background: var(--card-bg); 
    border: 1px solid #e2e8f0; 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 600; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.status-link.active { 
    background: var(--text-main); 
    color: white; 
    border-color: var(--text-main); 
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Login Modernized */
.login-box { 
    background: var(--card-bg); 
    padding: 40px 30px; 
    border-radius: var(--radius-lg); 
    text-align: center; 
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}
.login-box h3 { font-weight: 800; font-size: 24px; margin-bottom: 8px; color: #0f172a; }
.login-box p { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: #475569; }
.form-control { 
    width: 100%; 
    padding: 14px 16px; 
    border: 2px solid #f1f5f9; 
    border-radius: var(--radius-md); 
    font-size: 16px; 
    box-sizing: border-box; 
    background: #f8fafc;
    transition: all 0.2s;
    font-weight: 500;
}
.form-control:focus { 
    outline: none; 
    border-color: var(--primary-red); 
    background: white;
    box-shadow: 0 0 0 4px rgba(234, 29, 44, 0.1);
}

.btn-primary { 
    background: var(--primary-red); 
    color: white; 
    border: none; 
    width: 100%; 
    padding: 16px; 
    border-radius: var(--radius-md); 
    font-weight: 700; 
    cursor: pointer; 
    font-size: 16px; 
    transition: all 0.2s;
}
.btn-primary:active { transform: scale(0.98); }

/* ORDER CARD PREMIUM */
.order-card { 
    background: var(--card-bg); 
    padding: 20px; 
    border-radius: var(--radius-lg); 
    margin-bottom: 16px; 
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.4s ease-out backwards;
}
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-card-content { display: flex; gap: 16px; margin-bottom: 16px; }

.order-img { 
    width: 56px; 
    height: 56px; 
    border-radius: 14px; 
    object-fit: cover; 
    background: #f1f5f9; 
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.order-info { flex: 1; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; }

.restaurant-name { 
    font-size: 16px; 
    font-weight: 700; 
    text-decoration: none; 
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.status-badge { 
    font-size: 11px; 
    padding: 6px 12px; 
    border-radius: 100px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.order-date { font-size: 12px; color: var(--text-muted); font-weight: 500; font-family: 'Inter', monospace; }

.items-list { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-top: 8px; 
    line-height: 1.5; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    line-clamp: 2;
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.order-total { 
    font-size: 16px; 
    font-weight: 800; 
    color: #0f172a; 
    margin-top: 10px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ACTIONS */
.card-actions { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    border-top: 1px solid #f1f5f9; 
    padding-top: 16px; 
}

.btn-action {
    padding: 12px; 
    border-radius: 10px; 
    font-weight: 700; 
    font-size: 13px; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: 0.2s;
    text-decoration: none;
    border: none;
}

.btn-track { background: var(--text-main); color: white; }
.btn-reorder { background: #f1f5f9; color: var(--text-muted); }

.btn-action:active { transform: scale(0.96); opacity: 0.9; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 64px; color: #cbd5e1; margin-bottom: 20px; display: block; }
.empty-state h4 { font-size: 20px; font-weight: 700; color: #475569; margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 24px; }
