.car-fleet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    min-height: 200px;
}

.car {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    padding-bottom: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.car-icon {
    font-size: 2.5rem;
    color: #757575;
    transition: color 0.3s ease;
}

.car.active .car-icon {
    color: var(--primary-color);
}

.car.error .car-icon {
    color: var(--error-color);
}

.car-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 0.25rem 0.5rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 12px;
    display: none;
    white-space: nowrap;
    animation: badgeAppear 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

@keyframes badgeAppear {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.car-badge.inactive-badge {
    background-color: #9e9e9e;
    opacity: 0.7;
}

.car-badge.active-badge {
    background-color: var(--success-color);
}

.car-badge.error-badge {
    background-color: var(--error-color);
}

.car-tag {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.staff-tag {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

/* Highlight staff cars - using :has() for modern browsers */
.car:has(.staff-tag) {
    background-color: #FFF3E0;
    border: 2px solid var(--secondary-color);
}

.car:has(.staff-tag) .car-icon {
    color: var(--secondary-color);
}

/* Fallback for browsers without :has() support */
.car.staff-car {
    background-color: #FFF3E0;
    border: 2px solid var(--secondary-color);
}

.car.staff-car .car-icon {
    color: var(--secondary-color);
}

.car.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.car.fixed {
    animation: fixed 0.5s ease;
}

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

/* Fleet section styling */
.fleet-section {
    flex: 1;
    margin-right: 2rem;
}

.fleet-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* News ticker */
.news-ticker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #ffebee;
    color: var(--error-color);
    border-radius: 4px;
    margin-top: 1rem;
    animation: slideIn 0.5s ease;
}

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

.news-ticker .material-icons {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Control section */
.control-section {
    flex: 0 0 300px;
}

.sentiment-meter {
    margin-bottom: 2rem;
}

.sentiment-meter h4 {
    margin-bottom: 0.5rem;
    color: #666;
}

.sentiment-bar {
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.sentiment-fill {
    height: 100%;
    background-color: var(--success-color);
    transition: all 0.5s ease;
}

.sentiment-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

/* Rollback progress */
.rollback-progress {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff3e0;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
}

.rollback-progress p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--warning-color);
    transition: width 0.3s ease;
    width: 0;
}

.rollback-message {
    color: #666;
    font-style: italic;
}

/* Feature flag panel */
.feature-flag-panel {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-flag-panel h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.deployment-section {
    margin-bottom: 1.5rem;
}

.flag-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flag-toggle {
    margin-bottom: 1rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::after {
    transform: translateX(24px);
}

.rollout-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.rollout-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #666;
}

.rollout-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rollout-slider input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    outline: none;
}

.rollout-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.rollout-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.rollout-value {
    font-weight: 500;
    color: var(--primary-color);
    min-width: 40px;
}

/* Status messages */
.status-message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: none;
    animation: slideIn 0.3s ease;
}

.status-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-message.warning {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-message.error {
    background-color: #ffebee;
    color: #c62828;
}

.status-message.info {
    background-color: #e3f2fd;
    color: #1565c0;
}