/* Saved Cars Button */
.saved-cars-trigger {
    border: 2px solid #dc3545;
    transition: all 0.3s ease;
}

.saved-cars-trigger:hover:not(:disabled) {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.saved-cars-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal Customization */
#savedCarsModal .modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-bottom: none;
}

#savedCarsModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1050;
}

#savedCarsModal .modal-body {
    position: relative;
    z-index: 1051;
}

/* Saved Cars List */
.saved-cars-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    position: relative;
    z-index: 1052;
}

.saved-car-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer !important;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    text-align: left;
    outline: none;
    z-index: 1053;
    pointer-events: auto !important;
}

.saved-car-item:hover:not(:disabled) {
    border-color: #dc3545;
    background-color: #fff5f5;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.saved-car-item:active:not(:disabled) {
    transform: translateX(3px) scale(0.98);
}

.saved-car-item:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.car-info {
    flex: 1;
}

.car-brand {
    font-size: 18px;
    margin-bottom: 8px;
    color: #212529;
}

.car-brand strong {
    font-weight: 600;
}

.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #6c757d;
}

.car-details > span {
    display: inline-flex;
    align-items: center;
}

.car-model {
    font-weight: 500;
    color: #495057;
}

.car-action {
    margin-left: 16px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.saved-car-item:hover .car-action {
    transform: translateX(5px);
}

/* Loading State */
.saved-car-item[wire\:loading\.attr="disabled"] {
    opacity: 0.6;
    pointer-events: none;
}

.saved-car-item.opacity-50 {
    opacity: 0.5 !important;
    pointer-events: none;
}

.saved-car-item[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
#savedCarsModal .fa-car.fa-3x {
    opacity: 0.3;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    #savedCarsModal .modal-dialog {
        margin: 10px;
    }

    .saved-cars-trigger {
        font-size: 14px;
        padding: 12px 16px;
    }

    .saved-car-item {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .car-brand {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .car-details {
        font-size: 13px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    .car-action {
        align-self: flex-end;
        margin-left: 0;
        margin-top: 8px;
    }

    .saved-cars-list {
        max-height: 300px;
    }
}

/* Custom Scrollbar for Cars List */
.saved-cars-list::-webkit-scrollbar {
    width: 8px;
}

.saved-cars-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.saved-cars-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.saved-cars-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

