/* Modern Mobile-First Delivery Partner Portal Styles */

:root {
    --dp-primary: #2563eb;
    --dp-primary-hover: #1d4ed8;
    --dp-secondary: #475569;
    --dp-success: #10b981;
    --dp-warning: #f59e0b;
    --dp-danger: #ef4444;
    --dp-dark: #0f172a;
    --dp-light: #f8fafc;
    --dp-card-bg: #ffffff;
    --dp-border: #e2e8f0;
    --dp-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    --dp-radius: 16px;
}

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    padding-bottom: 80px; /* Space for bottom navbar */
}

/* Mobile App Bar Header */
.dp-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 14px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dp-brand {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}

/* Cards & Containers */
.dp-card {
    background: var(--dp-card-bg);
    border-radius: var(--dp-radius);
    border: 1px solid var(--dp-border);
    box-shadow: var(--dp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.dp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.stat-card {
    padding: 1.25rem;
    border-radius: var(--dp-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.bg-primary-subtle-custom { background: #dbeafe; color: #1d4ed8; }
.bg-warning-subtle-custom { background: #fef3c7; color: #b45309; }
.bg-success-subtle-custom { background: #d1fae5; color: #047857; }
.bg-danger-subtle-custom { background: #fee2e2; color: #b91c1c; }

/* Status Badges */
.badge-status {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-assigned { background: #e0f2fe; color: #0369a1; }
.badge-accepted { background: #ede9fe; color: #6d28d9; }
.badge-picked_up { background: #fef3c7; color: #b45309; }
.badge-out_for_delivery { background: #dbeafe; color: #1d4ed8; }
.badge-delivered { background: #d1fae5; color: #047857; }
.badge-failed { background: #fee2e2; color: #b91c1c; }

/* Bottom Mobile Navbar */
.dp-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--dp-border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1050;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.dp-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dp-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.dp-nav-item.active {
    color: var(--dp-primary);
    font-weight: 700;
}

/* OTP Big Input Box */
.otp-input-box {
    letter-spacing: 12px;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    border: 2px solid var(--dp-primary);
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}

.otp-input-box:focus {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* Buttons */
.btn-dp-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn-dp-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-dp-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid #e2e8f0;
    margin-left: 8px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dp-primary);
    border: 2px solid #ffffff;
}

.timeline-item.active::before {
    background: var(--dp-success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
