/**
 * Car Selection Badge Styling
 * WebDirect Romania - 2025
 */

/* =========================
   DESKTOP VERSION
   ========================= */
.car-selection-header-desktop {
    padding: 20px 0;
}

.car-selection-content-autodoc {
    background: #e8f4f8;
    border-radius: 4px;
    position: relative;
    padding: 20px 24px;
    display: flex;
    align-items: stretch;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.car-selection-orange-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #ff6b00;
    border-radius: 4px 0 0 4px;
}

.car-selection-inner {
    width: 100%;
    padding-left: 20px;
}

.car-icon-wrapper-autodoc {
    flex-shrink: 0;
    margin-right: 20px;
}

.car-icon-wrapper-autodoc .icon-car_2 {
    font-size: 48px;
    color: #ff6b00;
    line-height: 1;
}

.car-title-section-autodoc {
    flex: 1;
    min-width: 0;
}

.car-title-autodoc {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
}

.car-details-autodoc {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
    line-height: 1.5;
}

.car-actions-autodoc {
    flex-shrink: 0;
    margin-left: 20px;
    gap: 12px;
    display: flex;
}

.car-actions-autodoc .btn {
    white-space: nowrap;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.car-actions-autodoc .btn-date-vehicul {
    background: transparent;
    color: #0066ff;
    border: 1px solid #0066ff;
}

.car-actions-autodoc .btn-date-vehicul:hover {
    background: #0066ff;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.car-actions-autodoc .btn-schimba {
    background: #0066ff;
    color: #fff;
    border: 1px solid #0066ff;
}

.car-actions-autodoc .btn-schimba:hover {
    background: #0052cc;
    border-color: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.car-actions-autodoc .btn i {
    font-size: 16px;
}

/* Legacy styles for backward compatibility */
.car-selection-content {
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.3s ease;
}

.car-selection-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.car-icon-wrapper {
    flex-shrink: 0;
}

.car-title-section {
    flex: 1;
    min-width: 0;
}

.car-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin: 0;
    word-wrap: break-word;
}

.car-details {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.car-actions {
    flex-shrink: 0;
    margin-left: 20px;
}

.car-actions .btn {
    white-space: nowrap;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.car-actions .btn-outline-primary {
    border-color: #0066ff;
    color: #0066ff;
}

.car-actions .btn-outline-primary:hover {
    background-color: #0066ff;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.car-actions .btn-primary {
    background-color: #0066ff;
    border-color: #0066ff;
    color: #fff;
}

.car-actions .btn-primary:hover {
    background-color: #0052cc;
    border-color: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

/* =========================
   MOBILE VERSION
   ========================= */
.car-selection-header-mobile {
    padding: 0 15px;
}

.car-selection-content-mobile {
    border: 1px solid #e5e5e5;
}

.car-title-mobile {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin: 0;
    word-wrap: break-word;
}

.car-details-mobile {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.car-selection-content,
.car-selection-content-mobile {
    animation: fadeInDown 0.3s ease-out;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
   ========================= */
@media (max-width: 991px) {
    .car-title {
        font-size: 24px;
    }
    
    .car-actions {
        flex-direction: column;
        gap: 8px;
        margin-left: 15px;
    }
    
    .car-actions .btn {
        width: 100%;
        min-width: 140px;
    }
}

@media (max-width: 991px) {
    .car-selection-content-autodoc {
        padding: 16px 20px;
    }
    
    .car-title-autodoc {
        font-size: 20px;
    }
    
    .car-actions-autodoc {
        flex-direction: column;
        gap: 8px;
        margin-left: 15px;
    }
    
    .car-actions-autodoc .btn {
        width: 100%;
        min-width: 140px;
    }
    
    .car-icon-wrapper-autodoc .icon-car_2 {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .car-selection-header-desktop {
        padding: 15px 0;
    }
    
    .car-selection-content-autodoc {
        padding: 12px 16px;
    }
    
    .car-selection-inner {
        padding-left: 12px;
    }
    
    .car-title-autodoc {
        font-size: 18px;
    }
    
    .car-details-autodoc {
        font-size: 12px;
    }
    
    .car-icon-wrapper-autodoc {
        margin-right: 12px;
    }
    
    .car-icon-wrapper-autodoc .icon-car_2 {
        font-size: 36px;
    }
    
    .car-actions-autodoc {
        margin-left: 10px;
    }
    
    .car-actions-autodoc .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* =========================
   LEGACY SUPPORT (Old Alert Styles)
   ========================= */
.alert.border-left-danger {
    border-left-width: 4px;
    border-left-style: solid;
}

.alert-info {
    background-color: #e8f4f8;
    border-color: #b8daff;
}

.fa-car {
    font-size: 1.2em;
}

.btn-outline-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
    transition: all 0.2s ease;
}

.left_product_sidebar .alert-light {
    background-color: #fef8f8;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.left_product_sidebar .alert-light small {
    line-height: 1.4;
}

