/* ==============================================================================
   ENHANCED DRIVER SYSTEM - WORLD-CLASS STYLES
   ============================================================================== */

/* Button Enhancements */
.enhanced-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.enhanced-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.enhanced-button:active::before {
    width: 300px;
    height: 300px;
}

.button-pressed {
    transform: scale(0.95);
}

.driver-action-card.active {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Loading State */
.enhanced-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Bin Selection Modal */
.bin-selection-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bin-selection-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #10b981;
    transform: translateX(5px);
}

.bin-info h3 {
    margin: 0 0 0.5rem 0;
    color: #10b981;
    font-size: 1.2rem;
}

.bin-info p {
    margin: 0 0 0.75rem 0;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.bin-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fill-badge,
.distance-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.fill-badge {
    color: white;
}

.distance-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.selection-arrow {
    color: #10b981;
    font-size: 1.5rem;
}

/* Proximity Indicator */
.proximity-indicator {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.proximity-indicator .proximity-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Auto-Collection Notification */
.auto-collection-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    z-index: 10000;
    animation: slideInTop 0.5s ease;
    max-width: 400px;
}

@keyframes slideInTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auto-collection-notification .icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.auto-collection-notification .content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.auto-collection-notification .content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Quick Action Buttons Enhancement */
.quick-action-btn {
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.quick-action-btn:active {
    transform: translateY(-2px) scale(1.05);
}

/* Button Status Indicators */
.action-status-dot {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(107, 114, 128, 0);
    }
}

.driver-action-card.active .action-status-dot {
    background: #10b981 !important;
    animation: activeStatusPulse 2s infinite;
}

@keyframes activeStatusPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

/* Fuel Level Indicator Animation */
.fuel-bar {
    transition: width 0.5s ease, background 0.5s ease;
}

/* Issue Report Modal Enhancement */
#reportIssueModal .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
}

#reportIssueModal .form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

#reportIssueModal select.form-control {
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Pickup Badge Enhancement */
.action-badge {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* GPS Accuracy Indicator */
.gps-accuracy-indicator {
    position: fixed;
    top: 80px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #e2e8f0;
    z-index: 1000;
}

.gps-accuracy-indicator.high-accuracy {
    border: 2px solid #10b981;
}

.gps-accuracy-indicator.low-accuracy {
    border: 2px solid #f59e0b;
}

/* Auto-Collection Status Bar */
.auto-collection-status {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(124, 58, 237, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.auto-collection-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    animation: statusDotPulse 1.5s infinite;
}

@keyframes statusDotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bin-selection-card {
        padding: 1rem;
    }
    
    .auto-collection-notification {
        max-width: 90%;
        right: 5%;
    }
    
    .proximity-indicator {
        bottom: 80px;
        right: 10px;
        padding: 0.75rem 1rem;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .bin-selection-card {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .bin-selection-card:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* Accessibility */
.enhanced-button:focus-visible {
    outline: 3px solid #10b981;
    outline-offset: 2px;
}

.bin-selection-card:focus-visible {
    outline: 3px solid #10b981;
    outline-offset: 2px;
}

/* Performance Optimization */
.enhanced-button,
.bin-selection-card,
.driver-action-card {
    will-change: transform;
}

/* Loading Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

