/* Carmatch Modern Premium Theme - Refined v2 */
:root {
    --bg-dark: #0f172a;
    /* Deep Navy Background */
    --card-bg: #1e293b;
    /* Slate 800 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
    --card-bg: #000;

    --glass: rgba(30, 41, 59, 0.7);
}

/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    color: var(--text-primary);
    /* Background pattern */
    background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, var(--bg-dark) 70%);
}

/* --- Header --- */
.carmatch-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    /* Clean look */
}

/* Desktop Header Adjustments */
@media (min-width: 768px) {
    .carmatch-header {
        padding: 20px 40px;
    }
}

.carmatch-header .logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.05em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carmatch-header .logo .highlight {
    color: var(--accent);
}

.icon-btn,
.back-btn,
.likes-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.icon-btn:hover,
.back-btn:hover,
.likes-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* --- Main Card Container --- */
.carmatch-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* Vertically Center */
    justify-content: center;
    /* Horizontally Center */
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through mainly */
}

/* --- The Card --- */
.tinder-card {
    position: absolute;
    /* Stack on top of each other */
    width: 90%;
    /* Mobile width */
    max-width: 380px;
    /* Reduced height to fit with bottom nav */
    height: 68vh;
    min-height: 450px;
    max-height: 650px;
    background: #000;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;

    transform-origin: 50% 100%;
    will-change: transform, opacity;
    cursor: grab;
    pointer-events: auto;

    /* Re-enable clicks */

    /* Remove any top/left causing offset, let flexbox center it */
    top: auto;
    left: auto;
    transform: none;
}

.tinder-card:active {
    cursor: grabbing;
}

.tinder-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.tinder-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.tinder-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    color: white;
}

/* Content Styling */
.tinder-card h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin: 0;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tinder-card .price-badge {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 10px;
}

.tinder-card .location {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Specs Grid - Clean & Minimal */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    backdrop-filter: blur(4px);
}

.spec-item i {
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.damage-badge {
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.damage-badge.warning {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.damage-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* --- Action Buttons --- */
.carmatch-actions {
    position: fixed;
    /* Increased bottom spacing to clear the mobile navigation bar (approx 80px height) */
    bottom: 100px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 100;
    pointer-events: none;
    padding-bottom: 0;
}

/* Adjust the container to shift visual center up */
.carmatch-container {
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .carmatch-container {
        position: relative;
        height: 600px;
        width: 100%;
        max-width: 400px;
        margin: 100px auto;
        /* Center on desktop */
    }

    .tinder-card {
        height: 100%;
        width: 100%;
        position: absolute;
    }

    .carmatch-actions {
        position: absolute;
        bottom: 20px;
        width: 100%;
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Web Layout Adjustments */
    body {
        overflow: auto;
        /* Allow scrolling on web */
        min-height: 100vh;
        background-color: #f1f5f9;
        /* Light bg for web */
        background-image: none;
    }

    .carmatch-header {
        position: relative;
        background: #0f172a;
        margin-bottom: 20px;
    }
}

.action-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn.dislike {
    background: #202020;
    color: #ef4444;
}

.action-btn.superlike {
    width: 50px;
    height: 50px;
    background: #202020;
    color: #3b82f6;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.action-btn.like {
    background: #202020;
    /* Dark gradient or solid like Tinder */
    background: linear-gradient(45deg, #10b981, #059669);
    /* Green for like */
    color: white;
    width: 70px;
    height: 70px;
    font-size: 2rem;
}

.action-btn.dislike {
    background: #202020;
    color: #ef4444;
    width: 70px;
    height: 70px;
    font-size: 2rem;
}

.action-btn.superlike {
    background: #202020;
    color: #3b82f6;
}

/* Specific styling to match the reference image better */
.carmatch-actions {
    /* Removed padding-bottom and gradient as position is now handled by 'bottom' property */
    background: transparent;
}

.action-btn {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn.like {
    color: #4ade80;
    /* Bright Green */
}

.action-btn.dislike {
    color: #f87171;
    /* Bright Red */
}

.action-btn.superlike {
    color: #60a5fa;
    /* Blue */
}


/* --- Status Badges (Stamps) --- */
.status-badge {
    position: absolute;
    top: 40px;
    padding: 10px 20px;
    border: 4px solid;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    z-index: 20;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.status-badge.like {
    left: 40px;
    color: var(--success);
    border-color: var(--success);
    transform: rotate(-15deg);
    background: rgba(0, 0, 0, 0.4);
}

.status-badge.nope {
    right: 40px;
    color: var(--danger);
    border-color: var(--danger);
    transform: rotate(15deg);
    background: rgba(0, 0, 0, 0.4);
}

.status-badge.superlike {
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
    top: 50%;
    font-size: 1.5rem;
}

/* --- Vehicle Details Overlay --- */
.vehicle-details-overlay {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 85vh;
    background: #0f172a;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    z-index: 4000;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vehicle-details-overlay.active {
    bottom: 0;
}

.vehicle-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vehicle-details-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.vehicle-details-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.vehicle-details-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.details-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.details-spec-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.details-spec-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
}

.details-spec-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

/* Info button on card */
.info-btn {
    position: absolute;
    bottom: 25px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* --- Filter Modal (Fixed State) --- */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-modal.active {
    opacity: 1;
    visibility: visible;
}

.filter-content {
    width: 90%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.filter-modal.active .filter-content {
    transform: scale(1);
}

/* Filter Styles */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
}

.filter-header button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 5px;
}

.filter-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.range-inputs {
    display: flex;
    gap: 12px;
}

.range-inputs input,
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.range-inputs input:focus,
select:focus {
    border-color: var(--accent);
}

.full-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.full-btn:hover {
    background: #2563eb;
}

/* Loading & Empty States */
.no-more-cars,
.loading-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.no-more-cars .icon {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-more-cars h3 {
    font-size: 1.5rem;
    margin: 0 0 8px 0;
}

.no-more-cars p {
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #000;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 200;
    padding-bottom: 20px;
    /* Safe area for modern phones */
    padding-top: 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    gap: 6px;
    width: 100%;
    height: 100%;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.nav-item i {
    font-size: 1.4rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-item.active {
    color: var(--accent);
    opacity: 1;
}

.nav-item.active i {
    transform: translateY(-2px) scale(1.1);
    /* For "Kaydır" specifically, maybe orange/red */
}

.nav-item:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* Specific Active Colors */
.nav-item[href*="carmatch.php"].active {
    color: #ef4444;
    /* Fire Red */
}

.nav-item[href*="gallery.php"].active {
    color: #fbbf24;
    /* Amber/Gold */
}

.nav-item[href*="favorites.php"].active {
    color: #10b981;
    /* Green */
}

.nav-item[href*="admin.html?tab=inquiries"].active {
    color: #3b82f6;
    /* Blue */
}

.nav-item[href*="admin.html"].active {
    color: #a855f7;
    /* Purple */
}

/* Upload Button Special Style (Optional, if we want it to pop) */
.nav-item.upload-btn {
    position: relative;
    top: -20px;
    background: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
    border: 4px solid var(--bg-dark);
}

.nav-item.upload-btn i {
    font-size: 1.2rem;
}

.nav-item.upload-btn span {
    display: none;
}

/* Sohbet Nav Active Color */
.nav-item#nav-sohbet.active,
.nav-item#nav-sohbet:hover {
    color: #f97316;
}

/* ===========================
   CARMATCH CHAT OVERLAY
   =========================== */
.carmatch-chat-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carmatch-chat-overlay.active {
    opacity: 1;
}

.carmatch-chat-window {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.carmatch-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.carmatch-chat-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.carmatch-chat-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.carmatch-chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.carmatch-chat-online {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid #0f172a;
}

.carmatch-chat-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.carmatch-chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #ea580c;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.carmatch-chat-pulse {
    width: 6px;
    height: 6px;
    background: #ea580c;
    border-radius: 50%;
    animation: pulse-chat 2s ease-in-out infinite;
}

@keyframes pulse-chat {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.carmatch-chat-header button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carmatch-chat-header button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.carmatch-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.carmatch-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.carmatch-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: msgIn 0.3s ease;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
}

.chat-msg .bubble {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.55;
    word-wrap: break-word;
}

.chat-msg.bot .bubble {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border-bottom-left-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-msg.user .bubble {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: white;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.25);
}

.liked-cars-card {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.liked-car-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 88, 12, 0.12);
    border: 1px solid rgba(234, 88, 12, 0.2);
    color: #fb923c;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.liked-car-chip i {
    font-size: 0.7rem;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    max-width: 120px;
}

.chat-typing .dot {
    width: 7px;
    height: 7px;
    background: #ea580c;
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.chat-typing .dot:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing .dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingDot {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.carmatch-chat-input-area {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.carmatch-chat-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px 8px 6px 18px;
}

.carmatch-chat-input-box input {
    flex: 1;
    background: none;
    border: none;
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    padding: 10px 0;
}

.carmatch-chat-input-box input::placeholder {
    color: #475569;
    font-weight: 500;
}

.carmatch-chat-input-box button {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ea580c, #f97316);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.carmatch-chat-input-box button:hover {
    transform: scale(1.05);
}

.carmatch-chat-input-box button:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .carmatch-chat-window {
        max-width: 450px;
        height: 90vh;
        margin-top: 5vh;
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }
}