:root {
    --primary: #FF5722; /* Orange for Food */
    --secondary: #2D3436;
    --success: #00b894;
    --bg: #dfe6e9;
    --mobile-bg: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; }

body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
}

/* === Phone Design === */
.phone-frame {
    width: 350px;
    height: 700px;
    background: #000;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--mobile-bg);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-weight: 800; font-size: 1.2rem; }

/* === Order Form === */
.content { padding: 20px; }
.order-form h3 { margin-bottom: 20px; color: var(--secondary); }
.order-form input, .order-form select {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border: 1px solid #ccc; border-radius: 8px;
}
.order-form button {
    width: 100%; padding: 12px; background: var(--secondary); color: white;
    border: none; border-radius: 8px; cursor: pointer; font-weight: bold;
}

/* === Timeline Tracker === */
.tracker-screen { animation: slideUp 0.5s ease; }
.order-id { 
    background: #f1f2f6; padding: 10px; border-radius: 8px; 
    text-align: center; font-weight: bold; margin-bottom: 20px; 
}

.timeline { position: relative; padding-right: 20px; }
.timeline::before {
    content: ''; position: absolute; top: 0; right: 35px;
    width: 2px; height: 100%; background: #eee; z-index: 0;
}

.step {
    display: flex; align-items: center; gap: 15px; margin-bottom: 30px;
    position: relative; z-index: 1; opacity: 0.5; transition: 0.3s;
}
.step.active { opacity: 1; }
.step .icon {
    width: 35px; height: 35px; background: #eee; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; color: #aaa;
    border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.step.active .icon { background: var(--success); color: white; transform: scale(1.1); }
.step .text h4 { font-size: 0.9rem; margin-bottom: 2px; }
.step .text p { font-size: 0.7rem; color: #888; }

.btn-cancel {
    width: 100%; background: #ff7675; color: white; padding: 10px;
    border: none; border-radius: 8px; margin-top: 20px; cursor: pointer;
}

/* === Admin Panel === */
.admin-panel {
    background: white; padding: 30px; border-radius: 20px;
    width: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.admin-panel h2 { color: var(--secondary); margin-bottom: 10px; }
.admin-panel p { color: #888; font-size: 0.9rem; margin-bottom: 20px; }

.order-info-card { background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 20px; border-right: 4px solid var(--primary); }
.status-buttons button {
    display: block; width: 100%; padding: 12px; margin-bottom: 10px;
    background: white; border: 1px solid #ddd; border-radius: 8px;
    cursor: pointer; transition: 0.2s; text-align: right; padding-right: 15px;
}
.status-buttons button:hover { background: #f1f2f6; border-color: var(--secondary); }
.status-buttons button.success:hover { background: #dff9fb; border-color: var(--success); color: var(--success); }

/* === Toast Notification === */
#toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: #2d3436; color: white; padding: 12px 25px; border-radius: 30px;
    opacity: 0; transition: 0.5s; pointer-events: none;
}
#toast.show { opacity: 1; bottom: 50px; }

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }