/* CarValuBD Custom Styles */

/* Print styles for valuation report */
@media print {
    nav, footer, .btn-primary, .btn-accent, .btn-outline, button, .no-print { display: none !important; }
    body { background: white !important; }
    .card, [class*="shadow"] { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
    canvas { max-height: 300px; }
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Image placeholder */
.car-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Animated skeleton loading */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e40af;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(30,64,175,0.3);
    transition: transform 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Number input arrows hidden */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Transition utilities */
.transition-all { transition: all 0.2s ease; }

/* Card hover effects */
.card:hover { transform: translateY(-1px); }

/* Score gauge */
.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

/* Badge colors */
.badge-buy   { background:#dcfce7; color:#166534; padding:2px 8px; border-radius:999px; font-weight:700; }
.badge-avoid { background:#fee2e2; color:#991b1b; padding:2px 8px; border-radius:999px; font-weight:700; }
.badge-neg   { background:#fef9c3; color:#854d0e; padding:2px 8px; border-radius:999px; font-weight:700; }

/* Active nav link */
.nav-link.active {
    color: #1e40af;
    border-bottom: 2px solid #1e40af;
}

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

/* Mobile filter panel */
@media (max-width: 1023px) {
    .filter-sidebar { display: none; }
    .filter-sidebar.open { display: block; }
}

/* Sticky booking card */
@media (min-width: 1024px) {
    .booking-card-sticky { position: sticky; top: 5rem; }
}
