/* GuideTheDriver Custom Styles */

/* Dark Sidebar Background */
[data-kt-app-layout=dark-sidebar] .app-sidebar {
    background-color: #1a1a2e;
    border-right: 0 !important;
}

/* Primary brand color overrides */
:root {
    --kt-primary: #3b82f6;
    --kt-primary-active: #2563eb;
    --kt-primary-light: #dbeafe;
    --kt-primary-inverse: #ffffff;
}

/* Vehicle card hover effects */
.vehicle-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Price styling */
.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kt-primary);
}

.price-tag-small {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--kt-primary);
}

/* Reservation countdown */
.reservation-countdown {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 0.5rem;
    padding: 1rem;
}

.reservation-countdown.urgent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

/* AI Chat styling */
.ai-chat-container {
    max-height: 500px;
    overflow-y: auto;
}

.ai-message {
    background-color: #f3f4f6;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.ai-message.user {
    background-color: var(--kt-primary-light);
    margin-left: 2rem;
}

.ai-message.assistant {
    margin-right: 2rem;
}

/* Vehicle status badges */
.badge-available {
    background-color: #10b981;
    color: #ffffff;
}

.badge-reserved {
    background-color: #f59e0b;
    color: #ffffff;
}

.badge-sold {
    background-color: #6b7280;
    color: #ffffff;
}

.badge-pending {
    background-color: #8b5cf6;
    color: #ffffff;
}

/* Image gallery */
.vehicle-gallery {
    position: relative;
}

.vehicle-gallery-main {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.vehicle-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
}

.vehicle-gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.vehicle-gallery-thumb:hover,
.vehicle-gallery-thumb.active {
    opacity: 1;
}

/* Watchlist heart animation */
.watchlist-btn {
    transition: transform 0.2s;
}

.watchlist-btn:hover {
    transform: scale(1.1);
}

.watchlist-btn.active i {
    color: #ef4444;
}

/* Stats cards */
.stats-card {
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.stats-card .stats-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.stats-card .stats-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.stats-card .stats-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Subscription tier cards */
.tier-card {
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.tier-card:hover {
    border-color: var(--kt-primary);
    transform: translateY(-4px);
}

.tier-card.recommended {
    border-color: var(--kt-primary);
    position: relative;
}

.tier-card.recommended::before {
    content: 'Recommended';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--kt-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* UK formatting */
.uk-currency::before {
    content: '\00A3';
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vehicle-gallery-main {
        height: 250px;
    }

    .price-tag {
        font-size: 1.25rem;
    }
}
