/* ===================================================
   delivery/css/delivery.css
   از رنگ اصلی سایت (#0CBCB8) استفاده می‌کند
   =================================================== */

/* هدر پنل پیک - گرادیان فیروزه‌ای و نارنجی */
.dp-header .main-bar {
    background: linear-gradient(135deg, #0CBCB8 0%, #e73636 100%) !important;
    box-shadow: 0 2px 20px rgba(12, 188, 184, 0.25);
}
.dp-header .main-bar .title { color: #fff !important; font-weight: 700; letter-spacing: -0.3px; }
.dp-header .main-bar .back-btn i { color: rgba(255,255,255,0.85); }

/* آواتار پیک در هدر */
#header-delivery-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
    display: none;
    margin-right: 8px;
}

/* سوئیچ آنلاین/آفلاین */
.dp-status-toggle { display: flex; align-items: center; gap: 6px; }
#delivery-status-label {
    font-size: 11px; font-weight: 700;
    min-width: 40px; text-align: center;
    transition: color 0.3s;
}
#deliveryOnlineSwitch {
    width: 38px !important; height: 20px !important;
    cursor: pointer;
    background-color: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.3) !important;
}
#deliveryOnlineSwitch:checked {
    background-color: #22C55E !important;
    border-color: #22C55E !important;
}

/* بج اعلان */
#new-orders-badge {
    font-size: 10px !important; min-width: 18px; height: 18px;
    display: none; align-items: center; justify-content: center;
    padding: 0; line-height: 1;
    border: 1.5px solid white;
    background: #EF4444 !important;
    color: #fff !important;
}

/* بنر لاگین فیروزه‌ای و نارنجی */
.dp-login-banner {
    background: linear-gradient(145deg, #0CBCB8 0%, #e73636 100%);
    padding: 52px 0 70px;
    position: relative;
    overflow: hidden;
}
.dp-login-banner::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -80px; right: -80px;
}
.dp-login-banner::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -60px; left: -40px;
}
.dp-login-icon {
    width: 76px; height: 76px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    backdrop-filter: blur(8px);
    position: relative; z-index: 2;
}
.dp-login-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 7px 18px;
    color: rgba(255,255,255,0.92);
    font-size: 12px; font-weight: 600;
    margin-top: 14px;
    backdrop-filter: blur(8px);
    position: relative; z-index: 2;
}
.dp-badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22C55E;
    animation: dp-pulse 1.5s infinite;
}
@keyframes dp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

/* کارت گرادیان اصلی - داشبورد و درآمد */
.dp-gradient-card {
    background: linear-gradient(135deg, #0CBCB8 0%, #e73636 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(12, 188, 184, 0.25) !important;
    position: relative;
    overflow: hidden;
}
.dp-gradient-card::before {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -60px; left: -60px;
    pointer-events: none;
}
.dp-gradient-card::after {
    content: '';
    position: absolute;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -30px; right: -30px;
    pointer-events: none;
}

/* آیکون دایره در کارت تیره */
.dp-icon-circle {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* تب‌های سفارش */
.dp-tab-btn {
    border: none !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    white-space: nowrap;
    transition: all 0.2s;
    background: #F1FAF9 !important;
    color: #6B7280 !important;
    cursor: pointer;
}
.dp-tab-btn.active {
    background: var(--primary, #0CBCB8) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(12, 188, 184, 0.3);
}
.dp-tab-btn .dp-tab-count {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 1px 7px;
    font-size: 10px;
    margin-right: 4px;
}
.dp-tab-btn:not(.active) .dp-tab-count {
    background: #E5F9F8;
    color: #0CBCB8;
}

/* کارت سفارش */
.dp-order-card {
    border: 1px solid #E0F7F7 !important;
    border-radius: 14px !important;
    background: #fff !important;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 1px 6px rgba(12, 188, 184, 0.06) !important;
}
.dp-order-card:hover {
    border-color: rgba(12, 188, 184, 0.35) !important;
    box-shadow: 0 4px 18px rgba(12, 188, 184, 0.14) !important;
    transform: translateY(-1px);
}

/* اسکرول‌بار ظریف */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(12, 188, 184, 0.2); border-radius: 10px; }

/* بهبود استایل و رفع به‌هم‌ریختگی منوی پایین پنل پیک */
.menubar-area.footer-fixed {
    left: 2% !important;
    right: 2% !important;
    width: 96% !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
    bottom: 12px !important;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(12, 188, 184, 0.15) !important;
    height: 60px !important;
}

@media (min-width: 768px) {
    .menubar-area.footer-fixed {
        width: 480px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }
}

.menubar-area.style-10 .menubar-nav.toolbar-inner {
    justify-content: space-around !important;
    padding: 0 10px !important;
}

.menubar-area.style-10 .menubar-nav .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 8px 16px !important;
}

.menubar-area.style-10 .menubar-nav .nav-link span {
    transition: opacity 0.3s ease !important;
    margin-right: 8px !important;
    margin-left: 8px !important;
}

.page-content.bottom-content {
    padding-bottom: 90px !important;
}

/* رنگ‌بندی و سایز آیکون فونت‌آوسم در منوی ناوبری */
.menubar-area.style-10 .menubar-nav .nav-link i {
    color: var(--primary, #0CBCB8) !important;
    font-size: 20px !important;
    margin-bottom: 0 !important;
    transition: color 0.3s ease !important;
}

.menubar-area.style-10 .menubar-nav .nav-link.active i {
    color: #fff !important;
}

/* رفع تداخل لایه‌بندی و جلوگیری از قرارگیری مودال‌ها زیر Backdrop */
.page-content,
.page-content.bottom-content {
    position: static !important;
    z-index: auto !important;
}

#content {
    position: static !important;
    z-index: auto !important;
}

.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

#routingMapModal {
    z-index: 1065 !important;
}
