/* Tesla-specific additions to match InfoBric style */
.tesla-badge {
    display: inline-block;
    background: linear-gradient(135deg, #DC2626, #991B1B);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.tesla-drivers-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.tesla-drivers-section strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #00143B;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tesla-drivers-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tesla-drivers-section li {
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tesla-drivers-section li:last-child {
    border-bottom: none;
}

.tesla-drivers-section em {
    color: #9CA3AF;
    font-style: italic;
}

.tesla-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

/* Modern Tesla buttons - no emojis, clean design */
.tesla-btn {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tesla-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tesla-btn:active:not(:disabled) {
    transform: translateY(0);
}

.tesla-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tesla-btn-primary {
    background: #1B56FD;
    color: white;
}

.tesla-btn-primary:hover:not(:disabled) {
    background: #0033A0;
}

.tesla-btn-danger {
    background: #DC2626;
    color: white;
}

.tesla-btn-danger:hover:not(:disabled) {
    background: #991B1B;
}

.tesla-btn-success {
    background: #059669;
    color: white;
}

.tesla-btn-success:hover:not(:disabled) {
    background: #047857;
}

@media (max-width: 768px) {
    .tesla-actions {
        grid-template-columns: 1fr;
    }
}

/* Map placeholder */
.tesla-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(27, 86, 253, 0.05), rgba(27, 86, 253, 0.02));
    border-radius: 16px;
    border: 2px dashed rgba(27, 86, 253, 0.2);
    padding: 40px;
    text-align: center;
}

.tesla-map-placeholder svg {
    width: 80px;
    height: 80px;
    color: #1B56FD;
    margin-bottom: 20px;
    opacity: 0.6;
}

.tesla-map-placeholder p {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #6B7280;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .tesla-map-placeholder {
        min-height: 300px;
        padding: 30px;
    }
    
    .tesla-map-placeholder svg {
        width: 60px;
        height: 60px;
    }
    
    .tesla-map-placeholder p {
        font-size: 14px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    background: rgba(248, 248, 248, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(0, 20, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
}

.toast.toast-exit {
    animation: slideOutRight 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.toast-info .toast-icon {
    background: linear-gradient(135deg, #1B56FD 0%, #0D3DB8 100%);
    color: white;
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #00143B;
    margin-bottom: 4px;
}

.toast-message {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 20, 59, 0.05);
    color: #00143B;
}

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

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

@media (max-width: 768px) {
    .toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: unset;
        width: 100%;
        padding: 16px 20px;
    }
    
    .toast-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .toast-title {
        font-size: 14px;
    }
    
    .toast-message {
        font-size: 13px;
    }
}

/* =============================================
   TESLA ADMIN TOOLS (ADMIN ONLY)
   ============================================= */

.tesla-admin-tools {
    margin-top: 24px;
    padding: 24px;
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 20, 59, 0.08);
    transition: all 0.3s ease;
}

.tesla-admin-tools:hover {
    box-shadow: 0 6px 16px rgba(0, 20, 59, 0.12);
}

.admin-tools-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
}

.admin-tools-title {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #D97706;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-tools-warning {
    font-size: 18px;
    color: #F59E0B;
}

.admin-tools-description {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.tesla-admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tesla-btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.tesla-btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.tesla-btn-secondary {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: white;
}

.tesla-btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .tesla-admin-actions {
        grid-template-columns: 1fr;
    }
    
    .tesla-admin-tools {
        padding: 20px;
    }
}
