﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Scrollbar gizlemek için */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Tam sayfa arkaplan */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}

section{
    zoom: 0.9
}

/* 1024px'den itibaren laptop ekranlar için zoom azalt */
@media (min-width: 1024px) and (max-width: 1919px) {
    section {
        zoom: 0.80; /* Laptop'ta daha küçük */
    }
}

@media (max-width: 1279px) {
    .form-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.hero-image {
    position: fixed;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    background: url("/src/image/image.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 58%;
    flex-shrink: 0;
    z-index: -1;
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}


.car-card {
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0.3rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease-in-out;
}

    .car-card.selected {
        border-color: #30b0c7;
    }

/* ImageUploadForm Component Styles */

.camera-option:hover {
    border-color: #088ab2;
    box-shadow: 0 4px 12px rgba(8, 138, 178, 0.1);
    transform: translateY(-1px);
}

.upload-area:hover {
    border-color: #088ab2;
    background: #f8fcfd;
    transform: translateY(-1px);
}

.form-input:focus-within {
    border-color: #088ab2;
    box-shadow: 0 0 0 3px rgba(8, 138, 178, 0.1);
}

.form-select:hover {
    border-color: #088ab2;
    transform: translateY(-1px);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background-color: #f9fafb;
    }

    .dropdown-item.selected {
        background-color: #088ab2;
        color: white;
    }

        .dropdown-item.selected:hover {
            background-color: #0776a0;
        }

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #088ab2;
    margin-top: 10px;
    image-orientation: from-image;
    object-fit: cover;
}

.drag-over {
    border-color: #088ab2 !important;
    background: #f0f9ff !important;
}

.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none; /* Varsayılan olarak gizli */
}

    .camera-modal.active {
        display: flex; /* Active olduğunda göster */
    }

.camera-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.camera-video {
    width: 100%;
    height: auto;
    max-width: 640px;
    max-height: 480px;
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
}

.camera-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 14px;
}

.upload-area.drag-over {
    border-color: #088ab2 !important;
    background: #f0f9ff !important;
}

.camera-btn.capture {
    background: #088ab2;
    color: white;
}

    .camera-btn.capture:hover {
        background: #0776a0;
    }

.camera-btn.close {
    background: #ef4444;
    color: white;
}

    .camera-btn.close:hover {
        background: #dc2626;
    }

.carousel-scroll {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

    .carousel-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    /* Child elementlerin küçülmesini engelle */
    .carousel-scroll > :global(*) {
        flex: 0 0 auto;
    }