/* Additional styles for all.php - all drivers orders view */

/* Overview button positioning */
.nav-link.overview-link {
    right: 200px;
}

/* Mobile responsive for overview button */
@media (max-width: 480px) {
    .nav-link.overview-link {
        right: 186px;
    }
}

.all-orders-container {
    max-width: 1200px;
    width: 100%;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.all-orders-container .btn-refresh {
    position: relative;
    z-index: 10;
    margin-bottom: 32px;
    padding: 16px 28px;
    min-height: 56px;
    font-size: 17px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

#all-orders-container {
    position: relative;
    z-index: 1;
}

/* Driver Section */
.driver-section {
    margin-bottom: 32px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-medium);
}

.driver-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.driver-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.driver-badge {
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Unique colors for each driver - more organic, varied shades */
.driver-badge.driver-1 {
    background: #93c5fd; /* Lightest blue */
    box-shadow: 0 2px 8px rgba(147, 197, 253, 0.3);
    color: #1e3a8a; /* Darker text for contrast */
}

.driver-badge.driver-2 {
    background: #60a5fa; /* Light blue */
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
    color: #1e3a8a; /* Darker text for contrast */
}

.driver-badge.driver-3 {
    background: #3b82f6; /* Medium blue */
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.driver-badge.driver-4 {
    background: #2563eb; /* Dark blue */
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.driver-badge.driver-5 {
    background: #1e40af; /* Darkest blue */
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

/* Dark mode adjustments for better contrast */
body.dark-mode .driver-badge.driver-1 {
    background: #3b82f6; /* Medium blue for dark mode */
    color: white;
}

body.dark-mode .driver-badge.driver-2 {
    background: #2563eb; /* Darker blue for dark mode */
    color: white;
}

body.dark-mode .driver-badge.driver-3 {
    background: #1e40af; /* Dark blue for dark mode */
    color: white;
}

body.dark-mode .driver-badge.driver-4 {
    background: #1e3a8a; /* Very dark blue for dark mode */
    color: white;
}

body.dark-mode .driver-badge.driver-5 {
    background: #1e293b; /* Darkest blue for dark mode */
    color: white;
}

.orders-count {
    background: #64748b; /* Slate gray - more subtle */
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.driver-orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* No orders message for specific driver */
.no-driver-orders {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .driver-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .driver-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .driver-section {
        padding: 16px;
    }

    .driver-title {
        font-size: 1.1rem;
    }

    .driver-badge,
    .orders-count {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}
