/* ====================================
   نظام طلبات التوصيل - شماب
   ملف الاستايلات الرئيسي - النسخة المحدّثة
   ==================================== */

/* =======================================
   1. الإعدادات العامة والألوان
   ======================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    color: #2d3748;
    line-height: 1.6;
}

/* ---- المتغيرات (الألوان الخضراء) ---- */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary: #14b8a6;
    --accent: #22c55e;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* =======================================
   2. Header والتنقل
   ======================================= */

header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: var(--shadow-md);
}

.logo-box {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
    padding: 10px;
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: scale(1.08) rotate(2deg);
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---- أزرار التنقل ---- */
.nav-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 600;
}

.nav-btn.track {
    color: var(--gray-600);
}

.nav-btn.track:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.nav-btn.requests {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.nav-btn.requests:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

.nav-btn.logout {
    color: var(--gray-600);
}

.nav-btn.logout:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

/* =======================================
   3. الخلفيات والتدرجات
   ======================================= */

.gradient-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* =======================================
   4. الأزرار الرئيسية
   ======================================= */

.main-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    border-radius: 9999px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.main-btn:hover::before {
    left: 100%;
}

.main-btn:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.5);
}

.main-btn:active {
    transform: scale(1.02) translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 1rem 2rem;
    border-radius: 9999px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.secondary-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* =======================================
   5. القائمة المنسدلة
   ======================================= */

#quickMenu {
    transition: all 0.3s ease;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link:hover {
    transform: translateX(-8px);
}

.quick-link.driver {
    background: rgba(16, 185, 129, 0.08);
}

.quick-link.driver:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.quick-link.admin {
    background: rgba(168, 85, 247, 0.08);
}

.quick-link.admin:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.15);
}

.menu-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.quick-link:hover .menu-icon {
    transform: scale(1.15) rotate(10deg);
}

/* =======================================
   6. بطاقات الخدمات
   ======================================= */

.service-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: var(--gray-50);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
}

.service-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.2) rotate(10deg);
}

.service-card .title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--gray-800);
}

/* =======================================
   7. خطوات العمل
   ======================================= */

.step-circle {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.step-circle::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.step-circle:hover {
    transform: scale(1.15) rotate(360deg);
}

.step-circle:hover::after {
    opacity: 1;
    inset: -10px;
}

/* =======================================
   8. Badges والشارات
   ======================================= */

.feature-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    margin: 0.3rem;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* =======================================
   9. قسم أفضل الموصلين
   ======================================= */

/* ---- بطاقات الموصلين ---- */
.driver-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.driver-card:hover {
    transform: translateY(-15px);
}

.driver-card a {
    text-decoration: none;
    display: block;
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.driver-card a:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.25);
}

.driver-card a:hover h3 {
    color: var(--primary);
}

/* ---- الميداليات ---- */
.medal {
    widt