:root {
    /* --bg: white;
    --bg-hover: #e2e2e2;
    --bg-secondary: #e2e2e2;
    --bg-third: #a1a1a1;
    --bg-highlight: #00427b;
    --bg-button: #00427b;
    --bg-blur: rgba(255, 255, 255, 0.5);
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-text: rgb(0, 66, 123);
    --text-button: rgba(255, 255, 255, 1); */
    --bg: #e5e5e5;
    --bg-hover: #cecece;
    --bg-secondary: #cecece;
    --bg-third: #a1a1a1;
    --bg-highlight: #00427b;
    --bg-button: #00427b;
    --bg-blur: rgba(255, 255, 255, 0.5);
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-bg-thick: rgba(255, 255, 255, 0.9);
    --card-text: rgb(0, 66, 123);
    --text-button: rgba(255, 255, 255, 1);
    --hover2: rgba(0, 0, 0, 0.05);
    --safe-area-inset-top: 0px;
    --safe-area-inset-bottom: 0px;
    --safe-area-inset-left: 0px;
    --safe-area-inset-right: 0px;
    --card-min-width: 245px;
}


[data-theme="dark"] {
    /* --bg: black;
    --bg-hover: #5e5e5e;
    --bg-secondary: #5e5e5e;
    --bg-third: #1a1a1a;
    --bg-highlight: #c3003d;
    --bg-button: #00427b;
    --bg-blur: rgba(25, 25, 25, 0.6);
    --card-bg: rgba(0, 0, 0, 0.75);
    --card-text: rgba(255, 255, 255, 0.75);
    --text-button: rgba(255, 255, 255, 1); */
    --bg: #1c1c1c;
    --bg-hover: #4b4b4b;
    --bg-secondary: #606060;
    --bg-third: #1a1a1a;
    --bg-highlight: #c3003d;
    --bg-button: #00427b;
    --bg-blur: rgba(25, 25, 25, 0.5);
    --card-bg: rgba(25, 25, 25, 0.5);
    --card-bg-thick: rgba(25, 25, 25, 0.9);
    --card-text: rgba(255, 255, 255, 0.75);
    --text-button: rgba(255, 255, 255, 1);
    --hover2: rgba(170, 170, 170, .05);
    
}

button, 
.icon-button, 
.toolbar-button, 
.profile-button, 
.toggle-button, 
.input-button, 
.search-button, 
.import-button {
    outline: none; /* Removes focus outline */
    -webkit-tap-highlight-color: transparent; /* Disables iOS tap highlight */
    -webkit-user-select: none; /* Prevents selection */
    -webkit-touch-callout: none; /* Disables long-press menu */
    user-select: none; /* Disables text selection */
}

.hidden {
    display: none;
}

body {
    padding: var(--safe-area-inset-top) var(--safe-area-inset-right) 
            var(--safe-area-inset-bottom) var(--safe-area-inset-left);
}


body {
    margin: 0;
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
    background: url("assets/background-00427b-dark.webp");
    background-size: cover;
    background-position-x: left;
    background-position-y: bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

body.no-scroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100vw;
    touch-action: none;
    overscroll-behavior: none;
}



.top-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s cubic-bezier(0.65, 0.05, 0.4, 1), background-color 0.3s cubic-bezier(0.65, 0.05, 0.4, 1);
    z-index: 1000;
}


.blurred-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 999;
    transition: height 0.35s cubic-bezier(0.65, 0.05, 0.4, 1), backdrop-filter 0.35s cubic-bezier(0.65, 0.05, 0.4, 1), background-color 0.35s cubic-bezier(0.65, 0.05, 0.4, 1), box-shadow 0.35s cubic-bezier(0.65, 0.05, 0.4, 1), border 0.35s cubic-bezier(0.65, 0.05, 0.4, 1);
    overflow: hidden;
}

.blurred-background.scrolled {
    height: 60px;
    background: var(--bg-blur);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}


.top-bar-icon {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    height: 80px;
    transition: height 0.35s cubic-bezier(0.65, 0.05, 0.4, 1);
}



.top-bar-icon.scrolled {
    height: 65px;
    filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.3))
}


.content {
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    margin-bottom: 50px;
}



.left-icon {
    position: absolute;
    left: 20px;
    top: 15px;
    z-index: 999
}


.icon-group {
    display: flex;
    gap: 10px;
    position: absolute;
    right: 20px;
    top: 15px;
}


.icon-svg {
    height: 28px;
    width: 28px;
}


.icon-button {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border-radius: 50%;
    /* border: solid 2px var(--card-text); */
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.1s cubic-bezier(0.65, 0.05, 0.4, 1.0) , background-color 0.3s cubic-bezier(0.65, 0.05, 0.4, 1.0);
    color: var(--card-text);
}

.icon-button.blurred-background.scrolled {
    box-shadow: 0px 0px 15px 1px rgba(255, 255, 255, 0.1);
}


.icon-button:hover {
    transform: scale(1.05);
}

.icon-button:active {
    transform: scale(0.75);
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; 
    text-align: center;
    margin-top: 100px;
    margin-inline: 27.5px;
}

.toolbar-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 30px;
    margin-block: 5px;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 40px;
    max-height: 40px;
    overflow: hidden;
}

/* Background element that moves */
.toolbar-container::before {
    content: "";
    position: absolute;
    width: 50%;
    height: 36px;
    background: var(--bg-highlight);
    border-radius: 25px;
    transition: transform 0.2s cubic-bezier(0.65, 0.05, 0.4, 1.5), background-color 0.3s cubic-bezier(0.65, 0.05, 0.4, 1);
    left: 2.5px;
}

/* Move background based on active button */
.toolbar-container:has(.switch-button:nth-child(1).active)::before {
    transform: translateX(calc(0%)); /* Adjust based on layout */
    background: #00427b;
}

.toolbar-container:has(.switch-button:nth-child(2).active)::before {
    transform: translateX(calc(100% - 5px)); /* Align second button precisely */
    background: #c3003d;
}

.toolbar-button {
    min-width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.1s cubic-bezier(0.65, 0.05, 0.4, 1.0) , background-color 0.3s cubic-bezier(0.65, 0.05, 0.4, 1.0);
    color: var(--card-text);
}


.toolbar-button:hover {
    transform: scale(1.05);
}

.toolbar-button:active {
    transform: scale(0.75);
}

.toolbar-button.active-selection {
    background-color: #2196f3;   /* Example: blue background */
    color: white;                /* Example: white icon */
    /* Add any more styles you want */
}

.toolbar-button.upload-ready {
    background-color: #ffbf00;    /* Bright green background */
    color: #000000;               /* Dark green for the icon */
}

#upload-select-cars-btn:not(.upload-ready) {
    color: #8e8e8e;               /* Icon color */
    pointer-events: none;
}



/* Ensure text is above background */
.switch-button {
    position: relative;
    flex: 1;
    height: 45px;
    color: var(--card-text);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
    border-radius: 25px;
    z-index: 2;
}

/* Change text color when active */
.switch-button.active {
    color: white;
}


.hidden-cars {
    display: none !important;
}



.vehicle-cards {
    padding-inline: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
    gap: 30px;
    margin-top: 10px;
    margin-bottom: 100px;
    justify-content: center;
    /* Centers items when there’s extra space */
}

.card {
    background: var(--card-bg);
    box-shadow: 0px 5px 15px 7.5px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 35px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s, background-color 0.3s;
    transform: scale(0.95);
    cursor: pointer;

}


.card:hover {
    transform: scale(1);
    box-shadow: 0px 0px 15px 7.5px #ffffff3f;
}


.card-text {
    padding-top: 15px;
    padding-bottom: 7.5px;
    padding-inline: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--card-text);
}


.card-text p {
    font-size: .85rem;
    line-height: 1rem;
    margin-block: 0px;

}


.card-text .vin {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    font-family: monospace;
}


.card-text .model-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
}

.upload-timestamp {
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}


.card-image {
    width: 100%;
    overflow: hidden;
}


.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.delete-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #c3003d;  /* Red circle background */
    border: none;
    cursor: pointer;
    padding: 8px;         /* Increases the clickable area */
    border-radius: 50%;   /* Makes it a circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn svg {
    display: block;
    color: white;
}

/* Check button styling */
.check-btn {
    position: absolute;
    bottom: 12px;
    right: 60px;
    /* Adjust spacing as needed */
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-btn svg {
    display: block;
}

/* Upload button styling (appears only if readyToUpload is true) */
.upload-btn {
    position: absolute;
    bottom: 8px;
    left: 8px;
    /* Positioned in the bottom left corner */
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00427b;
    border: solid 2px #ffbf00;
}

.upload-btn svg {
    display: block;
    color: white;
}

/* Loading overlay for upload process */
.upload-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4fff00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* Cards in selection mode that are not selectable (i.e. not readyToUpload) */
.card.not-selectable {
    filter: brightness(0.5);
    pointer-events: none;
}

.selectable-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px dashed #ffbf00;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Ensure the checkmark overlay appears above the darkening effect */
.select-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: #ffbf00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    overflow: hidden;
}

.select-overlay svg {
    width: 100px;
    height: 100px;
    color: white;
}



.hide-search-section {
    display: none !important;
}


.modal {
    position: absolute;
    top: 65px;
    left: 20px;
    background: var(--bg);
    color: var(--card-text);
    border-radius: 12.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0px 5px 15px 7.5px rgba(0, 0, 0, 0.2);
}

/* Show when modal is open */
.modal-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* Fullscreen blurred background when modal is open */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay */
    backdrop-filter: blur(10px); /* Blurred effect */
    -webkit-backdrop-filter: blur(10px);
    z-index: 99; /* Below modal */
    opacity: 0;
    pointer-events: none; /* Prevent interactions when hidden */
    transition: opacity 0.3s cubic-bezier(0.65, 0.05, 0.4, 1);
}

.modal-options {
    list-style: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


.modal-options li {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #00427b28;
    transition: background-color 0.3s ease;
}


.modal-options li:hover {
    background-color: var(--bg-hover);
}



.modal-options li:last-child {
    border-bottom: none;
}


.modal-icon {
    display: flex;
    align-items: center;
    margin-right: 8px;
}


.modal-text {
    font-size: 1.25rem;
    padding-inline: 15px;
}

.color-selector {
    display: flex;
    gap: 10px;
}

.color-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--bg-blur);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s cubic-bezier(0.65, 0.05, 0.4, 1);
}

.yellow { background-color: #ffbf00; }
.blue { background-color: #00427b; }
.grey { background-color: #547392; }
.red { background-color: #c3003d; }
.green { background-color: #4fff00 }

.color-circle:active {
    transform: scale(0.85);
}

.color-circle:hover {
    box-shadow: 0px 0px 20px 5px rgba(255, 255, 255, 0.3);
}


.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    z-index: 2000;
    transition: opacity 0.3s cubic-bezier(0.65, 0.05, 0.4, 1);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;

}

/* Show when active */
.settings-overlay.visible {
    opacity: 1;
    pointer-events: all;
    overflow: hidden;
}

/* Centered settings sheet with proper scrolling */
.settings-sheet {
    width: 95vw;
    max-width: 500px;
    max-height: 95vh;
    background: var(--bg);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.4, 1), opacity 0.3s cubic-bezier(0.65, 0.05, 0.4, 1), background-color 0.1s cubic-bezier(0.65, 0.05, 0.4, 1);
    transform: translate(-50%, -50%) scale(0.9);
  
    /* Zentrierung */
    position: fixed;
    top: 50%;
    left: 50%;
    overflow: hidden;
}

.settings-overlay.visible .settings-sheet {
    transform: translate(-50%, -50%) scale(0.9);
}

.settings-header {
    position: sticky;
    top: 0px;
    background: var(--bg);
    z-index: 10;
    padding: 10px;
    box-shadow: 0px 50px 50px var(--hover2);
}

.settings-header h2 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 200;
    color: var(--card-text);
    padding-top: 10px;
    padding-left: 15px;
}

.profile-button {
    display: flex;
    justify-content: center;
    width: 100%;
    background: var(--bg-button);
    color: var(--text-button);
    border: none;
    cursor: pointer;
    border-radius: 50px;
    padding: 7.5px;
    font-size: 1.25rem;
    text-align: center;
    font-weight: bold;
    transition: transform 0.1s cubic-bezier(0.65, 0.05, 0.4, 1);
}

/* Hover & Click Effects */
.profile-button:hover {
    transform: scale(1.01);
}

.profile-button:active {
    transform: scale(0.97);
}


/* Body */
.settings-body {
    padding: 10px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

/* Sections */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 7.5px;
}

.settings-section h3 {
    margin: 5px 0 5px 0;
    font-size: 1.5rem;
    color: var(--card-text);
    font-weight: 200;
}

.info-text {
    margin: 0;
    font-size: .85rem;
    color: #666;
}

/* Toggle Buttons */
.toggle-group {
    display: flex;
    gap: 10px;
}

/* Toggle Button Styling */
.toggle-button {
    flex: 1;
    background: var(--bg-secondary);
    border: none;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.25rem;
    text-align: center;
    color: var(--card-text);
    position: relative;
    transition: transform 0.1s cubic-bezier(0.65, 0.05, 0.4, 1), background-color 0.1s cubic-bezier(0.65, 0.05, 0.4, 1);
}

/* Hover & Click Effects */
.toggle-button:hover {
    transform: scale(1.025);
}

.toggle-button:active {
    transform: scale(0.95);
}

/* Active State */
.toggle-button.active {
    background: var(--bg-button);
    color: var(--text-button);
    font-weight: bold;
}

/* Ensure Checkmark Only Appears on Active Buttons */
.toggle-button .corner-label {
    display: none;
}

.toggle-button.active .corner-label {
    display: flex;
}

.corner-label {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #a3c100; /* Green background */
    color: white;
    font-size: 10px;
    height: 30px;
    width: 50px;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    border-top-right-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Adjust SVG size inside the label */
.corner-label svg {
    position: absolute;
    right: 5px;
    top: 2px;
    width: 16px;
    height: 16px;
}


/* Font Size Control */
.font-size-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-button {
    background: var(--bg-button);
    color: var(--text-button);
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    font-size: 18px;
}

.font-button {
    width: 40px;
    height: 40px;
    background: var(--bg-button);
    color: var(--text-button);
    border: none;
    cursor: pointer;
    border-radius: 50%;      /* This makes it a circle! */
    font-size: 1.5rem;       /* Nice big + / − */
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-size-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--card-text);
}


.theme-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Adjust spacing between elements */
    flex-wrap: wrap;
}




/* Hide the actual checkbox */
.hidden-checkbox {
    display: none;
}

/* Input Button (same styling as toggle-button) */
.input-button {
    flex: 1;
    background: var(--bg-secondary);
    border: none;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.25rem;
    text-align: center;
    color: var(--card-text);
    position: relative;
    transition: transform 0.1s cubic-bezier(0.65, 0.05, 0.4, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: normal;
    min-width: 60px;
}

/* Hover & Click Effects */
.input-button:hover {
    transform: scale(1.025);
}

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

/* Checked State - When Checkbox is Selected */
.hidden-checkbox:checked ~ .input-button {
    background: var(--bg-button);
    color: var(--text-button);
}

/* Corner Label - Hidden by Default */
.input-corner-label {
    display: none;
}

/* Show Corner Label When Checked */
.hidden-checkbox:checked ~ .input-button .input-corner-label {
    display: flex;
}

/* Ensure the corner label is shown when dark mode is active */
[data-theme="dark"] .input-button {
    display: flex !important;
    display: flex !important;
    background: var(--bg-button);
    font-weight: bold;
    color: var(--text-button);
}

[data-theme="dark"] .input-corner-label {
    display: flex !important;
}

/* Corner Label Styling */
.input-corner-label {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #a3c100; /* Green background */
    color: white;
    font-size: 10px;
    height: 30px;
    width: 50px;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    border-top-right-radius: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Adjust SVG size inside the label */
.input-corner-label svg {
    position: absolute;
    right: 5px;
    top: 2px;
    width: 16px;
    height: 16px;
}


/* Car selection */
.car-select-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--bg-highlight);
    display: none;
    cursor: pointer;
    transition: background-color 0.3s cubic-bezier(0.65, 0.05, 0.4, 1), transform 0.3s cubic-bezier(0.65, 0.05, 0.4, 1);
}

.show-selection .car-select-circle {
    display: block;
}

.card.selected .car-select-circle {
    background-color: var(--bg-highlight);
}





/* Add Car Styling */

.input-field {
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 7.5px;
    font-size: 1.25rem;
    color: var(--card-text);
    background-color: var(--bg-secondary);
    transition: background-color 0.3s cubic-bezier(0.65, 0.05, 0.4, 1), border 0.3s cubic-bezier(0.65, 0.05, 0.4, 1);
}

.input-field:focus {
    border: 2px solid var(--bg-highlight);
    outline: none;
}

/* When input is not empty */
.input-field.filled {
    border: 2px solid var(--bg-button);
    background: var(--bg-button);
    color: var(--text-button);
}

/* 🎨 Always keep picker styled */
.picker {
    padding: 10px;
    border-radius: 7.5px;
    font-size: 1.25rem;
    background: var(--bg-button);  /* Always bg-button */
    color: var(--text-button);  /* Ensure contrast */
    border: none;
    appearance: none; /* Hide default browser styles */
    cursor: pointer;
    transition: background-color 0.3s cubic-bezier(0.65, 0.05, 0.4, 1);
}

/* Optional: Add hover effect */
.picker:hover {
    filter: brightness(1.1);
}

/* Center and style the Search Button */
.search-button {
    display: flex;
    justify-content: center;
    width: 100%;
    background: var(--bg-secondary);
    color: var(--card-text);
    border: none;
    cursor: pointer;
    border-radius: 7.5px;
    padding: 15px;
    font-size: 1.25rem;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s cubic-bezier(0.65, 0.05, 0.4, 1), color 0.3s cubic-bezier(0.65, 0.05, 0.4, 1);
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* Active state when input is filled */
.search-button.active {
    background: var(--bg-button);
    color: var(--text-button);
    cursor: pointer;
    opacity: 1;
    pointer-events: all;
}




/* Search Styles */

/* Centered settings sheet with proper scrolling */
.search-sheet {
    width: 95vw;
    max-height: 95vh;
    background: var(--bg);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.4, 1), opacity 0.3s cubic-bezier(0.65, 0.05, 0.4, 1), background-color 0.1s cubic-bezier(0.65, 0.05, 0.4, 1);
    transform: translate(-50%, -50%) scale(0.9);
  
    /* Zentrierung */
    position: fixed;
    top: 50%;
    left: 50%;
    overflow: hidden;
}


.search-body {
    padding: 5px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: scroll;
    scroll-behavior: smooth;
}



/* Search Results Section */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Car Card Styling */
.car-card {
    background: transparent;
    color: var(--card-text);
    padding: 15px;
    transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.4, 1);
    border-block: 5px dotted var(--bg-highlight);
}

/* Styling the text inside the card */
.car-card p {
    margin: 10px 0;
    font-size: 1.15rem;
}


.import-button {
    display: flex;
    justify-content: center;
    width: 100%;
    background: var(--bg-button);
    color: var(--text-button);
    border: none;
    cursor: pointer;
    border-radius: 7.5px;
    padding: 7.5px;
    margin-block: 10px;
    font-size: 1.25rem;
    text-align: center;
    font-weight: bold;
    transition: transform 0.1s cubic-bezier(0.65, 0.05, 0.4, 1);
}

/* Hover & Click Effects */
.import-button:hover {
    transform: scale(1.01);
}

.import-button:active {
    transform: scale(0.97);
}

