
/* ===== STICKY SIDEBAR ===== */
.sticky-sidebar {
    position: sticky;
    top: 90px;
    z-index: 100;
}

@media (max-width: 991px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
    }
}

/* ===== HEADER ===== */
.calculator-header h1 {
    color: #000000;
    text-shadow: none;
    font-size: 28px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .calculator-header h1 {
        font-size: 36px;
    }
}

.calculator-header .lead {
    color: #DC143C;
    font-weight: 600;
    font-size: 16px;
}

/* ===== VEHICLE INFO CARD ===== */
.vehicle-info-card {
    background: #ffffff;
    border: 2px solid #DC143C;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
}

.vehicle-info-card .card-body {
    background: #ffffff;
}

.vehicle-info-card h5 {
    color: #000000;
    font-weight: 700;
    font-size: 20px;
}

.vehicle-info-card h3 {
    color: #DC143C;
    font-weight: 700;
}

.vehicle-info-card .text-muted {
    color: #666666 !important;
}

/* ===== SLIDERS CARD ===== */
.sliders-card {
    background: #ffffff;
    border: 2px solid #DC143C;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sliders-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
}

.sliders-card h5 {
    color: #000000;
    font-weight: 700;
}

.sliders-card h5 i {
    color: #DC143C;
}

/* ===== CUSTOM SLIDER STYLES ===== */
.slider-group {
    background: #f8f8f8;
    padding: 1.25rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.slider-group:hover {
    border-color: #DC143C;
    box-shadow: 0 0.25rem 0.75rem rgba(220, 20, 60, 0.15);
}

.slider-group label {
    color: #000000;
    font-weight: 600;
}

.slider-group label i {
    color: #DC143C;
}

.slider-group .badge {
    background-color: #DC143C !important;
    font-size: 16px;
    font-weight: 700;
}

.custom-slider {
    height: 4px;
    margin: 1rem 0;
}

/* noUiSlider Customization */
.custom-slider .noUi-target {
    background: #d5d5d5;
    border: none;
    box-shadow: none;
    border-radius: 4px;
    height: 4px;
}

.custom-slider .noUi-connect {
    background: #DC143C;
    height: 8px;
    top: -2px;
    border-radius: 4px;
}

.custom-slider .noUi-handle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #DC143C;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: grab;
    right: -12px;
    top: -10px;
    transition: all 0.2s ease;
}

.custom-slider .noUi-handle:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(220, 20, 60, 0.4);
}

.custom-slider .noUi-handle:active {
    cursor: grabbing;
    transform: scale(1.08);
}

.custom-slider .noUi-handle:before,
.custom-slider .noUi-handle:after {
    display: none;
}

.custom-slider .noUi-horizontal {
    height: 4px;
}

/* Mobile slider optimization */
@media (max-width: 767px) {
    .custom-slider .noUi-handle {
        width: 32px;
        height: 32px;
        right: -16px;
        top: -14px;
    }

    .custom-slider .noUi-connect {
        height: 6px;
        top: -1px;
    }
}

/* ===== ALERT STYLES ===== */
.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.alert-warning {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-left: 4px solid #DC143C;
    color: #DC143C;
}

.alert-info {
    background: #f0f9ff;
    border: 1px solid #b3d9ff;
    border-left: 4px solid #DC143C;
    color: #DC143C;
}

/* ===== RESULTS SECTION ===== */
.card.shadow-lg {
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3) !important;
    border: 2px solid #DC143C;
}

.card-header.bg-danger {
    background: linear-gradient(135deg, #DC143C 0%, #a00f2e 100%) !important;
    border: none;
    border-bottom: 3px solid #8b0a24;
}

.card-header h4 {
    font-weight: 700;
}

/* ===== CALCULATION DETAILS ===== */
.calculation-details {
    font-size: 0.95rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row.highlight {
    background: rgba(220, 20, 60, 0.08);
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
}

.result-row.highlight-main {
    background: rgba(220, 20, 60, 0.15);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #DC143C;
}

.result-label {
    color: #000000;
    font-size: 15px;
    font-weight: 600;
}

.result-value {
    color: #DC143C;
    font-weight: 700;
    font-size: 18px;
}

@media (min-width: 768px) {
    .result-value {
        font-size: 20px;
    }
}

/* ===== INFO CARDS ===== */
.info-card {
    background: #ffffff;
    border: 2px solid #DC143C;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.2);
}

.info-card .card-header {
    background-color: #f8f8f8;
    border-bottom: 2px solid rgba(220, 20, 60, 0.3);
    font-weight: 700;
}

.info-card .card-header h5 {
    color: #000000;
    font-weight: 700;
    margin: 0;
}

.info-card .card-header h5 i {
    color: #DC143C;
}

.info-card .card-body {
    color: #000000;
}

/* ===== BENEFIT ITEMS ===== */
.benefit-item {
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(220, 20, 60, 0.05);
    border: 1px solid rgba(220, 20, 60, 0.1);
}

.benefit-item:hover {
    background: rgba(220, 20, 60, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.2);
}

.benefit-item h6 {
    color: #000000;
    font-weight: 700;
}

.benefit-item .text-muted {
    color: #666666 !important;
}

/* ===== TABLE STYLES ===== */
.table-hover tbody tr:hover {
    background-color: rgba(220, 20, 60, 0.05);
}

.table thead th {
    color: #000000;
    font-weight: 700;
}

.table tbody td {
    color: #000000;
}

.badge.bg-danger {
    background-color: #DC143C !important;
    font-weight: 700;
}

/* ===== LOADING SPINNER ===== */
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #DC143C;
}

.spinner-border + p {
    color: #000000;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .slider-group {
        padding: 1rem;
    }

    .result-value {
        font-size: 16px;
    }

    .benefit-item {
        margin-bottom: 0.5rem;
    }

    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .calculator-header h1 {
        font-size: 24px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-wrapper {
    animation: fadeIn 0.5s ease-in;
}

.alert-info,
.alert-sm {
    animation: slideIn 0.3s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #DC143C;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a00f2e;
}

/* ===== SMOOTH TRANSITIONS ===== */
.card, .slider-group, .benefit-item, .info-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ACCESSIBILITY ===== */
.noUi-handle:focus-visible {
    outline: 3px solid rgba(220, 20, 60, 0.5);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible {
    outline: 2px solid #DC143C;
    outline-offset: 2px;
}

/* ===== FORMULA BOX ===== */
.alert.alert-info {
    background: rgba(220, 20, 60, 0.08);
    border-left: 4px solid #DC143C;
    color: #000000;
}

.alert.alert-info small {
    color: #666666;
}

.alert.alert-info .fw-semibold {
    color: #000000;
    font-weight: 700;
}

/* ===== DISCLAIMER CARD ===== */
.bg-warning.bg-opacity-10 {
    background-color: #fff9e6 !important;
}

.border-warning {
    border-color: #DC143C !important;
}

.text-warning {
    color: #DC143C !important;
}