/* 
   GLOBAL & RESET 
   ========================================================================== */
:root {
    --primary: #1a2b49;      /* Hemsidans mörkblå */
    --accent: #2c5aa0;       /* Hemsidans accentblå */
    --bg: #f5f7fa;
    --text: #1a1a1a;
    --surface: #ffffff;
    --border: #e1e4e8;
    --green: #28a745;
    --danger: #d32f2f;
    --finance: #e65100;
    --plate-blue: #003399;
}

/* --- AUCTION STYLES --- */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.auction-card {
    
    cursor: grab; 
}
.auction-card:active {
    cursor: grabbing;
}
.auction-card.dragging {
    opacity: 0.4;
    border: 2px dashed #999;
    transform: scale(0.95);
}
.auction-card.drag-over {
    border-left: 5px solid #2563eb;
    background: #f0f9ff;
}

.auction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Röda deadline-indikatorer */
.auction-card.expired {
    border: 3px solid #ef4444;
}

/* Blå skrap-indikator */
.auction-card.hit {
    border: 3px solid #2563eb;
}

/* Om både expired och hit - kombinera? Prioritera hit (blå) eller ha två ramar? 
   Låt oss göra så att om båda finns, vinner HIT */
.auction-card.expired.hit {
    border-color: #2563eb; 
    box-shadow: 0 0 0 3px #ef4444; /* Dubbel ram effekt */
}

.auction-status {
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    padding: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auction-logo-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
    cursor: pointer;
}

.auction-logo {
    max-width: 80%;
    max-height: 80px;
    object-fit: contain; /* Ser till att alla bilder får plats snyggt */
    width: auto;
    height: auto;
}

.auction-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f9fafb;
    border-top: 1px solid #eee;
}

.auction-gear {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.auction-gear:hover { opacity: 1; }

/* --- TASK MANAGER MODERN STYLES --- */
.task-header {
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    border-bottom: 1px solid #e5e7eb;
    padding: 25px 25px 0 25px;
}

.task-tabs-row {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.task-tab {
    background: none;
    border: none;
    padding-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #9ca3af; /* Grå text normalt */
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.task-tab:hover { color: #374151; }

.task-tab.active {
    color: #2563eb; /* Blå text aktiv */
    border-bottom-color: #2563eb;
}

/* INPUT FÄLT */
.task-input-wrapper {
    display: flex; 
    gap: 12px; 
    margin-bottom: 25px;
    background: #fff;
    padding: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.task-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

#new-task-input {
    flex: 1;
    padding: 12px 15px;
    border: none !important;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.btn-add-task {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-add-task:hover { background: #1d4ed8; }

/* AKTIV RAD (Att göra) */
.task-row-active {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 16px;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.task-row-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #e5e7eb;
    z-index: 1;
}

.task-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #2563eb;
    border-radius: 50%;
}

.task-text-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 15px;
    color: #111827;
    outline: none;
    padding: 0 !important;
    font-weight: 500;
}

/* ARKIVERAD RAD (Snyggare lista) */
.task-row-archive {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.task-row-archive:last-child { border-bottom: none; }

.checkmark-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.task-text-locked {
    color: #9ca3af;
    font-size: 14px;
    text-decoration: line-through;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* --- DESKTOP (Standard) --- */
.mobile-filter-btn {
    display: none; /* Dölj tratt på dator */
}

/* --- MOBILANPASSNING (Max 800px) --- */
/* --- MOBILANPASSNING (Max 800px) --- */
@media (max-width: 800px) {
    
    /* Tvinga rad-layout för sökfältet */
    .search-bar-wrapper {
        display: flex !important;
        flex-direction: row !important; /* Rad, inte kolumn */
        height: 50px !important;
        border: 1px solid #ddd !important;
        align-items: center;
        padding: 0 5px 0 0; /* Lite space till höger */
        width: 100%;
    }

    /* Sökfältet - Gör det bredare */
    .search-input {
        flex: 1 1 auto !important; /* Låt den växa maximalt */
        min-width: 0 !important;   /* Förhindrar att den trycks ihop */
        width: auto !important;
        height: 100% !important;
        margin-bottom: 0 !important;
        border: none !important;
        padding-left: 15px !important;
        font-size: 16px !important;
        border-radius: 4px 0 0 4px;
    }

    /* Tratt-knappen (Filter) */
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px; /* Lite större tryckyta */
        height: 40px;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        color: #555;
        cursor: pointer;
        margin-left: 5px;
        flex-shrink: 0; /* Förhindra att knappen krymper */
    }
    
    .mobile-filter-btn.active {
        background: #2c5aa0;
        color: white;
        border-color: #2c5aa0;
    }

    /* Sök-knappen */
    .search-btn {
        width: auto !important;
        height: 40px !important;
        padding: 0 15px !important;
        margin-left: 5px;
        border-radius: 4px;
        flex-shrink: 0; /* Förhindra att knappen krymper */
    }

    /* VIKTIGT: Här tvingar vi filtret att vara dolt som standard */
    #mobile-filters {
        display: none !important; 
        flex-direction: column;
        gap: 10px;
        background: #f9fafb;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        border: 1px solid #eee;
        width: 100%;
    }

    /* När klassen .show läggs till med JS visas den */
    #mobile-filters.show {
        display: flex !important;
    }

    /* Anpassa select-boxarna */
    .filter-select {
        width: 100%;
        max-width: 100%;
        height: 45px; /* Lite högre för touch */
    }
}
.filter-toggle-btn {
    background: #fff;
    border: none;
    border-left: 1px solid #eee; /* Streck mellan input och knapp */
    color: #555;
    width: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.filter-toggle-btn:hover {
    background: #f9fafb;
    color: #2c5aa0;
}

.filter-toggle-btn.active {
    background: #e0f2fe;
    color: #2c5aa0;
}

.filter-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* FILTER-LÅDA (Dold behållare) */
#filter-drawer {
    display: none; /* Dold som standard */
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    margin-top: -20px; /* Dra upp den så den sitter ihop med sökfältet */
    margin-bottom: 20px;
    animation: slideDown 0.2s ease-out;
}

/* Justera sökfältet så det sitter snyggt mot lådan */
.search-container {
    overflow: visible; /* Viktigt för att skuggor ska synas */
}

.search-bar-wrapper {
    /* Se till att denna har vit bakgrund så den ligger över lådan */
    background: white;
    position: relative;
    z-index: 2;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
#page-loader {
    /* ... dina befintliga stilar ... */
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* När vi sätter opacity till 0 med JS, se till att den inte blockerar klick */
#page-loader[style*="opacity: 0"] {
    pointer-events: none;
    visibility: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    margin: 0;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

/* 
   ADMIN PANEL SPECIFIC OVERRIDES
   ========================================================================== */
body.admin-body {
    --primary: #2c5aa0; 
    background: #f4f6f8;
    padding: 20px;
}

.admin-body .container { max-width: 1400px; margin: 0 auto; }
.admin-body .top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; background: var(--surface); padding: 10px 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.admin-body h1 { margin: 0; font-size: 18px; font-weight: 700; color: var(--primary); }
.logout-btn { background: #fee2e2; color: var(--danger); padding: 6px 12px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 12px; transition: 0.2s; }
.panel { background: var(--surface); padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid var(--border); }
.admin-body h2 { margin-top: 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 15px; font-size: 14px; color: #4b5563; text-transform: uppercase; letter-spacing: 0.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.admin-body label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 4px; color: #6b7280; text-transform: uppercase; }
.admin-body input, .admin-body select, .admin-body textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; font-family: inherit; transition: border 0.2s; background: #f9fafb; }
.admin-body button { background: var(--primary); color: white; border: none; padding: 10px 16px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; transition: 0.2s; }
.btn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.btn-grid button { padding: 12px 10px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.car-item { display: grid; grid-template-columns: 30px 70px 1fr auto; gap: 15px; background: var(--surface); padding: 10px 15px; border-radius: 6px; margin-bottom: 8px; border: 1px solid var(--border); align-items: center; }
.chk-col { display: flex; align-items: center; justify-content: center; } .chk-box { transform: scale(1.2); cursor: pointer; margin: 0; }
.car-thumb { width: 70px; height: 50px; object-fit: cover; border-radius: 4px; background: #eee; border: 1px solid var(--border); transition: opacity 0.2s; }
.car-thumb:hover { opacity: 0.8; border-color: var(--primary); }
.car-info { display: flex; flex-direction: column; gap: 2px; } 
.car-title { font-weight: 700; font-size: 15px; color: var(--text); display:flex; align-items:center; gap:10px;} 
.car-meta { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 10px;}
.car-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tool-group { display: flex; flex-direction: column; gap: 2px; } 
.tool-group label { font-size: 9px; margin: 0; color: #888; } 
.tool-group input, .tool-group select { padding: 4px 6px; font-size: 12px; height: 28px; width: 110px; } 
.tool-group.small-input input { width: 60px; } 
.tool-group.mid-input input { width: 140px; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; border-radius: 4px; }
.btn-save { background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; transition: all 0.2s ease; } 
.btn-save:hover { background: var(--primary); color: white; }
.saved-success { background-color: var(--success) !important; border-color: var(--success) !important; color: white !important; transform: scale(1.1); }
.btn-del { background: white; color: #999; border: 1px solid transparent; } 
.btn-del:hover { color: var(--danger); background: #fee2e2; }
.edit-links { display: inline-flex; gap: 8px; margin-left: 10px;} 
.edit-link { cursor: pointer; font-size: 11px; font-weight: 600; color: #2c5aa0; text-decoration: underline; text-decoration-style: dotted;} 
.edit-link.modified { color: #b45309; background: #fff7ed; padding: 0 4px; border-radius: 4px; text-decoration: none;}
.vat-wrapper { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #555; } .vat-wrapper input { width: auto; transform: scale(0.9); margin:0;}
.bulk-bar { background: #e0f2fe; border: 1px solid #bae6fd; padding: 10px 15px; border-radius: 6px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 13px; } 
.bulk-input { flex: 1; background: white; border-color: #bae6fd; padding: 6px; font-size: 13px; } 
.bulk-btn { width: auto; background: #0284c7; padding: 6px 12px; }
.chk-wrapper { display: flex; align-items: center; gap: 10px; margin-top: 10px; background: #fff; padding: 10px; border: 1px solid var(--border); border-radius: 4px; } .chk-wrapper input { width: auto; transform: scale(1.2); }
.search-toolbar { display: flex; gap: 10px; margin-bottom: 15px; } 
.search-input { flex: 2; margin-bottom: 0; } 
.sort-select { flex: 1; margin-bottom: 0; cursor: pointer; font-weight: 600; }
.view-badge { display: inline-flex; align-items: center; gap: 4px; background: #f3f4f6; color: #555; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; cursor: pointer; border: 1px solid #ddd; } .view-badge:hover { background: #e5e7eb; }
.stats-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; } 
.stats-table th { text-align: left; padding: 6px; background: #f3f4f6; border-bottom: 2px solid #ddd; color: #555; } 
.stats-table td { padding: 6px; border-bottom: 1px solid #eee; color: #333; } 
.stats-table tr:nth-child(even) { background: #f9fafb; }
.toast-notification { position: fixed; bottom: 20px; right: 20px; background-color: #333; color: white; padding: 12px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 9999; opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; display: flex; align-items: center; gap: 10px; }
.toast-notification.show { opacity: 1; transform: translateY(0); }
.toast-notification.success { background-color: var(--green); }
.toast-notification.error { background-color: var(--danger); }
.cat-list-container { border: 1px solid #eee; border-radius: 6px; overflow: hidden; background: #f9fafb; }
.cat-item { background: white; padding: 10px 15px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; cursor: move; transition: background 0.2s; }
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { background: #f0f9ff; }
.cat-item.dragging { opacity: 0.5; background: #e0f2fe; }
.drag-handle { color: #ccc; font-size: 20px; margin-right: 5px; cursor: move; }
.cat-info { flex: 1; display: flex; flex-direction: column; }
.cat-name { font-weight: bold; font-size: 13px; }
.cat-tag { font-size: 11px; color: #666; }
.cat-actions { display: flex; gap: 10px; align-items: center; }
.cat-delete { color: #d32f2f; cursor: pointer; font-size: 18px; font-weight: bold; padding: 0 5px; }
.new-cat-box { background: #fff; padding: 15px; border: 1px solid #ddd; border-radius: 6px; margin-top: 15px; }

@media (max-width: 900px) { 
    .car-item { grid-template-columns: 30px 1fr; grid-template-rows: auto auto; gap: 10px; } 
    .car-thumb { display: none; } 
    .car-info { grid-column: 2; } 
    .car-tools { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid #eee; padding-top: 10px; width: 100%; } 
    .tool-group input, .tool-group select { width: 100%; min-width: 80px;} 
    .top-bar { flex-direction: column; gap: 10px; text-align: center; } 
    .search-toolbar { flex-direction: column; } 
    
    /* --- FIX FÖR MOBILMENY (PUNKT 3) --- */
    .nav-links {
        overflow-x: auto; /* Tillåter skroll i sidled */
        white-space: nowrap; /* Förhindrar radbrytning */
        justify-content: flex-start; /* Börjar från vänster */
        width: 100%;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
    }
    .nav-links::-webkit-scrollbar { display: none; } /* Döljer scrollbar men behåller funktion */
    .nav-item, .nav-btn {
        flex-shrink: 0; /* Förhindrar att knappar trycks ihop */
    }
}

/* 
   WEBSITE LAYOUT
   ========================================================================== */
.site-header { background: var(--primary); color: white; padding: 15px 0; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }

/* FIX FÖR LOGGAN */
.logo-img { 
    height: 45px; 
    object-fit: contain; 
    display: none; 
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.logo-img.show {
    display: block !important;
}

.company-text { font-size: 24px; font-weight: 800; font-style: italic; margin-left: 10px;}
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 600; align-items: center; }
.nav-links a { cursor: pointer; color: white; }
.valuation-btn { background: var(--green); color: white; padding: 8px 16px; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; transition: 0.2s; cursor: pointer; display: inline-block; }
.valuation-btn:hover { background: #218838; transform: scale(1.02); }

.hero { background-color: var(--primary); background-size: cover; background-position: center; color: white; text-align: center; padding: 80px 20px 120px 20px; position: relative; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26,43,73,0.85); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: 48px; font-weight: 700; margin: 0 0 10px 0; }
.hero-sub { font-size: 18px; opacity: 0.9; font-weight: 300; }

/* 
   INDEX.HTML SPECIFIC
   ========================================================================== */
.search-container { max-width: 1100px; margin: -60px auto 40px auto; background: white; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 30px; position: relative; z-index: 10; }
.search-tabs { display: flex; gap: 0; position: absolute; top: -45px; left: 20px; z-index: 1; overflow-x: auto; max-width: 100%; scrollbar-width: none; -ms-overflow-style: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.tab { background: #dde3ea; color: #666; padding: 14px 25px; border-radius: 6px 6px 0 0; font-weight: 700; font-size: 14px; cursor: pointer; margin-right: 5px; transition: background 0.2s; white-space: nowrap; }
.tab:hover { background: #d0d9e3; }
.tab.active { background: white; color: var(--accent); padding-bottom: 15px; box-shadow: 0 -5px 10px rgba(0,0,0,0.05); }

.search-bar-wrapper { display: flex; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; min-height: 55px; margin-bottom: 20px; }
.search-icon { width: 50px; display: flex; align-items: center; justify-content: center; color: #2c5aa0; font-size: 20px; border-right: 1px solid #eee; }
.search-input { flex: 1; border: none; padding: 0 20px; font-size: 16px; outline: none; }
.search-btn { background: var(--accent); color: white; border: none; padding: 0 40px; font-weight: 600; font-size: 16px; cursor: pointer; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-select { padding: 8px 20px; border: 1px solid #ddd; border-radius: 20px; background: white; color: var(--text); font-size: 14px; outline: none; }

.main-content { max-width: 1280px; margin: 0 auto; padding: 0 20px 50px 20px; }
.results-info { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 14px; color: #555; }
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }

/* Cards */
.card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; position: relative; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1); border-color: #cbd5e1; }
.card:active { transform: scale(0.99); }






.card-img-box { position: relative; padding-top: 62%; background: #eee; }
.card-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }


.quick-view-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 10;
    color: #333;
}

.quick-view-btn:hover {
    background: #fff;
    transform: scale(1.1);
    color: #2c5aa0; /* Din blå accentfärg */
}








/* Badge on Index Cards */







.badge-container { position: absolute; top: 0; left: 0; z-index: 5; display: flex; flex-direction: column; gap: 1px; align-items: flex-start; }
.custom-label-badge { background: var(--green); color: white; padding: 5px 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; border-bottom-right-radius: 6px; border-top-left-radius: 0; margin-left: 0; }

/* UPDATED BADGE STYLES */
.badge { 
    position: absolute; 
    top: 0; 
    right: 0; 
    padding: 10px 15px; 
    background: rgba(44, 90, 160, 0.75); /* Lite genomskinlig blå */
    color: white; 
    font-size: 12px; 
    font-weight: bold; 
    border-radius: 0 0 0 8px; 
    backdrop-filter: blur(2px); /* Snygg effekt för genomskinlighet */
}
.sold { 
    background: rgba(211, 47, 47, 0.75); /* Lite genomskinlig röd */
}
.reserved {
    background: rgba(255, 193, 7, 0.85); /* Lite genomskinlig gul */
    color: #000 !important; /* Svart text syns bäst på gul */
}

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 20px; font-weight: 700; color: #1a2b49; margin: 0 0 5px 0; }
.card-sub-text { font-size: 14px; font-weight: 600; color: #444; margin-bottom: 5px; }
.card-subtitle { font-size: 13px; color: #666; margin-bottom: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs-row { display: flex; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 12px 0; margin-bottom: 15px; }
.spec-item { flex: 1; border-right: 1px solid #eee; padding-left: 15px; }
.spec-item:first-child { padding-left: 0; }
.spec-item:last-child { border-right: none; }
.label { font-size: 10px; text-transform: uppercase; color: #999; display: block; margin-bottom: 3px; }
.val { font-size: 13px; font-weight: 600; color: #333; }
.card-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.btn-outline { border: 1px solid #2c5aa0; color: #2c5aa0; padding: 8px 20px; border-radius: 4px; font-weight: 600; font-size: 13px; }

/* Partners & Animation */
.partner-section { grid-column: 1 / -1; background: #f9f9f9; padding: 40px 20px; margin: 30px 0; border-radius: 8px; text-align: center; overflow: hidden;}
.partner-title { font-size: 14px; font-weight: 700; letter-spacing: 2px; margin-bottom: 30px; color: #333; text-transform: uppercase; }
.partner-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: center; }
.marquee-wrapper { overflow: hidden; white-space: nowrap; position: relative; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-content { display: inline-flex; align-items: center; gap: 50px; animation: scroll 30s linear infinite; }
.marquee-content:hover { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-logo { max-height: 60px; max-width: 180px; object-fit: contain; transition: 0.3s; margin: 0 15px; }
.bw-mode .partner-logo { filter: grayscale(100%); opacity: 0.7; }
.bw-mode .partner-logo:hover { filter: grayscale(0%); opacity: 1; }

@keyframes blink-animation { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; color: var(--accent); } }
.blink-effect { animation-name: blink-animation; animation-duration: 0.6s; animation-timing-function: ease-in-out; }

/* 
   PRICE & CAMPAIGN STYLES
   ========================================================================== */
.price-container { display: flex; flex-direction: column; align-items: flex-end; }
.price { font-size: 22px; font-weight: 700; color: #2c5aa0; } 
.old-price { font-size: 15px; font-weight: 600; color: #777; text-decoration: line-through; margin-bottom: 2px; display: block; text-align: right;}
.big-price { font-size: 32px; font-weight: 700; color: var(--text); }
.old-price-big { font-size: 24px; font-weight: 700; color: #666; text-decoration: line-through; margin-bottom: 5px; display: block; }
.campaign-price { color: #d32f2f !important; font-weight: 800; }
.campaign-price-big { color: #d32f2f !important; }
.monthly-cost-grid { font-size: 13px; font-weight: 700; color: var(--green); margin-top: 2px; }
.vat-info { font-size: 11px; color: #777; margin-top: 2px; }

/* 
   BIL.HTML SPECIFIC
   ========================================================================== */
.bil-body .hero { margin-bottom: -40px; padding: 40px 20px 80px 20px; }
.bil-body .hero-title { font-size: 36px; margin: 0 0 5px 0; }
.bil-body .hero-sub { font-size: 16px; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px; transition: max-width 0.3s ease; }
.container.wide-view { max-width: 1600px; } 
.layout-wrapper { display: block; } 
.layout-side-mode { display: grid; grid-template-columns: 240px 1fr 240px; gap: 40px; width: 100%; }
.sidebar { display: none; flex-direction: column; gap: 20px; margin-top: 60px; }
.layout-side-mode .sidebar { display: flex; }
.back-link-wrapper { position: relative; z-index: 10; margin-bottom: 20px; }
.back-link { font-weight:600; display:inline-flex; align-items:center; gap:5px; color: var(--primary); background: white; padding: 8px 15px; border-radius: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); font-size: 13px;}

.gallery { position: relative; margin-bottom: 24px; height: 500px; background: #0b0f19; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); }
.main-img { width: 100%; height: 100%; object-fit: contain; }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(15, 23, 42, 0.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); color: white; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; transition: all 0.2s ease; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); } .gal-btn:hover { background: rgba(15, 23, 42, 0.6); transform: translateY(-50%) scale(1.06); } .gal-btn:active { transform: translateY(-50%) scale(0.95); background: rgba(15, 23, 42, 0.7); } .prev{left:14px;} .next{right:14px;}
.status-overlay-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.status-diagonal { transform: rotate(-15deg); border: 5px solid #d32f2f; color: #d32f2f; font-size: 60px; font-weight: 900; text-transform: uppercase; padding: 10px 40px; border-radius: 10px; background: rgba(255,255,255,0.1); margin-bottom: 30px; text-align: center; line-height: 1; }

/* UPDATE: More transparent background (0.5) */
.lead-box { background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(5px); padding: 20px; border-radius: 8px; max-width: 400px; width: 90%; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.lead-text { font-size: 14px; margin-bottom: 15px; color: #333; line-height: 1.5; }
.lead-input-row { display: flex; gap: 5px; }
.lead-input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.lead-btn { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 4px; font-weight: bold; cursor: pointer; }

.header-info { background: #ffffff; border: 1px solid #e2e8f0; border-bottom: none; border-radius: 16px 16px 0 0; padding: 24px 26px 16px 26px; margin-top: 8px; margin-bottom: 0; }
.title-row { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 4px;}
.brand-model { font-size: 36px; font-weight: 800; color: #0f172a; margin: 0; line-height: 1.15; letter-spacing: -0.6px; }
.sub-model-trim { font-size: 19px; color: #334155; font-weight: 600; margin-top: 4px; display: block; line-height: 1.35; }
.sub-model-specs { font-size: 13.5px; color: #475569; font-weight: 600; margin-top: 10px; display: inline-flex; align-items: center; background: #f1f5f9; border: 1px solid #e2e8f0; padding: 5px 12px; border-radius: 999px; }

/* 
   Detail Page Badges (SPLIT LEFT / RIGHT)
   ======================================== */
.gallery-badges-left {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    pointer-events: none;
}

.gallery-badges-right {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.gallery-badges-left .detail-badge,
.gallery-badges-right .detail-badge {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: auto;
    color: white;
}

.badge-custom { background: var(--green); } 
.badge-sold { background: #d32f2f; } 
.badge-reserved { background: #fbc02d; color: #000 !important; }
.badge-soh { background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important; color: #ffffff !important; }

.action-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 26px 24px 26px; background: #ffffff; border: 1px solid #e2e8f0; border-top: 1px solid #f1f5f9; border-radius: 0 0 16px 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.monthly-display { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 6px 13px; border-radius: 8px; margin-top: 8px; cursor: pointer; text-decoration: none; transition: all 0.18s ease; }
.monthly-display:hover { background: #dcfce7; border-color: #86efac; transform: translateY(-1px); }
.btn-group { display: grid; grid-template-columns: repeat(2, minmax(175px, 1fr)); gap: 10px; flex: 1; max-width: 460px; min-width: 280px; }
.btn { padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 13.5px; cursor: pointer; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; height: 46px; box-sizing: border-box; text-decoration: none; border: 1.5px solid transparent; transition: all 0.18s ease; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1); }
.btn-primary { background: #1e293b; color: white; }
.btn-primary:hover { background: #0f172a; }
.btn-call { background: #16a34a; color: white; }
.btn-call:hover { background: #15803d; }
.btn-finance { background: #0f172a; color: white; }
.btn-finance:hover { background: #1e293b; }
.btn-tradein { background: #ffffff; color: #1e293b; border: 1.5px solid #cbd5e1; }
.btn-tradein:hover { background: #f8fafc; border-color: #94a3b8; }

.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 40px; background: #fff; padding: 30px; border-radius: 12px; margin-bottom: 40px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.fact-item { display: flex; flex-direction: column; } .fact-label { font-size: 12px; color: #888; text-transform: uppercase; font-weight: bold; } .fact-val { font-size: 16px; font-weight: 600; }
.eq-list { column-count: 2; margin-bottom: 50px; } .eq-item { margin-bottom: 8px; } .eq-item::before { content: "•"; margin-right: 10px; color: var(--primary); }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.rel-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; display: block; transition: all 0.2s ease; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03); }
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08); border-color: #cbd5e1; }
.rel-img { width: 100%; height: 180px; object-fit: cover; }

/* Credit Warning Box (Slim, Clean & Unobtrusive) */
.credit-warning-box { border: 1px solid #e2e8f0; border-left: 3.5px solid #dc2626; border-radius: 12px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; margin: 14px 0 18px 0; background: #f8fafc; max-width: 100%; box-sizing: border-box; }
.warning-icon-container { flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.warning-icon-svg { width: 20px; height: 20px; fill: none; stroke: #dc2626; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.warning-content { flex: 1; font-size: 12px; line-height: 1.45; color: #475569; }
.warning-content h4 { margin: 0 6px 0 0; color: #0f172a; font-size: 12.5px; font-weight: 700; line-height: 1.4; display: inline; }
.warning-content p { margin: 0; font-size: 12px; line-height: 1.45; color: #475569; display: inline; }
.warning-content a { color: #0284c7; text-decoration: underline; font-weight: 600; }
.warning-content a:hover { color: #0369a1; }

/* 
   MODALS & FORMS
   ========================================================================== */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; } 
.modal-content { background: white; width: 95%; max-width: 600px; padding: 25px; border-radius: 8px; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.modal-close { position: absolute; top: 20px; right: 20px; font-size: 24px; font-weight: 700; cursor: pointer; color: #000; line-height: 1; z-index:10; }
.modal-title { margin-top: 0; font-size: 28px; color: #111; margin-bottom: 15px; font-weight:800; letter-spacing:-0.5px;}
.modal-sub { font-size: 14px; color: #333; margin-bottom: 25px; line-height:1.5;}
.form-label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; color: #000; }
.form-group { margin-bottom: 15px; position:relative; }
.reg-wrapper { position: relative; display: flex; align-items: center; }
.reg-strip { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; background: var(--plate-blue); border-radius: 4px 0 0 4px; display: flex; align-items: center; justify-content: center; }
.reg-strip::after { content:'S'; color:white; font-weight:bold; font-size:14px; margin-top:10px;} 
.reg-input { width: 100%; padding: 12px 12px 12px 55px; border: 2px solid #000; border-radius: 4px; font-size: 18px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; outline: none; color: #000;}
.mil-wrapper { position: relative; background: linear-gradient(to bottom, #222, #000); border-radius: 4px; border:1px solid #444; overflow:hidden;}
.mil-input { width: 100%; padding: 12px 50px 12px 15px; background: transparent; border: none; color: white; font-size: 16px; font-family: monospace; text-align: center; letter-spacing: 2px; outline: none;}
.mil-suffix { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #888; font-weight: 800; font-size: 14px; }
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.chk-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #000; font-weight: 500; }
.chk-item input { width: 18px; height: 18px; border: 2px solid #ccc; border-radius: 4px; cursor: pointer; }
.std-input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; box-sizing: border-box; }
.std-input:focus { border-color: var(--plate-blue); outline:none;}
.btn-submit { width: 100%; background: #1a1f2c; color: white; padding: 16px; border: none; border-radius: 4px; font-weight: 800; font-size: 14px; letter-spacing: 0.5px; cursor: pointer; text-transform: uppercase; transition:0.2s; margin-top:10px;}
.btn-submit:hover { background: #000; }
.search-result-list { position: absolute; top: 100%; left: 0; width: 100%; background: white; border: 1px solid #ddd; border-top: none; max-height: 200px; overflow-y: auto; z-index: 100; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: none; }
.search-item { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; font-size: 13px; }
.search-item:hover { background: #f5f7fa; }
.search-item strong { display: block; color: var(--primary); }

/* Bil.html Modals */
.modal-overlay { display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.6);align-items:center;justify-content:center;z-index:999; }
.modal-box { background:white;width:90%;max-width:500px;padding:30px;border-radius:8px;position:relative; max-height: 90vh; overflow-y: auto; }
.close-btn { position:absolute;top:15px;right:20px;font-size:24px;cursor:pointer; }
.inp-field { width:100%;padding:12px;margin-bottom:10px;border:1px solid #ddd;border-radius:4px;box-sizing: border-box; }
.calc-row { margin-bottom: 20px; }
.calc-label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.range-slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 5px; background: #d3d3d3; outline: none; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; }
.calc-result-box { background: #f0f9f4; padding: 20px; text-align: center; border-radius: 8px; margin-top: 20px; border: 1px solid #c3e6cb; }
.calc-sum { font-size: 32px; font-weight: 800; color: var(--green); display: block; }
.radio-group { display: flex; gap: 20px; margin-bottom: 15px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: bold; cursor: pointer; }
.radio-group input { transform: scale(1.3); }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-item input { width: auto; margin: 0; transform: scale(1.2); }

/* Custom Inputs */
.license-plate-input { background-image: linear-gradient(to right, #005293 35px, #ffffff 35px); padding-left: 45px !important; font-family: 'Inter', monospace; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 16px !important; color: #000; border: 2px solid #000 !important; border-radius: 4px; }
.license-plate-input::placeholder { color: #ccc; letter-spacing: 0; text-transform: none; font-weight: 400; }
.odometer-wrapper { position: relative; width: 100%; margin-bottom: 10px; }
.odometer-input { background-color: #151515; background-image: linear-gradient(to bottom, #333 0%, #000 40%, #000 60%, #333 100%); color: #f0f0f0 !important; font-family: 'Share Tech Mono', 'Courier New', monospace; font-size: 22px !important; font-weight: 700; letter-spacing: 12px; text-align: center; padding-left: 12px !important; padding-right: 50px !important; border: 4px solid #444 !important; border-radius: 4px; box-shadow: inset 0 5px 10px rgba(0,0,0,0.8); text-shadow: 0 1px 2px rgba(0,0,0,0.8); width: 100%; box-sizing: border-box; }
.odometer-unit { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #999; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; pointer-events: none; z-index: 5; }
.odometer-input::placeholder { color: #444; font-family: 'Inter', sans-serif; font-size: 14px; letter-spacing: normal; font-weight: normal; text-shadow: none; }

/* Reco Badge */
.reco-badge { position: fixed; z-index: 9999; background: white; padding: 10px 15px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); display: flex; align-items: center; gap: 12px; font-family: 'Inter', sans-serif; border: 1px solid #e5e7eb; cursor: pointer; transition: transform 0.3s ease, opacity 0.3s ease; }
.reco-badge:hover { transform: scale(1.02); }
.reco-close-btn { position: absolute; top: -8px; right: -8px; background: #eee; color: #333; width: 18px; height: 18px; border-radius: 50%; text-align: center; line-height: 18px; font-size: 12px; font-weight: bold; border: 1px solid #ccc; cursor: pointer; z-index: 10000; }
.reco-badge.minimized .reco-close-btn { display: none !important; }
.reco-pos-top-left { top: 100px; left: 0; border-radius: 0 8px 8px 0; }
.reco-pos-top-right { top: 20px; right: 0; border-radius: 8px 0 0 8px; }
.reco-pos-bottom-left { bottom: 20px; left: 0; border-radius: 0 8px 8px 0; }
.reco-pos-bottom-right { bottom: 20px; right: 0; border-radius: 8px 0 0 8px; }
.reco-badge.minimized.reco-pos-top-left, .reco-badge.minimized.reco-pos-bottom-left { transform: translateX(calc(-100% + 25px)); opacity: 0.8; }
.reco-badge.minimized.reco-pos-top-right, .reco-badge.minimized.reco-pos-bottom-right { transform: translateX(calc(100% - 25px)); opacity: 0.8; }
.reco-left { display: flex; flex-direction: column; }
.reco-stars { color: #0071ce; font-size: 16px; letter-spacing: 1px; line-height: 1; }
.reco-right { display: flex; flex-direction: column; align-items: flex-end; border-left: 1px solid #eee; padding-left: 12px; }
.reco-score { font-size: 20px; font-weight: 800; color: #1a1a1a; line-height: 1; }
.reco-count { font-size: 10px; color: #888; margin-top: 2px; }
.reco-logo { height: 18px; box-sizing: content-box; margin-bottom: 4px; display: block; padding: 6px 10px; border-radius: 4px; }
.reco-custom-text { font-size: 10px; color: #555; margin-top: 2px; font-weight: 600; }

.login-body { display:flex; justify-content:center; align-items:center; height:100vh; background:#f4f4f4; }
.login-form { background:white; padding:40px; border-radius:8px; box-shadow:0 2px 10px rgba(0,0,0,0.1); text-align:center; }
.login-input { padding:12px; width:100%; margin:10px 0; border:1px solid #ddd; }
.login-btn { padding:12px; width:100%; background:#333; color:white; border:none; cursor:pointer; }

@media (max-width: 800px) { 
    .search-tabs { position: static; margin-top: 0; margin-bottom: 15px; left: 0; gap: 10px; overflow-x: auto; white-space: nowrap; padding-bottom: 5px;} 
    .tab { border-radius: 20px; padding: 8px 15px; background: #f0f2f5; font-size: 13px; } 
    .tab.active { background: var(--accent); color: white; box-shadow: none; padding-bottom: 8px; } 
    .tab.active::after { display: none; } 
    .search-bar-wrapper { flex-direction: column; height: auto; border: none; } 
    .search-icon { display: none; } 
    .search-input { height: 50px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 10px; width: 100%; box-sizing: border-box;} 
    .search-btn { height: 50px; border-radius: 4px; justify-content: center; width: 100%;} 
    .vehicle-grid { grid-template-columns: 1fr; } 
    .hero { padding: 60px 20px; } 
    .reco-badge { top: 75px !important; bottom: auto !important; left: 0 !important; right: auto !important; border-radius: 0 8px 8px 0 !important; transform: none; padding: 6px 10px; gap: 8px; } 
    .reco-badge.minimized { transform: translateX(calc(-100% + 20px)) !important; } 
    .reco-logo { height: 12px; padding: 4px 6px; margin-bottom: 2px; } 
    .reco-stars { font-size: 12px; } 
    .reco-score { font-size: 16px; } 
    .reco-right { padding-left: 8px; } 
    .reco-custom-text { display: none; }
    .partner-grid { gap: 20px; } .partner-logo { max-height: 40px; }
    .valuation-btn { font-size: 11px; padding: 6px 10px; }
    .credit-warning-box { flex-direction: row; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 14px; } 
    .warning-icon-container { width: 20px; height: 20px; margin-top: 2px; }
    .header-info { padding: 18px 18px 14px 18px; }
    .action-bar { padding: 16px 18px 20px 18px; }
    .btn-group { grid-template-columns: 1fr; max-width: 100%; width: 100%; }
}

/* SCROLL HINT ANIMATION (Hoppande bil) */
.scroll-hint-box {
    position: fixed;
    bottom: 110px; /* Lite högre upp så den inte krockar med chatt-knappar */
    right: 20px;   /* Placera till höger */
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Gör att man kan klicka "igenom" den */
    transition: opacity 1s ease;
}

.scroll-hint-box.fade-out {
    opacity: 0;
}

.scroll-car {
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 5px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: bounce 2s infinite;
    animation-delay: 0.2s; /* Liten fördröjning mot bilen */
}

.scroll-text {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.4);
    padding: 2px 8px;
    border-radius: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}


#task-list input[type="text"] {
    width: auto !important;      /* Överskriv .admin-body input width: 100% */
    min-width: 0;                /* Säkerställer att flexbox fungerar korrekt */
    padding: 0 5px !important;   /* Justera padding */
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#task-list input[type="checkbox"] {
    width: auto !important;      /* Se till att checkboxen inte blir 100% bred */
    margin: 0 !important;
    transform: scale(1.2);       /* Gör den lite större så den är lätt att klicka på */
}