.subscription-message {
    margin-top: 15px;
    text-align: center;
}
.subscription-message p {
    margin-bottom: 10px;
    color: #555;
}

  table.dataTable tbody th,
  table.dataTable tbody td{
    padding: 15px 73px !important;
}
/* Tabellstilar */
.table {
    margin: 0 auto; /* Centrera tabellen */
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0 15px !important; /* Mindre mellanrum mellan rader */
    border-radius: 12px;
    padding: 10px;
    background: linear-gradient(120deg, #00539C, #091c32);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Förstärkt skugga */
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 300px !important;
    height: auto !important;
    display: table !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    box-sizing: border-box;
}
.table tbody {
    display: table-row-group !important;
    width: 100% !important;
}
.table thead th {
    text-align: center !important;
    vertical-align: middle !important;
    background: rgba(0, 83, 156, 0.8); /* Mörkare header för kontrast */
    color: #fff;
    border: none;
    padding: 10px; /* Mer padding */
    font-weight: 600;
    font-size: 14px; /* Större text */
    cursor: pointer;
}
.table tbody tr {
    background-color: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.table tbody td {
    padding: 8px; /* Mer padding */
    text-align: center;
    vertical-align: middle;
    border-top: none;
    border-bottom: none;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500; /* Mindre fetstil */
}
.table tbody td img.tool-image {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.table tbody td img.tool-image:hover {
    transform: scale(1.1);
}
.motivation-short {
    font-size: 0.9em;
    color: #666;
    margin-top: -0.5em;
    margin-bottom: 0.5em;
}
.motivation-full {
    font-size: 0.9em;
    color: #333;
    margin-top: 0.5em;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}
.read-more {
    padding: 0;
    text-decoration: underline;
    color: #00a6ff;
}
/* Justera sökfält i tabellen */
.dataTables_filter input {
    color: #fff; /* Vit fontfärg i sökfältet */
    background-color: #333; /* Mörk bakgrund */
    border: 1px solid #fff;
}
/* Justera dropdown för "Visa _MENU_ verktyg per sida" */
.dataTables_length select {
    color: #00a6ff; /* Vit fontfärg */
    background-color: #333; /* Mörk bakgrund */
    border: 1px solid #fff;
}
/* Justera paginering */
.dataTables_paginate .paginate_button {
    color: #fff !important; /* Vit fontfärg */
    background-color: #333 !important; /* Mörk bakgrund */
    border: none !important;
}
.dataTables_paginate .paginate_button.current {
    background-color: #00539C !important; /* Blå färg för aktuell sida */
}
/* Justera bredd och centrera tabellen */
.datatable-container {
    min-height: 400px !important; /* Öka minsta höjd */
    height: auto !important;
    overflow-x: auto !important; /* Tillåt horisontell scroll på laptop */
    overflow-y: visible !important;
    visibility: visible !important; /* Force visibility */
    display: block !important;
    width: 90% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    position: relative;
    box-sizing: border-box;
}
/* Centrera DataTables-kontrollerna */
.dataTables_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 400px !important; /* Explicit minsta höjd */
    height: auto !important;
    margin: 0 auto;
    color: #fff; /* Vit textfärg för kontrolltexter */
    overflow: visible !important;
    display: block !important;
    position: relative;
    box-sizing: border-box;
}
    margin-bottom: 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* Justera textfärg och stil för DataTables-element */
.dataTables_wrapper .dataTables_filter input {
    color: #fff; /* Vit fontfärg i sökfältet */
    background-color: #333333; /* Mörk bakgrund */
    border: 1px solid #fff;
}
.dataTables_wrapper .dataTables_length select {
    color: #fff; /* Vit fontfärg */
    background-color: #333; /* Mörk bakgrund */
    border: 1px solid #fff;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #fff; /* Vit fontfärg */
}
/* Centrera DataTables-kontrollerna */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    text-align: center;
}
/* Justera pagineringsknappar */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #fff !important;
    background-color: #333 !important;
    border: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #00539C !important;
}
/* Stil för knapplådan i tabellen */
.table-buttons {
    display: flex;
    flex-direction: column; /* Stapla knapparna vertikalt */
    gap: 8px;
    align-items: center;
}
/* Översikt-knappen */
.overview-button {
    max-width: 90% !important;
    min-width: 90% !important;
    display: inline-block;
    background: linear-gradient(45deg, #00539C, #00A6FF); /* Gradientfärg */
    color: #fff; /* Vit text */
    text-decoration: none; /* Ingen understrykning */
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold; /* Fetstil */
    border-radius: 20px; /* Rundade hörn */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Lätt skugga */
    transition: all 0.3s ease; /* Smidig övergång */
    cursor: pointer; /* Byt till pekhand */
    text-align: center;
}
/* Hover-effekt för Översikt-knappen */
.overview-button:hover {
    background: linear-gradient(45deg, #003F7D, #007ACC); /* Mörkare gradient vid hover */
    transform: scale(1.05); /* Förstora något */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); /* Mer framträdande skugga */
    color: #fff; /* Behåll vit text även vid hover */
    text-decoration: none; /* Säkerställ att understrykning inte visas */
}
/* Aktivt klick */
.overview-button:active {
    transform: scale(1.05); /* Lätt krympning */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Mindre skugga */
}
/* Fokus-effekt */
.overview-button:focus {
    outline: none; /* Ta bort standardfokusram */
    box-shadow: 0 0 8px rgba(0, 166, 255, 0.8); /* Lägg till blå glow */
}
.reset-button {
    background: transparent;
    border: none;
    color: #00539C;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}
.reset-button:hover {
    color: #00A6FF;
}
/* Recensera-knappen */
.recensera-button {
    max-width: 90% !important;
    min-width: 90% !important;
    background: linear-gradient(45deg, #00A6FF, #00539C); /* Gradientfärg */
    color: #fff; /* Vit text */
    border: none; /* Ingen ram */
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold; /* Fetstil */
    border-radius: 20px; /* Rundade hörn */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Lätt skugga */
    transition: all 0.3s ease; /* Smidig övergång */
    cursor: pointer; /* Byt till pekhand */
    display: flex; /* Gör knappen till en flex-container */
    justify-content: center; /* Horisontell centrering */
    align-items: center; /* Vertikal centrering */
    text-align: center;
}
/* Hover-effekt för Recensera-knappen */
.recensera-button:hover {
    background: linear-gradient(45deg, #007ACC, #003F7D); /* Mörkare gradient vid hover */
    transform: scale(1.05); /* Förstora något */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); /* Mer framträdande skugga */
}
/* Aktivt klick */
.recensera-button:active {
    transform: scale(1.05); /* Lätt krympning */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Mindre skugga */
}
/* Fokus-effekt */
.recensera-button:focus {
    outline: none; /* Ta bort standardfokusram */
    box-shadow: 0 0 8px rgba(0, 166, 255, 0.8); /* Lägg till blå glow */
}
/* Stil för "Lägg i kundvagn"-knappen */
.add-to-cart-button {
    max-width: 90% !important;
    min-width: 90% !important;
    background: linear-gradient(45deg, #28a745, #218838); /* Grön gradient */
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.add-to-cart-button:hover {
    background: linear-gradient(45deg, #218838, #1e7e34);
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}
.add-to-cart-button.added {
    background: linear-gradient(45deg, #6c757d, #5a6268); /* Grå gradient för "Tillagd" */
    cursor: not-allowed;
}
.select2-container .select2-search--dropdown {
    padding: 6px;
}
.select2-container .select2-search__field {
    width: 100%;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: none;
}
/* Uppdaterad stil för add-to-cart-form */
.add-to-cart-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4.5px !important;
    width: 100% !important;
}
/* Justera antalfältet */
.add-to-cart-form input[type="number"] {
    width: 40px !important;
    height: 30px !important;
    padding: 5px !important;
    font-size: 12px !important;
    text-align: center !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
    margin: 0 !important;
}
/* Justera knappen */
.add-to-cart-form .add-to-cart-button {
    min-width: auto !important;
    max-width: none !important;
    padding: 8px 8px !important;
    font-size: 7px !important;
    white-space: nowrap !important;
}
/* Mobilanpassning */
@media (max-width: 768px) {
    .add-to-cart-form {
        flex-direction: column !important;
        gap: 3px !important;
    }
    .add-to-cart-form input[type="number"] {
        width: 42px !important;
        height: 20px !important;
        font-size: 11px !important;
    }
    .add-to-cart-form .add-to-cart-button {
        padding: 5px 27px !important;
        font-size: 5.5px !important;
    }
}
/* Justera antalfältet */
input[type="number"] {
    width: 80%; /* Samma bredd som knappar */
    max-width: 80px; /* Begränsa för att inte bli för brett */
    height: 30px; /* Mindre höjd */
    padding: 5px;
    font-size: 14px;
    text-align: center; /* Centrera siffran */
    border-radius: 25px; /* Rundade hörn för att matcha knappar */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Lätt skugga */
}
/* Centrera siffran i antal-fältet */
.quantity-input {
    text-align: center;
}
/* Responsiv justering för mindre skärmar */
@media (max-width: 768px) {
    .table-buttons .overview-button,
    .table-buttons .recensera-button,
    .table-buttons .add-to-cart-button {
        width: 90%;
        padding: 5px;
        font-size: 12px; /* Ökat till 12px för bättre läsbarhet, matchar nu bättre */
    }
    input[type="number"] {
        width: 90%;
        max-width: 60px;
        height: 25px;
        font-size: 12px;
    }
    .add-to-cart-form {
        gap: 5px; /* Mindre gap på mobil */
    }
    /* Behåll befintliga regler */
    #campaignModal .modal-dialog {
        max-width: 90%; /* Gör modalen smalare */
        margin: 10px auto; /* Centrera modalen med lite marginal */
    }
    #campaignModal .modal-content {
        padding: 10px; /* Minska padding för att spara utrymme */
    }
    #campaignModal .modal-body {
        font-size: 14px; /* Minska textstorleken */
        padding: 10px; /* Minska padding */
    }
    #campaignModal .modal-header {
        padding: 10px; /* Minska padding */
    }
    #campaignModal .modal-footer {
        padding: 10px; /* Minska padding */
    }
    #campaignModal .modal-title {
        font-size: 18px; /* Minska titeln */
    }
    #campaignModal .modal-body ul {
        font-size: 14px; /* Minska listtexten */
        padding-left: 20px; /* Justera listans indrag */
    }
    #campaignModal .modal-footer .btn {
        font-size: 14px; /* Minska knapparnas textstorlek */
        padding: 8px 16px; /* Minska knapparnas storlek */
    }
}
    /* Distinguishing design for pro filters */
    .pro-filter {
        border-color: #0063a6 !important; /* Gold border */
        background-color: #bcf2fe !important; /* Light gold background */
        color: #11395a; /* Dark brown text for contrast */
        box-shadow: 0 2px 4px rgba(67, 84, 95, 0.3); /* Subtle gold shadow */
        margin-bottom: -30px;
    }
    .pro-filter:hover,
    .pro-filter:focus {
        border-color: #0085cf !important; /* Brighter gold on hover/focus */
        box-shadow: 0 4px 8px rgba(67, 84, 95, 0.3);
    }
/* TOOLTIP - GARANTERAD POSITIONERING ÖVER FILTREN */
.filter-item {
  position: relative !important;
  margin-bottom: 25px !important; /* Ger plats för tooltipen */
}
.filter-tooltip {
  position: absolute !important;
  bottom: 100% !important; /* Placera ovanför föräldraelementet */
  left: 0 !important;
  right: 0 !important;
  margin-bottom: -20px !important; /* Lite mellanrum */
  background: #2d3748 !important;
  color: white !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  visibility: hidden !important;
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* Pil pekar nedåt mot filtret */
.filter-tooltip::after {
  content: "" !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border-width: 6px 6px 0 6px !important;
  border-style: solid !important;
  border-color: #2d3748 transparent transparent transparent !important;
}
/* Visa tooltip vid hover */
.filter-item:hover .filter-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
}
    /* Mobilanpassning för tooltipen */
    @media (max-width: 768px) {
        .filter-tooltip {
            font-size: 0.8rem;
            padding: 8px 12px;
            max-width: 150px; /* Minska bredd på små skärmar */
        }
    }
/* === Superliten AI-toggle switch === */
/* ===== SUPERDUPER AI TOGGLE STYLING ===== */
.ai-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  background: linear-gradient(135deg, rgba(0, 83, 156, 0.05) 0%, rgba(0, 166, 255, 0.05) 100%);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 83, 156, 0.1);
  box-shadow: 0 4px 20px rgba(0, 83, 156, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: -32px;
}

.ai-toggle-container:hover {
  box-shadow: 0 8px 30px rgba(0, 83, 156, 0.12);
  background: linear-gradient(135deg, rgba(0, 83, 156, 0.08) 0%, rgba(0, 166, 255, 0.08) 100%);
}

.ai-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
  padding-right: 125px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .ai-toggle-container {
    margin: 15px 0;
    padding: 12px;
    border-radius: 14px;
  }
  
  .ai-toggle-label {
    width: 100px;
    height: 50px;
  }
  
  .ai-toggle-label input:checked + .ai-toggle-slider .ai-toggle-knob {
    left: calc(100% - 48px);
  }
  
  .ai-toggle-title {
    font-size: 15px;
  }
  
  .ai-toggle-subtitle {
    font-size: 11px;
  }
}

/* Add smooth transition for all elements */
.ai-toggle-container,
.ai-toggle-slider,
.ai-toggle-knob,
.ai-toggle-icons i,
.ai-toggle-text span {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* === Chat-bubblor === */
#chat_history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  max-width: 78%;
  padding: 11px 16px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.45;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.chat-bubble.user {
  align-self: flex-end;
  background: #00539C;
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-bubble.ai {
  align-self: flex-start;
  background: #f1f3f5;
  color: #2d3748;
  border-bottom-left-radius: 4px;
  max-width: 90%;  /* Ge plats för inline-element */
}
/* NY: Stilar för verktyg i AI-chatt */
.ai-tools-list {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}
.ai-tool-item {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s;
}
.ai-tool-item:hover {
    box-shadow: 0 2px 8px rgba(0, 83, 156, 0.1);
}
.add-to-cart-button-ai {
    background: linear-gradient(45deg, #28a745, #218838);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.add-to-cart-button-ai:hover:not(.added) {
    background: linear-gradient(45deg, #218838, #1e7e34);
    transform: scale(1.1);
}
.add-to-cart-button-ai.added {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    cursor: not-allowed;
}
/* NY: Stil för pris i AI-chatt */
.ai-tool-price {
    margin-left: 10px; /* Avstånd från motivation */
    color: #28a745; /* Grön för pris (matchar add-knapp) */
    font-weight: bold;
    font-size: 14px;
}

/* NY: Subtil knapp för url_source */
.view-source-button {
    background: none;
    border: none;
    color: #00539C; /* Blå ikon för länk */
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.3s ease;
}

.view-source-button:hover {
    color: #00A6FF; /* Ljusare blå vid hover */
}

.view-source-button i {
    font-size: 18px; /* Lite större ikon för tydlighet */
}

/* Prisjakt-prisdisplay (AVTALSKRAV: Lägsta pris MÅSTE vara prominent) */
.prisjakt-price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: linear-gradient(135deg, #f0f9f4, #e6f7ed);
    border-radius: 12px;
    border: 2px solid #00D084;
    min-width: 140px;
}

.prisjakt-price-main {
    font-size: 20px;
    font-weight: 800;
    color: #00A86B;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 168, 107, 0.1);
}

.prisjakt-price-label {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prisjakt-shop-info {
    font-size: 10px;
    color: #555;
    text-align: center;
    margin-top: 2px;
}

.prisjakt-button {
    background: linear-gradient(135deg, #00A86B, #00D084);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 168, 107, 0.2);
    margin-top: 8px;
    min-height: 45px;
}

.prisjakt-button:hover {
    background: linear-gradient(135deg, #00D084, #00F09E);
    box-shadow: 0 4px 8px rgba(0, 168, 107, 0.3);
    transform: translateY(-1px);
}

.prisjakt-button i {
    font-size: 12px;
}

.prisjakt-logo-small {
    height: 50px;
    width: auto;
    vertical-align: middle;
    /* Visa original färger med vit bakgrund för kontrast */
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100px;
    object-fit: contain;
    cursor: pointer;
}

.prisjakt-logo-small:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 83, 156, 0.3);
    background: #f8f8f8;
}

.prisjakt-button:hover .prisjakt-logo-small {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
    background: #f8f8f8;
}

/* Prisjakt-sökknapp (ingen prismatch) */
.prisjakt-search-button {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.prisjakt-search-button:hover {
    background: linear-gradient(135deg, #357ABD, #2868A8);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
    transform: translateY(-1px);
}

/* Delatool-prisdisplay (FALLBACK när ingen Prisjakt-koppling) */
.delatool-price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: linear-gradient(135deg, #f0f4f9, #e6eef7);
    border-radius: 12px;
    border: 2px solid #00539C;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delatool-price-display:hover {
    background: linear-gradient(135deg, #e6eef7, #dae6f4);
    box-shadow: 0 4px 8px rgba(0, 83, 156, 0.2);
    transform: translateY(-1px);
}

.delatool-price-main {
    font-size: 20px;
    font-weight: 800;
    color: #00539C;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 83, 156, 0.1);
}

.delatool-price-label {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delatool-price-info {
    font-size: 10px;
    color: #555;
    text-align: center;
    margin-top: 2px;
}

.delatool-logo-small {
    height: 50px;
    width: auto;
    vertical-align: middle;
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100px;
    object-fit: contain;
}

.delatool-logo-small:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 83, 156, 0.3);
    background: #f8f8f8;
}

/* Delatool översikt-knapp för tabell */
.delatool-overview-button {
    background: linear-gradient(135deg, #00539C, #003d73);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 83, 156, 0.2);
}

.delatool-overview-button:hover {
    background: linear-gradient(135deg, #003d73, #002952);
    box-shadow: 0 4px 8px rgba(0, 83, 156, 0.3);
    transform: translateY(-1px);
}

.delatool-overview-button i {
    font-size: 12px;
}


/* ==================== SEARCH RESULTS TABLE - IMPROVED LAYOUT ==================== */

/* Kombinerad verktygskolumn (Bild + Modell) */
.tool-info-combined {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px;
}

.tool-image-compact {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.tool-image-compact:hover {
    transform: scale(1.1);
}

.tool-model-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

/* Priskolumn */
.price-column-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 8px;
}

.price-value-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #00A86B;
    line-height: 1;
}

.price-shop {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.price-offers {
    font-size: 10px;
    color: #888;
    font-style: italic;
}

.price-not-available {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Osäkerhetsvarning för pris */
.price-uncertainty-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF3CD, #FFE69C);
    color: #856404;
    border: 1px solid #FFE08A;
    font-weight: 600;
    margin-top: 4px;
    cursor: help;
    transition: all 0.2s ease;
}

.price-uncertainty-badge:hover {
    background: linear-gradient(135deg, #FFE69C, #FFD966);
    transform: scale(1.05);
}

.price-uncertainty-badge i {
    font-size: 11px;
}

/* GraphQL fallback badge */
.price-graphql-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #0D47A1;
    border: 1px solid #90CAF9;
    font-weight: 600;
    margin-top: 4px;
    cursor: help;
    transition: all 0.2s ease;
}

.price-graphql-badge:hover {
    background: linear-gradient(135deg, #BBDEFB, #90CAF9);
    transform: scale(1.05);
}

.price-graphql-badge i {
    font-size: 11px;
}

/* PricesAPI fallback badge (Level 5) */
.price-pricesapi-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: #1B5E20;
    border: 1px solid #A5D6A7;
    font-weight: 600;
    margin-top: 4px;
    cursor: help;
    transition: all 0.2s ease;
}

.price-pricesapi-badge:hover {
    background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
    transform: scale(1.05);
}

.price-pricesapi-badge i {
    font-size: 11px;
}

/* Varning för manuell sökning krävs */
.manual-search-required-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: #E65100;
    border: 1px solid #FFB74D;
    font-weight: 600;
    margin-bottom: 6px;
}

.manual-search-required-badge i {
    font-size: 12px;
    color: #FF6F00;
}

/* Laddningsindikator för pris */
.price-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #4A90E2;
    font-size: 12px;
    padding: 10px;
}

.price-loading i {
    font-size: 18px;
    animation: spin 1s linear infinite;
}

.price-loading span {
    font-weight: 500;
    font-style: italic;
}

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

/* Till Prisjakt-knapp */
.prisjakt-link-button {
    background: linear-gradient(135deg, #00A86B, #00D084);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 168, 107, 0.2);
}

.prisjakt-link-button:hover {
    background: linear-gradient(135deg, #00D084, #00F09E);
    box-shadow: 0 4px 8px rgba(0, 168, 107, 0.3);
    transform: translateY(-1px);
}

.prisjakt-link-button i {
    font-size: 11px;
}

/* Sök Prisjakt stil */
.prisjakt-search-style {
    background: linear-gradient(135deg, #4A90E2, #357ABD) !important;
}

.prisjakt-search-style:hover {
    background: linear-gradient(135deg, #357ABD, #2868A8) !important;
}

/* Åtgärdskolumn - kompakt layout */
.action-buttons-compact {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.action-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.overview-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.overview-btn:hover {
    background: linear-gradient(135deg, #357ABD, #2868A8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.cart-btn {
    background: linear-gradient(135deg, #00A86B, #00D084);
    color: white;
}

.cart-btn:hover {
    background: linear-gradient(135deg, #00D084, #00F09E);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 168, 107, 0.3);
}

/* Mobil-anpassning */
@media (max-width: 768px) {
    .tool-info-combined {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .tool-image-compact {
        width: 60px;
        height: 60px;
    }
    
    .tool-model-name {
        font-size: 12px;
    }
    
    .price-amount {
        font-size: 16px;
    }
    
    .prisjakt-link-button {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .action-btn-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .action-buttons-compact {
        gap: 8px;
    }
}

/* Stil för yrkesknappar */
.profession-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}
.profession-button {
  background: linear-gradient(45deg, #00539C, #00A6FF);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
}
.profession-button:hover {
  background: linear-gradient(45deg, #003F7D, #007ACC);
  transform: scale(1.05);
}
.profession-button:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 166, 255, 0.8);
}
#chat_history:empty::before {
  content: "Börja chatta med AI – den rekommenderar alltid max 5 verktyg från er databas";
  color: #718096;
  font-style: italic;
  text-align: center;
  padding: 20px;
  display: block;
}
/* === NY: Stil för yrkesknappar i chat === */
.profession-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.profession-button {
  background: linear-gradient(45deg, #00539C, #00A6FF);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 120px;
}
.profession-button:hover {
  background: linear-gradient(45deg, #003F7D, #007ACC);
  transform: scale(1.05);
}
.profession-button:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 166, 255, 0.8);
}
.bold {
    font-weight: bold;
    color: #ffffff; /* Vit färg för fetstilade ord, justera efter behov */
    background: linear-gradient(90deg, #00a6ff, #3399ff); /* Samma gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#gradient-title {
    background: linear-gradient(90deg, #00a6ff, #00539C, #00a6ff);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15); /* Lätt textskugga för bättre kontrast */
    transition: box-shadow 0.3s ease, animation-duration 0.3s ease;
}
#gradient-title:hover::before {
    transform: rotate(360deg) translate(50%, 50%);
    background: rgba(0, 132, 255, 0.1);
}
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
#gradient-title:hover {
    animation: gradientShift 4s ease infinite;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}
#gradient-title .icon {
    margin-right: 10px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}
/* Modern minimalistisk design */
.title-background {
    margin-bottom: 10px;
}

#gradient-title {
    font-size: 2.2rem !important;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 12px 20px !important;
    margin-bottom: 0 !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 0.9rem !important;
    margin: -50px auto 20px auto !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.5 !important;
    text-align: center;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 300;
    max-width: 550px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 3px solid #00A6FF;
    border-right: 3px solid #00539C;
}

.subtitle .bold {
    font-weight: 600;
    color: #00A6FF !important;
    -webkit-text-fill-color: #00A6FF !important;
    background: none !important;
}

.separator {
    width: 40% !important;
    height: 2px !important;
    background: linear-gradient(90deg, 
        transparent, 
        #00539C, 
        #00A6FF, 
        #00539C, 
        transparent) !important;
    margin: 5px auto 15px auto !important;
    opacity: 0.5;
}
/* Sökfält och knapp */
.search-bar {
    position: relative; /* Gör search-bar till en relativ förälder för absolut positionering */
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.search-bar input {
    padding: 10px; /* Padding i sökfältet */
    font-size: 1rem; /* Textstorlek */
    border: 1px solid #00b3ff !important; /* Tunn ram */
    width: 60%; /* Bredare sökfält */
    max-width: 500px; /* Maxbredd för att förhindra att det blir för stort */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.highlight-red {
    color: red;
    background-color: transparent;
    font-weight: bold;
}
/* Subtil översikt-knapp (liknande chat) */
.overview-button-subtle {
    background: none;
    border: none;
    color: #00539C;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.overview-button-subtle:hover {
    color: #00A6FF;
}

/* Se till att table-buttons är kompakt */
.table-buttons {
    display: flex;
    flex-direction: row; /* Ändra till rad för att ha knappar bredvid varandra, om du vill */
    gap: 10px;
    justify-content: center;
}
#search_results_container {
    display: none;
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    min-height: 300px;  /* Minsta höjd för att säkerställa synlighet */
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    position: relative;
    box-sizing: border-box;
}
#search_results_container.visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 300px !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}
#search_results_container.visible .datatable-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}
#search_results_container.visible .dataTables_wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 400px !important;
    height: auto !important;
    overflow: visible !important;
}
#search_results_container.visible table {
    display: table !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 300px !important;
    height: auto !important;
}
#search_results_container.visible table tbody {
    display: table-row-group !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 300px !important;
    height: auto !important;
}
#search_results_container.visible table tbody tr {
    display: table-row !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}
#search_results_container.visible table tbody td {
    display: table-cell !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}
/* Markerad text i gult */
.highlight {
    background-color: yellow;
    font-weight: bold;
}
/* Länk i botten av sökresultatet */
.continue-search {
    margin-top: 10px;
    text-align: center;
}
.continue-search a {
    color: #ffffff;
    background-color: #007bff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}
.continue-search a:hover {
    background-color: #0056b3;
}
/* Exempel på enkel styling för tabellen */
.table-search-results {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
}
.table-search-results th, .table-search-results td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}
.table-search-results img {
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
.bold {
    font-weight: bold;
    font-family: 'Titillium Web', sans-serif;
}
.header h1 {
    font-family: 'Titillium Web', sans-serif;
    padding-top: 40px;
}
.header .text-center {
    margin-bottom: -50px;
}
.header .text-center.pb-4 {
    padding-bottom: 50px;
}
#features-section .row {
    margin-left: 0;
    margin-right: 0;
}
.cta-button {
    background: linear-gradient(45deg, #00539C, #00A6FF);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}
.cta-button:hover {
    background: linear-gradient(45deg, #003F7D, #007ACC);
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
    color:#ffffff;
}
a.cta-button:hover {
    text-decoration: none;
    transform: scale(1.1);
}
.cta-button:active {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}
.cta-button:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 166, 255, 0.8);
    transform: scale(1.1);
}
.discover-button {
    font-size: 1.5rem !important;
    animation: pulse-wave 2s infinite;
}
/* Alternativt: Lägg till en hover-effekt för extra tydlighet */
.discover-button:hover {
    animation: none; /* Stoppa den kontinuerliga pulsen vid hover */
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 166, 255, 0.7);
}
/* Animation för "Upptäck mer"-knappen */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 166, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 166, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 166, 255, 0);
    }
}
#toolDTSAll,
#toolDTSM {
    font-weight: 1000 !important;
    font-size: 1rem;
}
#toolModel {
    text-transform: capitalize;
}
.form-control {
    width: 100% !important; /* Full bredd */
    margin: 20px auto !important; /* Centrerar fältet med extra marginal */
    padding: 20px 25px !important; /* Ger mer utrymme inuti */
    font-size: 1.2rem; /* Lite större text */
    color: #333 !important; /* Mörk text för kontrast */
    background: linear-gradient(145deg, #f0f4f8, #d9e2ec) !important; /* Mjuk gradient för modern känsla */
    border: 2px solid #00539C !important; /* Stark blå kant */
    border-radius: 12px !important; /* Rundare hörn för en mjukare känsla */
    box-shadow: 0 8px 15px rgba(0, 83, 156, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.5) !important; /* Djup och inre skuggor */
    transition: all 0.4s ease !important; /* Mjukare animation */
}
/* Effekt vid hover */
.form-control:hover {
    background: linear-gradient(145deg, #e6eff8, #cdd8e2) !important; /* Ljusare gradient */
    border-color: #007ACC !important; /* Accentfärg */
    box-shadow: 0 12px 20px rgba(0, 122, 204, 0.3),
                inset 0 2px 6px rgba(255, 255, 255, 0.6) !important; /* Förstärkt djup */
}
/* Effekt vid fokus */
.form-control:focus {
    background: linear-gradient(145deg, #d9e2ec, #f0f4f8) !important; /* Lätt omkastad gradient */
    border-color: #00d9ff !important; /* Ljus orange för en aktiv känsla */
    box-shadow: 0 15px 25px rgba(0, 140, 255, 0.4),
                inset 0 3px 6px rgba(255, 255, 255, 0.7) !important; /* Glow-effekt */
    outline: none !important; /* Tar bort standard-outline */
}
/* Anpassar textens placeholder för en lyxig känsla */
.form-control::placeholder {
    color: #888 !important; /* Diskret grå färg */
    font-style: italic !important; /* Elegant kursiv stil */
    transition: color 0.3s ease !important; /* Smidig övergång */
}
/* Placeholder-effekt vid hover */
.form-control:hover::placeholder {
    color: #555 !important; /* Lite mörkare vid hover */
}
/* Placeholder-effekt vid fokus */
.form-control:focus::placeholder {
    color: #222 !important; /* Nästan svart vid fokus */
}
tbody tr {
    background-color: var(--white);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
tbody tr:hover {
    background-color: #f1f1f1;
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* ==============================
   Mobil-anpassning
============================= */
/* Responsiv design */
@media (max-width: 768px) {

    .form-control{
      margin: -5px auto !important;
    }
    /* Gör tabellen 100% bred */
    .table {
        width: 100%;
        table-layout: fixed; /* Hjälper till med layouten */
        overflow-x:hidden;
        border-spacing: 0 10px !important;
    }
    /* Justera fontstorlek och padding i tabellhuvud och celler */
    .table thead th,
    .table tbody td {
        font-size: 10px !important;
        padding: 4px;
        word-wrap: break-word; /* Tillåt radbrytning inom celler */
    }
    /* Minska bildstorleken */
    .table tbody td img.tool-image {
        max-width: 50px;
        max-height: 50px;
    }
    /* Justera storleken på knapparna */
    .table-buttons .overview-button,
    .table-buttons .recensera-button {
        width: 90%;
        padding: 5px;
        font-size: 6.5px;
    }
    .table-buttons{
        gap: 5px !important;
    }
    .recensera-button{
        font-size: 6.5px !important;
    }
    /* Minska paddings i celler ytterligare */
    .table tbody td {
        padding: 2px;
    }
    table.dataTable tbody th,
    table.dataTable tbody td{
        padding: 7px 0px !important;
    }
    /* Se till att texten inte överskrider cellens bredd */
    .table thead th,
    .table tbody td {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Minska bredden på Tillverkare-kolumnen */
    .table th:nth-child(3),
    .table td:nth-child(3) {
        width: 15%; /* Justera till önskad bredd, t.ex. 15% av tabellen */
    }
    /* Justera marginalerna runt tabellen */
    .datatable-container {
        width: 100%;
        margin: 0 auto;
        padding: 0 5px; /* Lägg till lite sidpadding */
    }
    .navbar .search-icon {
        display: none !important;
    }
    #gradient-title {
        font-size: 2.5rem;
        padding: 10px 15px;
        margin-top:15px;
    }
    .title-background {
        padding: 5px 10px;
    }
    #gradient-title:hover::before {
        display:none !important;
    }
}
@media (max-width: 480px) {
    #gradient-title {
        font-size: 2rem;
        padding: 8px 12px;
    }
    .title-background {
        padding: 4px 8px;
    }
}


/* 4. FÖRBÄTTRAD CSS FÖR FILTER CONTAINER */
.custom-filters {
  backdrop-filter: blur(10px);
  padding: 25px 30px !important;
  margin: 35px auto 30px auto !important; /* Centrera horisontellt */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important; /* Centrera innehåll */
  align-items: center !important;
  max-width: 1200px !important; /* Begränsa bredd */
  width: 90% !important; /* Responsiv bredd */
  margin-left: 105px !important;
}

.filter-item-enhanced {
  position: relative;
  margin-bottom: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* Centrera innehåll i varje filter-item */
  justify-content: center !important;
}

.filter-label-enhanced {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #00539C !important;
  margin-bottom: 8px !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* Centrera text */
  gap: 6px;
  background: linear-gradient(90deg, rgba(0, 83, 156, 0.1), transparent);
  padding: 4px 12px;
  border-radius: 8px;
  border-left: 3px solid #00539C;
  width: 100% !important;
  text-align: center !important;
}

/* Border radius och centrerad text */
.custom-select-enhanced {
    border-radius: 14px !important;
    text-align: center !important;
    text-align-last: center !important;
}

/* Dropdown-listan */
.select2-container .select2-dropdown {
    border-radius: 14px !important;
}

/* Centrera text i dropdown alternativ */
.select2-container .select2-results__option {
    text-align: center !important;
}

/* Centrera valt värde i dropdown-knappen */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    text-align: center !important;
    padding-right: 30px !important; /* Kompensera för pil */
}

.custom-select-enhanced {
  width: 240px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px 45px 14px 20px !important;
  background: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  text-align: center !important; /* Centrera text i dropdown */
  text-align-last: center !important; /* Centrera valt alternativ */
  margin: 0 auto !important; /* Centrera elementet */
}

.custom-select-enhanced:hover {
  border-color: #00A6FF !important;
  box-shadow: 
    0 6px 20px rgba(0, 83, 156, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-1px);
}

.custom-select-enhanced:focus {
  outline: none !important;
  border-color: #00539C !important;
  box-shadow: 
    0 0 0 3px rgba(0, 83, 156, 0.15),
    0 6px 20px rgba(0, 83, 156, 0.12) !important;
}
/* PRO-filter förbättrat */
.pro-filter-enhanced {
  border-color: #00539C !important;
  background: linear-gradient(135deg, rgba(0, 83, 156, 0.08) 0%, rgba(0, 166, 255, 0.08) 100%) !important;
  position: relative !important;
}

.pro-filter-enhanced::after {
  content: "PRO" !important;
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background: linear-gradient(135deg, #00539C 0%, #00A6FF 100%) !important;
  color: white !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(0, 83, 156, 0.3);
}

/* Tooltip förbättrad */
.filter-tooltip-enhanced {
  position: absolute !important;
  bottom: -45px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
  color: white !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.3s ease !important;
  width: max-content !important;
  max-width: 280px !important;
  text-align: center !important;
  z-index: 100 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-tooltip-enhanced::after {
  content: "" !important;
  position: absolute !important;
  top: -6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border-width: 0 8px 8px 8px !important;
  border-style: solid !important;
  border-color: transparent transparent #2d3748 transparent !important;
}

.pro-filter-enhanced:hover + .filter-tooltip-enhanced {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(-2px) !important;
}
.reset-button-enhanced {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px 20px !important;
  color: #00539C !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* Centrera innehåll */
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin: 0 auto !important; /* Centrera knappen */
}


.reset-button-enhanced:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  border-color: #00539C !important;
  transform: translateY(-2px) !important;
  box-shadow: 
    0 8px 20px rgba(0, 83, 156, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
}

.reset-text {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Mobilanpassning */
@media (max-width: 1024px) {
  .custom-filters {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px !important;
    width: 95% !important;
  }
  
  .filter-item-enhanced {
    width: 100% !important;
  }
  
  .custom-select-enhanced,
  .search-input-container {
    width: 100% !important;
    max-width: 300px !important;
  }
  
  .reset-button-enhanced {
    width: 100% !important;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .custom-filters {
    padding: 18px !important;
    border-radius: 16px !important;
  }
  
  .filter-label-enhanced {
    font-size: 12px !important;
  }
  
  .custom-select-enhanced,
  .search-input-enhanced {
    padding: 12px 40px 12px 16px !important;
    font-size: 14px !important;
  }
}

/* Sökfält förbättrat */
.search-input-container {
  position: relative;
  width: 240px !important;
  margin: 0 auto !important; /* Centrera sökfältet */
}

.search-input-enhanced {
  width: 100% !important;
  padding: 14px 45px 14px 20px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  background: #ffffff !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important; /* Centrera placeholder text */
}

.search-input-enhanced:focus {
  outline: none !important;
  border-color: #00539C !important;
  box-shadow: 
    0 0 0 3px rgba(0, 83, 156, 0.15),
    0 6px 20px rgba(0, 83, 156, 0.12) !important;
}

.search-input-enhanced::placeholder {
  color: #94a3b8 !important;
}

.search-icon-inside {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 16px;
  pointer-events: none;
}
.neon-bar {
  height: 3px !important;
  background: linear-gradient(90deg, #00539C 0%, rgba(0, 83, 156, 0) 100%) !important;
  width: 0 !important;
  margin-top: 4px !important;
  transition: width 0.3s ease !important;
  border-radius: 3px !important;
}
.shiny-text {
  display: inline-block;
  font-size: 14px;
  color: #718096;
  opacity: 0;
  transition: opacity 0.3s ease;
  left: 50%; /* NY: Centrera horisontellt */
  transform: translateX(-50%);
  width: max-content; /* NY: Anpassa bredden efter texten */
  text-align: center; /* NY: Centrera texten */
  z-index: 1; /* NY: Säkerställ att den är ovanför andra element */
}
/* Tooltip för pro-funktioner */
.filter-tooltip {
  position: absolute !important;
  bottom: -40px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #2d3748 !important;
  color: white !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease !important;
  width: max-content !important;
  max-width: 300px !important;
  text-align: center !important;
  z-index: 100 !important;
}
.filter-tooltip::after {
  content: "" !important;
  position: absolute !important;
  top: -6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border-width: 0 6px 6px 6px !important;
  border-style: solid !important;
  border-color: transparent transparent #2d3748 transparent !important;
}
.pro-filter:hover + .filter-tooltip {
  opacity: 1 !important;
}

/* Mobilanpassning */
@media (max-width: 768px) {
  .custom-filters {
    gap: 12px !important;
    padding: 15px !important;
    margin-bottom: 8px !important;
  }
  .filter-item {
    width: 100% !important;
  }
  .custom-select {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
  .reset-button {
    width: 15% !important;
    padding: 12px !important;
    margin-top: -35px;
    margin-bottom: -16px;
  }
  .search-container {
    padding: 0 15px !important;
  }
  .model_search {
    padding: 12px 16px !important;
  }
}
/* Animationer */
@keyframes pulse {
  0% { opacity: 0.6 !important; }
  50% { opacity: 1 !important; }
  100% { opacity: 0.6 !important; }
}
.loading-animation {
  animation: pulse 1.5s infinite ease-in-out !important;
}
.filter-item {
  margin-bottom: 12px !important; /* Ger konsekvent spacing */
}
.pro-filter::after {
  top: -10px !important;
  right: 5px !important; /* Mindre disruptiv placering */
}
/* Dropdown-menyer */
.custom-select {
  color: #000000 !important;
  background-color: #ffffff !important;
  /* ... befintliga stilar ... */
}
/* Alternativ i dropdown-listan */
.select2-container .select2-results__option {
  color: #000000 !important;
  background-color: #ffffff !important;
}
.select2-container .select2-results__option:hover {
  color: #ffffff !important;
  background-color: #00539C !important;
}
/* PRO-filter specifikt */
.pro-filter {
  color: #000000 !important;
  background-color: rgba(0, 83, 156, 0.05) !important;
}

   /* ==================== MODERN CHAT INTERFACE ==================== */
    #ai_chat_section {
        margin-top: 20px;
        margin-bottom: 30px;
        background: #091c32;
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s ease;
        padding-left: 100px;
        padding-right: 100px;
    }

        /* NY: Smooth transitions för visibility */
    #ai_chat_section, #filtersystem, #search_results_container {
        transition: opacity 0.3s ease, visibility 0.3s ease;
        opacity: 1;
        visibility: visible;
    }

    #ai_chat_section[style*="display: none;"], #filtersystem[style*="display: none;"], #search_results_container[style*="display: none;"] {
        opacity: 0;
        visibility: hidden;
    }

    /* Chat header */
    .chat-header {
        background: linear-gradient(90deg, #00539C 0%, #00A6FF 100%);
        color: white;
        padding: 16px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .chat-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .chat-header h3 i {
        font-size: 20px;
    }

    .chat-status {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        background: rgba(255, 255, 255, 0.15);
        padding: 4px 12px;
        border-radius: 20px;
    }

    .status-indicator {
        width: 8px;
        height: 8px;
        background: #4ade80;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.5; }
        100% { opacity: 1; }
    }

/* Chat container - UPPDATERAD FÖR INPUT INUTI */
.chat-container {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-height: 700px;
    background: #091c32;
    overflow: hidden; /* Viktigt: sätt overflow hidden på parent */
    border-radius: 16px;
}

/* Chat history - UPPDATERAD FÖR ATT GE PLATS FÖR INPUT */
#chat_history {
    flex: 1;
    padding: 24px;
    padding-top: 38px;
    padding-bottom: 10px;
    overflow-y: auto !important;  /* Lägg till !important för att tvinga */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Förbättrad scrollning på iOS */
    background: #091c32;
    min-height: 0; /* Viktigt för flexbox */
}

/* Lägg till denna CSS för att säkerställa scroll */
#chat_history::-webkit-scrollbar {
    width: 8px;
}

#chat_history::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#chat_history::-webkit-scrollbar-thumb {
    background: #00539C;
    border-radius: 4px;
}

#chat_history::-webkit-scrollbar-thumb:hover {
    background: #00A6FF;
}

    /* Empty chat state */
    #chat_history:empty::before {
        content: "";
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: #94a3b8;
        font-style: italic;
        text-align: center;
        padding: 40px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center 30%;
        background-size: 48px;
        opacity: 0.6;
    }

    #chat_history:empty::after {
        content: "Börja chatta med AI – den rekommenderar alltid max 5 verktyg från er databas";
        margin-top: 120px;
        font-size: 15px;
        color: #64748b;
        max-width: 400px;
        line-height: 1.5;
    }

    /* Chat bubbles */
    .chat-bubble {
        max-width: 85%;
        padding: 14px 18px;
        border-radius: 18px;
        font-size: 15px;
        line-height: 1.5;
        word-wrap: break-word;
        position: relative;
        animation: fadeIn 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .chat-bubble.user {
        align-self: flex-end;
        background: linear-gradient(135deg, #00539C 0%, #00A6FF 100%);
        color: white;
        border-bottom-right-radius: 4px;
        margin-left: 15%;
    }

    .chat-bubble.ai {
        align-self: flex-start;
        background: white;
        color: #334155;
        border-bottom-left-radius: 4px;
        border: 1px solid #e2e8f0;
        margin-right: 35%;
    }

    /* AI bubble with tools */
    .chat-bubble.ai.has-tools {
        padding-bottom: 8px;
        width:38rem;
    }

    /* Bubble metadata */
    .bubble-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .bubble-user {
        font-weight: 600;
        color: #00539C;
    }

    .bubble-time {
        color: #94a3b8;
    }

    .chat-bubble.user .bubble-time {
        color: rgba(255, 255, 255, 0.8);
    }

    /* AI tools list in chat */
    .ai-tools-container {
        margin-top: 16px;
        border-top: 1px solid #e2e8f0;
        padding-top: 16px;
    }

    .ai-tools-container h4 {
        margin: 0 0 12px 0;
        font-size: 14px;
        color: #00539C;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .ai-tools-container h4 i {
        font-size: 16px;
    }

    .ai-tools-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .ai-tool-item {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.2s ease;
    }

    .ai-tool-item:hover {
        border-color: #00539C;
        box-shadow: 0 4px 12px rgba(0, 83, 156, 0.1);
        transform: translateY(-2px);
    }

    .ai-tool-image {
        width: 50px;
        height: 50px;
        object-fit: contain;
        border-radius: 8px;
        background: white;
        padding: 4px;
        border: 1px solid #e2e8f0;
    }

    .ai-tool-info {
        flex: 1;
    }

    .ai-tool-name {
        font-weight: 600;
        color: #1e293b;
        font-size: 14px;
        margin-bottom: 4px;
        text-align: left;
    }

    .ai-tool-specs {
        display: flex;
        gap: 12px;
        font-size: 12px;
        color: #64748b;
    }

    .ai-tool-price {
        color: #00539C;
        font-weight: 600;
    }

    .ai-tool-score {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #f0f9ff;
        color: #0369a1;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
    }

    .ai-tool-actions {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .add-to-cart-button-ai {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 16px;
    }

    .add-to-cart-button-ai:hover:not(.added) {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .add-to-cart-button-ai.added {
        background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
        cursor: not-allowed;
    }

    .view-tool-button {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #00539C;
        background: white;
        color: #00539C;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 14px;
    }

    .view-tool-button:hover {
        background: #00539C;
        color: white;
    }

    /* Profession buttons */
    .profession-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px 24px;
    }

    .profession-button {
        background: white;
        color: #00539C;
        border: 1px solid #cbd5e1;
        padding: 10px 18px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 24px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 160px;
        justify-content: center;
    }

    .profession-button i {
        font-size: 14px;
        opacity: 0.8;
    }

    .profession-button:hover {
        background: linear-gradient(135deg, #00539C 0%, #00A6FF 100%);
        color: white;
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 83, 156, 0.15);
    }

    .profession-button.active {
        background: linear-gradient(135deg, #00539C 0%, #00A6FF 100%);
        color: white;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(0, 83, 156, 0.2);
    }

    .chat-input-area:hover {
      box-shadow: 0 8px 30px rgba(0, 83, 156, 0.12);
      background: linear-gradient(135deg, rgba(0, 83, 156, 0.08) 0%, rgba(0, 166, 255, 0.08) 100%);
    }

    /* Chat input area - NU INUTI CHAT-CONTAINER */
    .chat-input-area {
        padding: 16px 24px 20px 24px;
        background: linear-gradient(135deg, rgba(0, 83, 156, 0.08) 0%, rgba(0, 166, 255, 0.08) 100%);
        border-top: 1px solid rgba(0, 83, 156, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0; /* Förhindra att den krymper */
    }

    .chat-input-wrapper {
        display: flex;
        gap: 12px;
        align-items: flex-end;
        max-width: 800px;
        margin: 0 auto;
    }

    .chat-input-container {
        flex: 1;
        position: relative;
    }

/* Positionera skicka-knappen inuti textområdet - HÖJDCENTERERAD */
.chat-input-container {
    flex: 1;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
}

#ai_prompt {
    width: 100%;
    min-height: 44px; /* Börja kompakt med 1 rad */
    max-height: 120px; /* Max 4-5 rader */
    height: 44px; /* Initial höjd */
    padding: 12px 60px 12px 18px !important; /* Mer padding till höger för knappen */
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px; /* Minst 16px för att förhindra iOS-zoom vid fokus */
    line-height: 1.5;
    resize: none; /* Disable manual resize, vi hanterar det med JS */
    overflow-y: hidden; /* Dölj scrollbar tills max-höjd */
    transition: height 0.2s ease, border-color 0.3s ease;
    background: white;
}

/* Skicka-knapp placerad inuti textområdet - CENTRERAD VERTIKALT */
#submit_prompt {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important; /* Placera på mitten */
    transform: translateY(-50%) !important; /* Justera för att verkligen centrera */
    height: 44px !important;
    width: 44px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #00539C 0%, #00A6FF 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(0, 83, 156, 0.3) !important;
    margin: 0 !important; /* Säkerställ ingen margin */
}

/* Pil-ikon i mitten */
#submit_prompt i {
    font-size: 16px !important;
    transition: transform 0.2s ease !important;
}

/* Hover-effekt med behåll centrering */
#submit_prompt:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.1) !important; /* Behåll translateY */
    box-shadow: 0 6px 20px rgba(0, 83, 156, 0.4) !important;
    background: linear-gradient(135deg, #00A6FF 0%, #00539C 100%) !important;
}

/* Klick-effekt */
#submit_prompt:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95) !important; /* Behåll translateY */
}

/* Inaktiverad (ingen text) */
#submit_prompt:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
}

/* ==================== BOKA MÖTE KNAPP - GRÖN NEON ==================== */
.book-meeting-button {
    /* Removed duplicate block, now using base.html styles and mobile override below */
}

.book-meeting-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.book-meeting-button:hover::before {
    left: 100%;
}

.book-meeting-button:hover {
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.9), inset 0 0 30px rgba(74, 222, 128, 0.5);
    transform: translateY(-3px);
    border-color: rgba(74, 222, 128, 0.8);
}

.book-meeting-button:active {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.6), inset 0 0 15px rgba(74, 222, 128, 0.3);
}

.book-meeting-text {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

.book-meeting-subtitle {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.85;
    display: block;
    letter-spacing: 0.5px;
}
    transform: translateY(-50%) !important; /* Behåll centrering även när disabled */
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.3) !important;
}

/* Puls-effekt när inmatning finns */
#submit_prompt.enabled {
    animation: pulse-submit 2s infinite !important;
}

@keyframes pulse-submit {
    0% {
        box-shadow: 0 4px 12px rgba(0, 83, 156, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 83, 156, 0.6), 0 0 0 8px rgba(0, 83, 156, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 83, 156, 0.3);
    }
}

/* Glow-effekt när fokus på textarea */
.chat-input-container:focus-within #submit_prompt:not(:disabled) {
    box-shadow: 0 0 0 3px rgba(0, 83, 156, 0.2), 0 4px 12px rgba(0, 83, 156, 0.3) !important;
}

/* Om du har rensningsknapp, placera den också vertikalt centrerad */
#clear_prompt {
    position: absolute !important;
    right: 60px !important; /* Placera till vänster om skicka-knappen */
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    font-size: 14px !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#clear_prompt:hover {
    color: #00539C !important;
    background: #f1f5f9 !important;
}

#clear_prompt:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* Mobilanpassning */
@media (max-width: 768px) {

    .compact-toggle-section{
        margin-top: -58px !important;
    }

    #ai_chat_section {
        padding-left: 0px;
        padding-right: 0px;
    }
    
    .chat-container {
        min-height: 350px;
        max-height: 600px;
    }

    #submit_prompt {
        height: 40px !important;
        width: 40px !important;
        right: 10px !important;
    }
    
    #submit_prompt i {
        font-size: 14px !important;
    }
    
    #ai_prompt {
        min-height: 44px !important; /* AUTO-EXPANDERANDE */
        max-height: 100px !important; /* Max på mobil */
        padding: 12px 55px 12px 14px !important;
        font-size: 16px !important; /* 16px förhindrar zoom på iOS */
    }
    
    .chat-input-area {
        padding: 12px 8px 16px 8px; /* Minskad padding för mer plats åt input */
    }
    
    .chat-input-wrapper {
        max-width: 100%; /* Utnyttja full bredd på mobil */
    }
    
    #clear_prompt {
        right: 55px !important;
    }
}
/* Glow-effekt när fokus på textarea */
.chat-input-container:focus-within #submit_prompt:not(:disabled) {
    box-shadow: 0 0 0 3px rgba(0, 83, 156, 0.2), 0 4px 12px rgba(0, 83, 156, 0.3) !important;
}

    /* Loading animation */
    #neon-loading {
        height: 3px;
        background: linear-gradient(90deg, #00539C 0%, #00A6FF 50%, #00539C 100%);
        background-size: 200% 100%;
        animation: loadingShimmer 1.5s infinite linear;
        margin: 16px 24px 8px;
        border-radius: 3px;
        display: none; /* Hidden by default, toggled via .active */
    }

    /* Make visible when active */
    #neon-loading.active {
        display: block;
    }

    @keyframes loadingShimmer {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }

    #loading-text {
        display: none; /* Hidden until .active */
        text-align: center;
        color: #ffffff; /* Brighter on dark background */
        font-size: 14px;
        font-weight: 600;
        margin: 8px 24px 16px;
        animation: pulse 2s infinite;
        opacity: 0;
        transition: opacity 0.25s ease, transform 0.25s ease;
        transform: translateY(4px);
        width: 100%;
        left: auto; /* override earlier centering rules */
    }

    /* Make visible when active */
    #loading-text.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    /* Panda Pax name + dots */
    #loading-text .panda-name {
        font-weight: 700;
        margin-right: 6px;
        color: #ffffff;
    }

    #panda-dots {
        display: inline-block;
        min-width: 1.2ch; /* Reserve width so layout doesn't jump */
    }

    /* Small screens: slightly larger text for readability */
    @media (max-width: 480px) {
        #loading-text { font-size: 15px; }
        
        .chat-container {
            min-height: 300px;
            max-height: 500px;
        }
        
        .chat-input-container {
            max-width: 100%;
        }
        
        #ai_prompt {
            min-height: 44px !important;
            max-height: 90px !important;
            padding: 10px 50px 10px 12px !important;
            font-size: 16px !important; /* Minst 16px för att förhindra iOS-zoom vid fokus */
        }
        
        .chat-input-area {
            padding: 10px 6px 14px 6px; /* Ännu mindre padding på små skärmar */
        }
        
        .chat-input-wrapper {
            max-width: 100%; /* Full bredd på små skärmar */
        }
    }
    }

    /* Typing indicator - hidden by default */
    .typing-indicator {
        display: none;
        align-self: stretch; /* full width */
        justify-content: center;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        padding: 12px 18px;
        margin: 12px 0 16px 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Show typing indicator when visible */
    .typing-indicator.show {
        display: flex;
    }

    .typing-dots {
        display: flex;
        gap: 6px;
        align-items: center;
        justify-content: center;
    }

    .typing-dot {
        width: 8px;
        height: 8px;
        background: #94a3b8;
        border-radius: 50%;
        animation: typingAnimation 1.4s infinite ease-in-out;
    }

    .typing-dot:nth-child(1) { animation-delay: -0.32s; }
    .typing-dot:nth-child(2) { animation-delay: -0.16s; }
    .typing-dot:nth-child(3) { animation-delay: 0s; }

    @keyframes typingAnimation {
        0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
        40% { transform: scale(1); opacity: 1; }
    }

    @media (max-width: 480px) {
        .typing-indicator { padding: 10px 12px; margin-bottom: 12px; }
        .typing-dot { width: 10px; height: 10px; }
    }

    /* Chat suggestions */
    .chat-suggestions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: -10px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .suggestion-chip {
        background: #f1f5f9;
        color: #475569;
        border: none;
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 16px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .suggestion-chip:hover {
        background: #00539C;
        color: white;
        transform: translateY(-1px);
    }

    /* Scrollbar styling */
    #chat_history::-webkit-scrollbar {
        width: 6px;
    }

    #chat_history::-webkit-scrollbar-track {
        background: transparent;
    }

    #chat_history::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

    #chat_history::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    .footer{
      margin-top: 10rem;
    }

    .toggle-text-left, .toggle-text-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-panda-container {
  position: relative;
  width: 60px;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.toggle-panda-full {
  width: auto;
  height: 75px;
  max-width: 400%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 83, 156, 0.25));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom center;
}

/* Effekt när PANDA PAX är aktiv */
.ai-toggle-label input:not(:checked) ~ .toggle-text-left .toggle-panda-full {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 6px 12px rgba(0, 166, 255, 0.4)) 
          brightness(1.05);
  animation: pandaFloat 3s ease-in-out infinite;
}

/* Panda flytande animation */
@keyframes pandaFloat {
  0%, 100% {
    transform: translateY(-5px) scale(1.1);
  }
  50% {
    transform: translateY(-10px) scale(1.12);
  }
}

/* Mobilanpassning */
@media (max-width: 768px) {

  .footer{
    margin-top: 0rem;
  }
  .toggle-text-left {
    min-width: 140px;
    gap: 10px;
    padding: 8px 12px;
  }
  
  .toggle-panda-container {
    width: 50px;
    height: 65px;
  }
  
  .toggle-panda-full {
    height: 60px;
  }
  
  .toggle-title {
    font-size: 16px;
  }
  
  .active-toggle-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .toggle-text-left {
    min-width: 120px;
    gap: 8px;
  }
  
  .toggle-panda-container {
    width: 40px;
    height: 55px;
  }
  
  .toggle-panda-full {
    height: 50px;
  }
}

/* CSS för chat med avatar - BEHÅLLER DIN TIDIGARE AVATAR-STIL */
.chat-bubble.ai.with-avatar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    max-width: 85%;
    align-self: flex-start;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00539C;
    box-shadow: 0 2px 8px rgba(0, 83, 156, 0.2);
    flex-shrink: 0;
    margin-top: 4px;
}

.chat-bubble-content {
    flex: 1;
    background: white;
    color: #334155;
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    animation: fadeIn 0.3s ease;
}

/* Animation för fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Special styling för första hälsningsmeddelandet */
.chat-bubble.ai.with-avatar.welcome-message .chat-avatar {
    border-color: #00A6FF;
    box-shadow: 0 0 10px rgba(0, 166, 255, 0.3);
    animation: avatarPulse 2s infinite;
}

@keyframes avatarPulse {
    0% { box-shadow: 0 0 5px rgba(0, 166, 255, 0.3); }
    50% { box-shadow: 0 0 15px rgba(0, 166, 255, 0.5); }
    100% { box-shadow: 0 0 5px rgba(0, 166, 255, 0.3); }
}

/* Användarmeddelanden (utan avatar) */
.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #00539C 0%, #00A6FF 100%);
    color: white;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.5;
    max-width: 85%;
    margin-bottom: 16px;
    margin-left: 15%;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Profession buttons styling (behåller din befintliga) */
.profession-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.profession-button {
    background: white;
    color: #00539C;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.profession-button:hover {
    background: linear-gradient(135deg, #00539C 0%, #00A6FF 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 83, 156, 0.15);
}

/* Mobilanpassning */
@media (max-width: 768px) {
    .chat-bubble.ai.with-avatar,
    .chat-bubble.user {
        max-width: 90%;
        gap: 8px;
    }
    
    .chat-avatar {
        width: 32px;
        height: 32px;
    }
    
    .chat-bubble-content,
    .chat-bubble.user {
        padding: 6px 3px;
        font-size: 12px;
    }
    
    .profession-button {
        min-width: 140px;
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ==================== SERVICE SEKTION ==================== */
.service-kit-section {
    margin: 60px auto;
    padding: 0 20px;
}

.service-kit-container {
    background: linear-gradient(135deg, #00539C 0%, #091c32 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 83, 156, 0.3);
}

.service-kit-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 166, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.service-kit-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.service-kit-icon i {
    font-size: 2.5rem;
    color: white;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-kit-container:hover .service-kit-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 166, 255, 0.6);
}

.service-kit-title {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.service-kit-description {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-kit-subtitle {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-kit-cta {
    position: relative;
    z-index: 1;
}

.service-kit-button {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 18px 40px !important;
    font-size: 1.1rem !important;
    background: white !important;
    color: #00539C !important;
    border-radius: 50px !important;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.service-kit-button:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
    color: #00539C !important;
    text-decoration: none;
    border-color: rgba(0, 166, 255, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
}

.service-kit-button:active {
    transform: translateY(-2px) scale(1.02) !important;
}

.service-kit-button i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.service-kit-button:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* Responsive design för Service */
@media (max-width: 992px) {
    .service-kit-container {
        padding: 50px 30px;
    }

    .service-kit-title {
        font-size: 2rem;
    }

    .service-kit-description {
        font-size: 1.1rem;
    }

    .service-kit-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .service-kit-section {
        margin: 40px auto;
    }

    .service-kit-container {
        padding: 40px 25px;
        border-radius: 15px;
    }

    .service-kit-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
    }

    .service-kit-icon i {
        font-size: 2rem;
    }

    .service-kit-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .service-kit-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .service-kit-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .service-kit-button {
        padding: 14px 28px !important;
        font-size: 1rem !important;
        gap: 8px;
    }

    .service-kit-button i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .service-kit-container {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .service-kit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .service-kit-icon i {
        font-size: 1.8rem;
    }

    .service-kit-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .service-kit-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .service-kit-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .service-kit-button {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
        gap: 6px;
        width: 100%;
        justify-content: center;
    }

    .service-kit-button i {
        font-size: 1rem;
    }
}

/* ==================== VÅR PROCESS SEKTION ==================== */
.process-section {
    margin: 5px;
    padding: 80px 0;
    background: linear-gradient(135deg, #091c32 0%, #0a2540 100%);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 83, 156, 0.1);
    box-shadow: 0 4px 20px rgba(0, 83, 156, 0.08);
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 166, 255, 0.3), transparent);
}

.process-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.process-title h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00A6FF, #00539C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.process-title p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Process container */
.process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Progress line */
.progress-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        #00539C 0%, 
        #00A6FF 25%, 
        #00A6FF 75%, 
        #00539C 100%);
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #00A6FF, #00539C);
    z-index: 2;
    transition: height 0.5s ease;
}

.progress-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #00A6FF;
    border-radius: 50%;
    border: 4px solid #091c32;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 166, 255, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 166, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 166, 255, 0);
    }
}

/* Process steps */
.process-steps {
    position: relative;
    z-index: 2;
}

.process-step {
    display: flex;
    margin-bottom: 100px;
    opacity: 0.4;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.process-step.active {
    opacity: 1;
    transform: translateY(0);
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00539C, #00A6FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    z-index: 4;
    border: 4px solid #091c32;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.step-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.process-step:nth-child(odd) .step-content {
    margin-left: auto; /* Höger sida för udda steg */
}

.process-step:nth-child(even) .step-content {
    margin-right: auto; /* Vänster sida för jämna steg */
}

.process-step:nth-child(odd) .step-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #00539C;
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.process-step:nth-child(even) .step-content::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #00A6FF;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
}

.step-content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(0, 166, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 83, 156, 0.2);
}

.step-icon {
    font-size: 40px;
    color: #00A6FF;
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.step-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 20px;
}

.step-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.step-features li {
    padding: 8px 0;
    color: #94a3b8;
    position: relative;
    padding-left: 25px;
}

.step-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00A6FF;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .process-section {
        padding: 40px 0;
    }
    
    .process-title h2 {
        font-size: 2.2rem;
    }
    
    .progress-line {
        left: 30px;
    }
    
    .step-number {
        left: 30px;
    }
    
    .step-content {
        width: calc(100% - 100px);
        margin-left: 100px !important;
        margin-right: 0 !important;
        padding: 25px;
    }
    
    .process-step:nth-child(odd) .step-content::before,
    .process-step:nth-child(even) .step-content::before {
        left: -15px;
        right: auto;
        clip-path: polygon(100% 0, 100% 100%, 0 50%);
    }
    
    .process-step {
        margin-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .step-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        padding: 20px;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
}

/* Animation för när steg blir aktiva */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-step.active {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==================== SENASTE NYTT SEKTION ==================== */
.latest-news-section {
    padding: 80px 0;
    background: var(--light, #F5F9FC);
    position: relative;
}
.latest-news-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}
.latest-news-section .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #091c32;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
}
.latest-news-section .section-header p {
    color: #475569;
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
}
.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,83,156,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,83,156,0.12);
}
.news-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #00539C 0%, #00A6FF 100%);
}
.news-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #64748b;
}
.news-card__tag {
    background: #DBEAFE;
    color: #00539C;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
}
.news-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #091c32;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}
.news-card__title a {
    color: inherit;
    text-decoration: none;
}
.news-card__title a:hover {
    color: #00539C;
}
.news-card__excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
}
.news-card__link {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #00539C;
    text-decoration: none;
}
.news-card__link:hover {
    color: #00A6FF;
}
.latest-news-section .section-cta {
    text-align: center;
    margin-top: 36px;
}
.latest-news-section .section-cta a {
    display: inline-block;
    padding: 10px 28px;
    border: 2px solid #00539C;
    color: #00539C;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.latest-news-section .section-cta a:hover {
    background: #00539C;
    color: #fff;
}

.content-lane {
    max-width: 1100px;
    margin: 0 auto 48px;
    padding: 0 20px;
}
.content-lane:last-of-type {
    margin-bottom: 0;
}
.content-lane__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 3px solid transparent;
}
.content-lane--guides .content-lane__head {
    border-bottom-color: #00539C;
}
.content-lane--news .content-lane__head {
    border-bottom-color: #f59e0b;
}
.content-lane__head h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #091c32;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-lane__head h3 i {
    font-size: 1.1rem;
    opacity: 0.9;
}
.content-lane--guides .content-lane__head h3 i { color: #00539C; }
.content-lane--news .content-lane__head h3 i { color: #d97706; }
.content-lane__head p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #64748b;
    flex: 1 1 100%;
}
.content-lane__link {
    font-size: 14px;
    font-weight: 600;
    color: #00539C;
    text-decoration: none;
    white-space: nowrap;
}
.content-lane__link:hover { text-decoration: underline; }
.news-card--guide {
    border-top: 4px solid #00539C;
}
.news-card--news {
    border-top: 4px solid #f59e0b;
}
.news-card__type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 6px;
}
.news-card__type--guide {
    background: #dbeafe;
    color: #00539C;
}
.news-card__type--news {
    background: #fef3c7;
    color: #b45309;
}
.news-card__img--guide {
    background: linear-gradient(135deg, #00539C 0%, #003b70 100%);
}
.news-card__img--news {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}
.content-lane__empty {
    text-align: center;
    padding: 28px 20px;
    color: #64748b;
    font-size: 14px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
}

@media (max-width: 768px) {
    .news-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
    .latest-news-section {
        padding: 48px 0;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .news-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== KONTAKTA OSS SEKTION ==================== */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a2540 0%, #091c32 100%);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 166, 255, 0.3), transparent);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-title {
    text-align: center;
    margin-bottom: 60px;
}

.contact-title h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00A6FF, #00539C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.contact-title p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* ==================== UPPDATERAD KONTAKTINFO MED VERTIKALT PORTRÄTT ==================== */
.contact-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Genomskinligt vertikalt porträtt */
.vd-portrait-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.vd-portrait-vertical {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 15px;
    border: none; /* Ingen border */
    background: none; /* Ingen bakgrund */
    padding: 0; /* Ingen padding */
    margin: 0 auto 20px;
    box-shadow: none; /* Ingen skugga som standard */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: brightness(1.05) contrast(1.1); /* Förbättrar bilden lite */
}

/* Hover-effekter - BARA vid hover */
.vd-portrait-vertical:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 83, 156, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1); /* Subtilt ljus inuti */
    filter: brightness(1.1) contrast(1.15); /* Ljusare vid hover */
}

/* Ingen gradient-border, bara vid hover */
.vd-portrait-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 83, 156, 0) 0%, 
        rgba(0, 166, 255, 0) 100%);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.vd-portrait-vertical:hover::before {
    opacity: 0; /* Fortfarande genomskinlig även vid hover */
}

.vd-portrait-vertical img {
    width: 100%;
    height: 100%;
    border-radius: 15px; /* Behåll rundade hörn */
    object-fit: cover;
    display: block;
    background: none; /* Ingen bakgrund på själva bilden */
}

/* Kontaktinformation för VD - förenklad */
.vd-contact-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 320px;
}

.vd-contact-icon i{
  margin-right: 0px!important;
}

.vd-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
}

.vd-contact-item:last-child {
    margin-bottom: 0;
}

.vd-contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 83, 156, 0.2);
}

.vd-contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00539C, #00A6FF);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.vd-contact-item:hover .vd-contact-icon {
    background: linear-gradient(135deg, #00A6FF, #00539C);
    transform: scale(1.1);
}

.vd-contact-icon i {
    font-size: 20px;
    color: white;
}

.vd-contact-details h3,
.vd-contact-details h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.vd-contact-details p,
.vd-contact-details a {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vd-contact-details a:hover {
    color: #00A6FF;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-info {
        padding: 30px 20px;
    }
    
    .vd-portrait-vertical {
        max-width: 240px;
    }
    
    .vd-contact-info {
        padding: 20px;
    }
    
    .vd-contact-item {
        padding: 12px;
    }
    
    .vd-contact-icon {
        width: 42px;
        height: 42px;
        margin-right: 15px;
    }
    
    .vd-contact-icon i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .vd-portrait-vertical {
        max-width: 200px;
    }
    
    .vd-contact-item {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .vd-contact-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
}

/* Kontaktformulär */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-container h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    color: #94a3b8;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #00A6FF;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 166, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #64748b;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Radio button group */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 1rem;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #64748b;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-input:checked + .radio-custom {
    border-color: #00A6FF;
    background: #00A6FF;
}

.radio-input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-input {
    display: none;
}

/* Submit button */
.submit-btn {
    background: linear-gradient(135deg, #00539C, #00A6FF);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 83, 156, 0.3);
    background: linear-gradient(135deg, #00A6FF, #00539C);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn i {
    margin-right: 10px;
}

/* Form message */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    display: block;
}

.form-message.loading {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    display: block;
}

/* Map section */
.map-section {
    margin-top: 60px;
}

.map-section h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.map-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 300px;
    position: relative;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 83, 156, 0.2), rgba(0, 166, 255, 0.2));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.map-placeholder i {
    font-size: 60px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.3);
}

.map-placeholder p {
    font-size: 1.1rem;
    color: #94a3b8;
    text-align: center;
    max-width: 400px;
}

/* Responsive design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-title h2 {
        font-size: 2.2rem;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 30px;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form-container {
        padding: 20px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
    }
    
    .info-icon i {
        font-size: 18px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Styling för förstort porträtt */
.vd-portrait-vertical.enlarged {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 20px !important;
    border-width: 6px !important;
}

/* Animera in kontakt-items */
.vd-contact-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.vd-contact-item:nth-child(1) { animation-delay: 0.2s; }
.vd-contact-item:nth-child(2) { animation-delay: 0.4s; }

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

/* Bild fallback styling */
.vd-portrait-vertical img {
    transition: transform 0.3s ease;
}

.vd-portrait-vertical:hover img {
    transform: scale(1.02);
}

/* Gradient glow effekt */
.vd-portrait-vertical::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(0, 166, 255, 0.1) 50%, 
        transparent 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vd-portrait-vertical:hover::after {
    opacity: 1;
}

/* ==================== FUNKTIONER & CASES SEKTION ==================== */
.features-section {
    padding: 100px 0;
    background: #091c32;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
/* Innehåll (titel, case-cards) ska alltid ligga ÖVER sidobilderna
   så att bilderna får glida in bakom containern vid hover. */
.features-section > .container {
    position: relative;
    z-index: 2;
}

/* Side images flanking the features section
   STRUKTUR: <picture class="features-side-wrap"> sköter positionering + float
   <img class="features-side-img"> sköter hover-skalning + glow.
   Att separera transformerna på olika element gör att hovers transition inte
   behöver konkurrera med float-animationen → ingen "pop" när hover startar. */

/* ---- Wrappern (positionering + float) ---- */
.features-side-wrap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    display: block;
    max-height: 86%;
    /* max-width sätts via img, picture är bara en container */
    will-change: transform;
}
.features-side-wrap-left {
    left: max(10px, calc(50% - 920px));
    animation: features-float-left 7s ease-in-out infinite;
}
.features-side-wrap-right {
    right: max(10px, calc(50% - 920px));
    animation: features-float-right 7s ease-in-out infinite;
}

/* ---- Själva bilden (hover-skalning + glow) ---- */
.features-side-img {
    display: block;
    max-height: 86vh;
    width: auto;
    max-width: 28vw;
    object-fit: contain;
    opacity: 1;
    border-radius: 0;
    pointer-events: none;
    /* Transform + filter transitionas på img. Transform är här rent för hover
       (skala + inåt-glidning), så det konkurrerar inte med wrapperns float. */
    transform: translateX(0) scale(1);
    transform-origin: center center;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.6s ease,
                filter 0.9s ease;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 28px rgba(0, 166, 255, 0.22));
    animation: features-glow-left 4.5s ease-in-out infinite;
    will-change: transform, filter;
}
.features-side-left {
    /* blå glow körs via animationen features-glow-left (default) */
}
.features-side-right {
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 28px rgba(74, 222, 128, 0.22));
    animation: features-glow-right 4.5s ease-in-out infinite;
}

/* Mjuk vertikal flyt på WRAPPERN – skilt från img-transformen */
@keyframes features-float-left {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(calc(-50% - 12px)); }
}
@keyframes features-float-right {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(calc(-50% + 12px)); }
}
/* Pulserande glow – blå för verktygshantering */
@keyframes features-glow-left {
    0%, 100% {
        filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5))
                drop-shadow(0 0 28px rgba(0, 166, 255, 0.22))
                drop-shadow(0 0 55px rgba(0, 83, 156, 0.18));
    }
    50% {
        filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.55))
                drop-shadow(0 0 45px rgba(0, 166, 255, 0.5))
                drop-shadow(0 0 90px rgba(0, 83, 156, 0.32))
                brightness(1.04);
    }
}
/* Pulserande glow – grön för 5S */
@keyframes features-glow-right {
    0%, 100% {
        filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5))
                drop-shadow(0 0 28px rgba(74, 222, 128, 0.22))
                drop-shadow(0 0 55px rgba(34, 139, 84, 0.18));
    }
    50% {
        filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.55))
                drop-shadow(0 0 45px rgba(74, 222, 128, 0.5))
                drop-shadow(0 0 90px rgba(34, 139, 84, 0.3))
                brightness(1.04);
    }
}

/* Hover: glow-animationen stängs av (med !important) så hover-filtret tar över
   mjukt via transition. Transform körs på img (inte wrapper) så float-
   animationen på wrappern fortsätter att köra opåverkad → ingen snap/pop. */
.features-side-img.img-hover {
    animation: none !important;
    opacity: 1;
}
/* Vänster bild glider åt HÖGER (mot mitten) och växer */
.features-side-left.img-hover {
    transform: translateX(8vw) scale(1.35);
    filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.65))
           drop-shadow(0 0 60px rgba(0, 166, 255, 0.7))
           drop-shadow(0 0 110px rgba(0, 83, 156, 0.5))
           brightness(1.12)
           saturate(1.15);
}
/* Höger bild glider åt VÄNSTER (mot mitten) och växer */
.features-side-right.img-hover {
    transform: translateX(-8vw) scale(1.35);
    filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.65))
           drop-shadow(0 0 60px rgba(74, 222, 128, 0.7))
           drop-shadow(0 0 110px rgba(34, 139, 84, 0.5))
           brightness(1.12)
           saturate(1.15);
}

/* På smalare skärmar – mindre glidning inåt så bilderna inte blir för stora */
@media (max-width: 1500px) {
    .features-side-left.img-hover  { transform: translateX(6vw)  scale(1.3); }
    .features-side-right.img-hover { transform: translateX(-6vw) scale(1.3); }
}
@media (max-width: 1300px) {
    .features-side-left.img-hover  { transform: translateX(4vw)  scale(1.25); }
    .features-side-right.img-hover { transform: translateX(-4vw) scale(1.25); }
}

@media (max-width: 1500px) {
    .features-side-img {
        max-width: 24vw;
    }
    .features-side-wrap-left  { left:  max(10px, calc(50% - 820px)); }
    .features-side-wrap-right { right: max(10px, calc(50% - 820px)); }
}
@media (max-width: 1300px) {
    .features-side-img {
        max-width: 20vw;
        opacity: 0.95;
    }
    .features-side-wrap-left  { left:  max(6px, calc(50% - 720px)); }
    .features-side-wrap-right { right: max(6px, calc(50% - 720px)); }
}
@media (max-width: 1100px) {
    .features-side-img {
        max-width: 17vw;
        opacity: 0.85;
    }
    .features-side-wrap-left  { left:  2px; }
    .features-side-wrap-right { right: 2px; }
}
@media (max-width: 992px) {
    .features-side-wrap {
        display: none;
    }
}

/* Användare som föredrar mindre rörelse slipper float- och glow-animationerna */
@media (prefers-reduced-motion: reduce) {
    .features-side-wrap,
    .features-side-img {
        animation: none;
    }
    .features-side-wrap {
        transform: translateY(-50%);
    }
}

.features-section::before {
    display: none;
}

/* ==================== HOME DUAL CTA ==================== */
.home-cta {
    padding: 70px 20px 80px;
    background: radial-gradient(1200px 500px at 50% 0%, rgba(0, 166, 255, 0.10), transparent 70%), #0b2340;
    position: relative;
}
.home-cta-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
}
.home-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #86efac;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}
.home-cta-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.2;
    background: linear-gradient(90deg, #ffffff 0%, #c7e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-cta-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 auto 32px;
    max-width: 620px;
}
.home-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.home-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-family: inherit;
    min-width: 260px;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    will-change: transform;
}
.home-cta-btn > i {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.home-cta-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}
.home-cta-btn-main {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.home-cta-btn-sub {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 3px;
    letter-spacing: 0.3px;
}
.home-cta-btn-primary {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
    color: #ffffff;
    border: 1px solid rgba(74, 222, 128, 0.6);
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.home-cta-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}
.home-cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(22, 163, 74, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(134, 239, 172, 0.9);
}
.home-cta-btn-primary:hover::before {
    left: 100%;
}
.home-cta-btn-primary:active {
    transform: translateY(-1px);
}
.home-cta-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}
.home-cta-btn-outline:hover {
    background: rgba(0, 166, 255, 0.12);
    border-color: rgba(0, 166, 255, 0.75);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 83, 156, 0.35);
}
.home-cta-btn-outline:active {
    transform: translateY(-1px);
}
.home-cta-foot {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.home-cta-foot i {
    color: #00A6FF;
}
@media (max-width: 640px) {
    .home-cta {
        padding: 55px 16px 60px;
    }
    .home-cta-btn {
        min-width: 100%;
        justify-content: center;
    }
    .home-cta-btn-text {
        align-items: flex-start;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-cta-btn,
    .home-cta-btn-primary::before {
        transition: none;
    }
    .home-cta-btn-primary:hover,
    .home-cta-btn-outline:hover {
        transform: none;
    }
}

.features-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.features-title h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00A6FF, #00539C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.features-title p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Case Card */
.case-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00539C, #00A6FF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 166, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 83, 156, 0.3);
}

/* Clickable card styling */
.case-card.clickable-card {
    cursor: pointer;
}

.case-card.clickable-card:hover {
    transform: translateY(-10px);
}

.case-card:hover::before {
    transform: scaleX(1);
}

.case-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00539C, #00A6FF);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.case-card:hover .case-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 166, 255, 0.4);
}

.case-icon i {
    font-size: 36px;
    color: white;
}

/* ==== 5S-kort: grön accent för att matcha höger bilds gröna glow ==== */
.case-card[data-img-target="features-img-right"] .case-icon {
    background: linear-gradient(135deg, #228B54, #4ADE80);
}
.case-card[data-img-target="features-img-right"]:hover .case-icon {
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.45);
}
.case-card[data-img-target="features-img-right"] .cta-button {
    background: linear-gradient(135deg, #228B54, #4ADE80);
}
.case-card[data-img-target="features-img-right"] .cta-button:hover {
    background: linear-gradient(135deg, #4ADE80, #228B54);
    box-shadow: 0 10px 25px rgba(34, 139, 84, 0.35);
}
.case-card[data-img-target="features-img-right"] .case-tag {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
}

.case-number {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(255, 255, 255, 0.1);
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    transition: all 0.3s ease;
}

.case-card:hover .case-number {
    color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.case-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.case-description {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Case Features List */
.case-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.case-features li {
    padding: 8px 0;
    color: #94a3b8;
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.case-card:hover .case-features li {
    color: #cbd5e1;
}

.case-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00A6FF;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.case-card:hover .case-features li::before {
    transform: translateX(5px);
}

/* Case CTA Button */
.case-cta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button {
    background: linear-gradient(135deg, #00539C, #00A6FF);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 83, 156, 0.3);
    background: linear-gradient(135deg, #00A6FF, #00539C);
    text-decoration: none;
    color: white;
}

.case-tag {
    background: rgba(0, 166, 255, 0.15);
    color: #00A6FF;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .cases-grid {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 70px 0;
    }
    
    .features-title h2 {
        font-size: 2.5rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
        padding-left: 0px;
        padding-right: 0px;
    }
    
    .case-card {
        padding: 30px;
    }
    
    .case-icon {
        width: 70px;
        height: 70px;
    }
    
    .case-icon i {
        font-size: 32px;
    }
    
    .case-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .features-title h2 {
        font-size: 2rem;
    }
    
    .features-title p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .case-card {
        padding: 25px;
    }
    
    .case-title {
        font-size: 1.4rem;
    }
    
    .case-description {
        font-size: 1rem;
    }
    
    .case-cta {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .cta-button {
        text-align: center;
        justify-content: center;
    }
}

/* Animationer */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.2s; }
.case-card:nth-child(3) { animation-delay: 0.3s; }

/* Hover highlight effect */
.case-card:hover .case-features li:nth-child(1) { transition-delay: 0.1s; }
.case-card:hover .case-features li:nth-child(2) { transition-delay: 0.2s; }
.case-card:hover .case-features li:nth-child(3) { transition-delay: 0.3s; }

/* Glow effect på hover */
.case-card:hover {
    position: relative;
    z-index: 2;
}

.case-card:hover::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, 
        rgba(0, 83, 156, 0.1), 
        rgba(0, 166, 255, 0.1));
    border-radius: 25px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* Extra styling för interaktioner */
.case-card.clicked {
    animation: cardPulse 0.3s ease;
}

@keyframes cardPulse {
    0%, 100% {
        transform: translateY(-10px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 60px rgba(0, 166, 255, 0.4);
    }
}

.cta-button.clicked {
    animation: buttonPulse 0.3s ease;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: translateY(-2px) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(0.98);
    }
}

/* Ripple effect på knappar */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.cta-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Progress indicator vid hover */
.case-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #00539C, #00A6FF);
    width: 0%;
    transition: width 0.5s ease;
}

.case-card:hover::before {
    width: 100%;
}

/* Responsive adjustments */
@media (hover: none) {
    .case-card:hover {
        transform: none;
    }
    
    .case-card:active {
        transform: scale(0.98);
    }
}

/* ==================== FÖRBÄTTRAD DROPDOWN "SÖK TYP" ==================== */

/* Container för filter item */
.filter-item-enhanced[data-filter="type"] {
    width: auto !important;
    min-width: 320px;
}

/* Dropdown-knappen själv */
#filterType {
    min-width: 320px !important;
    width: auto !important;
    max-width: 400px;
}

.custom-select-enhanced {
    width: 320px !important;
    min-width: 320px !important;
    padding: 16px 50px 16px 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 16px !important;
}

/* Dropdown-listan som öppnas */
.select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: 56px;
    padding-left: 120px !important;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection__rendered {
    font-size: 16px !important;
    color: #1e293b !important;
    font-weight: 600;
    padding: 0 !important;
    line-height: 1.4;
}

.select2-container--default .select2-selection__arrow {
    height: 100% !important;
    width: 50px !important;
    right: 0 !important;
}

.select2-container--default .select2-selection__arrow b {
    border-color: #00539C transparent transparent transparent !important;
    border-width: 8px 6px 0 6px !important;
    margin-top: -4px;
}

/* Öppnad dropdown-lista */
.select2-container .select2-dropdown {
    min-width: 350px !important;
    width: 350px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    margin-top: 10px !important;
    box-shadow: 
        0 15px 40px rgba(0, 83, 156, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    overflow: hidden;
    animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternativen i listan */
.select2-container .select2-results__options {
    max-height: 450px !important; /* Mycket högre lista */
    padding: 15px 0 !important;
}

.select2-container .select2-results__option {
    padding: 16px 25px !important;
    font-size: 15.5px !important;
    font-weight: 500;
    color: #334155;
    margin: 3px 15px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 52px;
    display: flex;
    align-items: center;
}

/* Hover och selected states */
.select2-container .select2-results__option:hover {
    background: linear-gradient(90deg, #00539C, #00A6FF) !important;
    color: white !important;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 83, 156, 0.2);
}

.select2-container .select2-results__option--highlighted {
    background: rgba(0, 83, 156, 0.08) !important;
    color: #00539C !important;
    font-weight: 600;
}

.select2-container .select2-results__option--selected {
    background: linear-gradient(90deg, #00539C, #00A6FF) !important;
    color: white !important;
    font-weight: 600;
}

/* Sökfält i dropdown */
.select2-container .select2-search--dropdown {
    padding: 20px !important;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.select2-container .select2-search__field {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.select2-container .select2-search__field:focus {
    border-color: #00539C !important;
    box-shadow: 0 0 0 3px rgba(0, 83, 156, 0.1) !important;
    outline: none;
}

/* Scrollbar styling för långa listor */
.select2-container .select2-results::-webkit-scrollbar {
    width: 8px;
}

.select2-container .select2-results::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.select2-container .select2-results::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00539C, #00A6FF);
    border-radius: 4px;
}

.select2-container .select2-results::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #003F7D, #00539C);
}

/* ==================== MOBILOPTIMERING FÖR HEADER & TOGGLE SECTIONS ==================== */
@media (max-width: 768px) {

    .select2-container--default .select2-selection--single {
        height: auto !important;
        min-height: 40px;
        padding-left: 16px !important;
        display: flex;
        align-items: center;
        font-family: 'Poppins', sans-serif !important;
    }

    /* Kompakt undertitel */
    .subtitle-wrapper {
        padding: 0 15px;
        margin-top: -50px !important;
        max-width: 95% !important;
    }
    
    .subtitle {
        font-size: 0.85rem !important;
        margin: -35px auto 15px auto !important;
        padding: 8px 15px !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
    }
    
    .subtitle .bold {
        font-size: 0.9rem !important;
        -webkit-text-fill-color: #00A6FF !important;
        background: none !important;
    }
    
    .subtitle span[style*="font-size: 0.8rem"] {
        font-size: 0.7rem !important;
        margin-top: 3px !important;
    }
    
    /* Separator linje */
    .separator {
        width: 60% !important;
        margin: 5px auto 10px auto !important;
        height: 1.5px !important;
    }
    
    /* Toggle switch container - mer kompakt */
    .ai-toggle-container {
        margin: 15px 0 20px 0 !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
        width: 95%;
        margin-left: auto !important;
        margin-right: auto !important;
    }
  
    
    .toggle-text-left, .toggle-text-right {
        min-width: auto !important;
        width: 120px !important;
        padding: 5px 8px !important;
        flex-direction: column;
        text-align: center;
    }
    
    /* Panda bild mindre på mobil */
    .toggle-panda-full {
        height: 50px !important;
        margin-bottom: 5px;
    }
    
    .toggle-title {
        font-size: 11px !important;
        letter-spacing: 0.2px !important;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }
    
    .active-toggle-title {
        font-size: 12px !important;
        background: linear-gradient(90deg, #00539C, #00A6FF);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* Toggle switch mindre */
    .ai-toggle-label {
        width: 65px !important;
        height: 35px !important;
        margin: 0 5px;
    }
    
    .ai-toggle-knob {
        width: 28px !important;
        height: 28px !important;
        top: 3.5px !important;
        left: 3.5px !important;
    }
    
    .ai-toggle-label input:checked + .ai-toggle-slider .ai-toggle-knob {
        left: calc(100% - 31.5px) !important;
    }
    
    /* Filter container - en kolumn på mobil */
    .custom-filters {
        flex-direction: column !important;
        padding: 15px !important;
        margin: 10px auto 15px auto !important;
        width: 95% !important;
        margin-left: auto !important;
        border-radius: 12px !important;
        gap: 2px !important;
        margin-top: 24px !important;
    }
    
    .filter-item-enhanced {
        width: 100% !important;
        margin-bottom: 12px !important;
    }
    
    /* Dropdown fält bredare på mobil */
    .custom-select-enhanced {
        width: 100% !important;
        max-width: none !important;
        min-width: unset !important;
        padding: 12px 40px 12px 20px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
    }
    
    /* Typ dropdown specifik mobiljustering */
    .filter-item-enhanced[data-filter="type"] {
        min-width: unset !important;
        width: 100% !important;
    }
    
    #filterType {
        min-width: unset !important;
        width: 100% !important;
    }
    
    /* Sökfält mobil */
    .search-input-container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .search-input-enhanced {
        width: 100% !important;
        padding: 12px 40px 12px 15px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
        text-align: left !important;
    }
    
    .search-input-enhanced::placeholder {
        font-size: 13px !important;
    }
    
    /* Reset knapp mobil */
    .reset-button-enhanced {
        width: 100% !important;
        padding: 12px 15px !important;
        margin-top: 5px !important;
        margin-left: 0 !important;
    }
    
    .reset-text {
        font-size: 12px !important;
    }
    
    /* Loading text mindre */
    #search-loading-text {
        font-size: 0.85rem !important;
        margin-top: 8px !important;
    }
    
    .neon-bar {
        width: 80% !important;
        margin: 0 auto !important;
    }
}

/* ==================== SEARCH RESULTS TABLE MOBILE OPTIMIZATION ==================== */
@media (max-width: 768px) {
    /* Container bredare */
    .datatable-container {
        width: 100% !important;
        padding: 0 5px !important;
        overflow-x: auto;
    }
    
    /* Scrollbar för tabell på små skärmar */
    #search_results_table {
        min-height: 300px !important; /* Force tabell-height */
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Gör tabellen mer användarbar */
    .table {
        border-spacing: 0 6px !important;
        font-size: 0.85rem !important;
        table-layout: fixed;
        width: 100% !important;
    }
    
    .table thead th {
        font-size: 0.9rem !important;
        padding: 10px 8px !important;
        white-space: nowrap;
        background: rgba(0, 83, 156, 0.9) !important;
        color: white !important;
        text-align: center;
        vertical-align: middle;
    }
    
    .table tbody td {
        font-size: 0.85rem !important;
        padding: 8px !important;
        white-space: normal;
        word-wrap: break-word;
        overflow: visible;
        text-overflow: clip;
    }
    
    /* Kolumnspecifika justeringar */
    .table th:nth-child(1), /* Bild */
    .table td:nth-child(1) {
        width: 80px !important;
        min-width: 80px !important;
        text-align: center;
    }
    
    .table th:nth-child(2), /* Modell */
    .table td:nth-child(2) {
        width: 120px !important;
        min-width: 120px !important;
    }
    
    .table th:nth-child(3), /* Tillverkare */
    .table td:nth-child(3) {
        width: 100px !important;
        min-width: 100px !important;
    }
    
    .table th:nth-child(4), /* Typ */
    .table td:nth-child(4) {
        width: 80px !important;
        min-width: 80px !important;
    }
    
    .table th:nth-child(5), /* Åtgärder */
    .table td:nth-child(5) {
        width: 130px !important;
        min-width: 130px !important;
        text-align: center;
    }
    
    /* Bildstorlek lämplig */
    .table tbody td img.tool-image {
        max-width: 70px !important;
        max-height: 70px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        object-fit: contain;
    }
    
    /* Knappar i tabellen - kompakt men läsbar */
    .table-buttons {
        gap: 6px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap;
        min-width: 120px;
    }
    
    .overview-button,
    .recensera-button,
    .add-to-cart-button {
        font-size: 10px !important;
        padding: 6px 8px !important;
        border-radius: 12px !important;
        min-width: auto !important;
        max-width: none !important;
        width: auto !important;
        line-height: 1.3;
        white-space: nowrap;
    }
    
    .overview-button {
        padding: 6px 10px !important;
        font-size: 10px !important;
    }
    
    .recensera-button {
        padding: 3px 5px !important;
    }
    
    /* Add to cart form kompakt */
    .add-to-cart-form {
        flex-direction: row !important;
        gap: 6px !important;
        min-width: 110px;
        align-items: center;
        justify-content: center;
    }
    
    .add-to-cart-form input[type="number"] {
        width: 40px !important;
        height: 24px !important;
        font-size: 11px !important;
        padding: 3px 5px !important;
        margin: 0 !important;
    }
    
    .add-to-cart-button {
        padding: 6px 10px !important;
        font-size: 10px !important;
    }
    
    /* DataTables kontroller */
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        font-size: 11px !important;
    }
    
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        font-size: 11px !important;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        padding: 5px 8px !important;
        font-size: 11px !important;
        width: 150px !important;
    }
    
    .dataTables_wrapper .dataTables_length select {
        padding: 4px 6px !important;
        font-size: 11px !important;
        width: 80px !important;
    }
    
    /* Datatable container - med horisontell scroll på behov */
    .datatable-container {
        overflow-x: auto;
        width: 100%;
        border-radius: 12px;
    }
    
    /* Gör databladstabell scrollbar snygg */
    .datatable-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .datatable-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .datatable-container::-webkit-scrollbar-thumb {
        background: rgba(0, 166, 255, 0.3);
        border-radius: 10px;
    }
    
    .datatable-container::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 166, 255, 0.5);
    }
    
    /* Kolumnsökfilter CSS */
    .column-search-container {
        margin-bottom: 15px;
        padding: 12px;
        background: rgba(0, 83, 156, 0.1);
        border-radius: 8px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .column-search-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 120px;
    }
    
    .column-search-label {
        font-size: 0.9rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .column-search-input {
        padding: 8px 12px;
        border: 1px solid rgba(0, 166, 255, 0.3);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
        color: white;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    .column-search-input:focus {
        outline: none;
        border-color: #00A6FF;
        background: rgba(0, 166, 255, 0.1);
        box-shadow: 0 0 8px rgba(0, 166, 255, 0.3);
    }
    
    .column-search-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
}


/* ==================== CHAT SECTION MOBILE OPTIMIZATION ==================== */
@media (max-width: 768px) {
    /* Chat container mindre höjd på mobil - UPPDATERAD FÖR FLEXIBEL HÖJD */
    .chat-container {
        min-height: 350px !important;
        max-height: 600px !important;
        height: auto !important; /* Låt den växa baserat på innehåll */
    }
    
    #chat_history {
        padding: 12px 15px !important;
        padding-top: 15px !important;
        gap: 8px !important;
    }
    
    /* Chat bubblor mindre på mobil */
    .chat-bubble {
        max-width: 85% !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        line-height: 1.3;
    }
    
    .chat-bubble.user {
        margin-left: 10% !important;
        margin-right: 0 !important;
    }
    
    .chat-bubble.ai {
        margin-right: 10% !important;
        margin-left: 0 !important;
    }
    
    .chat-bubble.ai.with-avatar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .chat-avatar {
        width: 30px !important;
        height: 30px !important;
    }
    
    /* Profession buttons - vertikalt på mobil */
    .profession-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px 12px !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    
    /* Tabell kompakt på mobil - behål horisontell scroll */
    .datatable-container {
        overflow-x: auto;
    }
    
    .table thead th {
        font-size: 0.8rem !important;
        padding: 6px 4px !important;
    }
    
    .table tbody td {
        font-size: 0.75rem !important;
        padding: 6px !important;
    }
    
    .table th:nth-child(1), .table td:nth-child(1) {
        width: 60px !important;
        min-width: 60px !important;
    }
    
    .table th:nth-child(2), .table td:nth-child(2) {
        width: 90px !important;
        min-width: 90px !important;
    }
    
    .table th:nth-child(3), .table td:nth-child(3) {
        width: 80px !important;
        min-width: 80px !important;
    }
    
    .table th:nth-child(4), .table td:nth-child(4) {
        width: 70px !important;
        min-width: 70px !important;
    }
    
    .table th:nth-child(5), .table td:nth-child(5) {
        width: 110px !important;
        min-width: 110px !important;
    }
    
    .table tbody td img.tool-image {
        max-width: 50px !important;
        max-height: 50px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .table-buttons {
        gap: 4px !important;
        flex-direction: column;
    }
    
    .overview-button,
    .recensera-button,
    .add-to-cart-button {
        font-size: 8px !important;
        padding: 4px 6px !important;
    }
    
    .column-search-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .column-search-item {
        width: 100%;
        min-width: unset;
    }

    
    .profession-button {
        min-width: unset !important;
        width: 100% !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
        border-radius: 20px !important;
    }
    
    /* AI tools list - en kolumn på mobil */
    .ai-tool-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 10px !important;
        margin-bottom: 8px !important;
    }
    
    .ai-tool-image {
        width: 50px !important;
        height: 50px !important;
        align-self: center;
    }
    
    .ai-tool-info {
        width: 100% !important;
    }
    
    .ai-tool-name {
        font-size: 12px !important;
        text-align: left !important;
        margin-bottom: 3px !important;
    }
    
    .ai-tool-price {
        font-size: 13px !important;
        margin-left: 0 !important;
        margin-top: 5px;
    }
    
    .ai-tool-actions {
        width: 100% !important;
        justify-content: space-between !important;
        margin-top: 8px !important;
    }
    
    .add-to-cart-button-ai {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    /* Chat input area kompakt */
    .chat-input-area {
        padding: 12px 15px !important;
        border-radius: 12px !important;
        margin: 10px auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    /* Respektera när JavaScript döljer chat-input-area på mobil */
    .chat-input-area[style*="display: none"] {
        display: none !important;
    }
    
    .chat-input-wrapper {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #ai_prompt {
        font-size: 16px !important; /* Minst 16px för att förhindra iOS-zoom vid fokus */
        border-radius: 10px !important;
    }
    
    #submit_prompt {
        height: 38px !important;
        width: 38px !important;
        right: 8px !important;
    }
    
    #submit_prompt i {
        font-size: 14px !important;
    }
    
    /* Boka möte knapp - mobiloptimering (ikon-läge) */
    .book-meeting-button {
        padding: 10px 12px !important;
        margin-right: 10px !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        justify-content: center !important;
        gap: 0 !important;
        margin: 0 10px 0 0 !important;
    }
    
    .book-meeting-text,
    .book-meeting-subtitle {
        display: none !important;
    }
    
    .book-meeting-button::after {
        content: '\f073' !important;
        font-family: 'Font Awesome 5 Free' !important;
        font-weight: 900 !important;
        font-size: 1.1rem !important;
    }
    
    /* Suggestion chips mindre */
    .chat-suggestions {
        gap: 5px !important;
        margin-top: 8px !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .suggestion-chip {
        padding: 4px 8px !important;
        font-size: 10px !important;
        border-radius: 14px !important;
        margin: 2px;
    }
    
    /* Typing indicator mindre */
    .typing-indicator {
        padding: 8px 12px !important;
        margin-bottom: 8px !important;
    }
    
    .typing-dot {
        width: 6px !important;
        height: 6px !important;
    }
}

/* ==================== EXTRA SMÅ SKÄRMAR (iPhone SE etc) ==================== */
@media (max-width: 480px) {
    /* Header text extra liten */
    .subtitle {
        font-size: 0.75rem !important;
        margin: -25px auto 10px auto !important;
        padding: 6px 10px !important;
    }
    
    .subtitle .bold {
        font-size: 0.8rem !important;
    }
    
    .chat-suggestions {
        display: none; /* Dölj chat-suggestions på mobila enheter */
    }
    
    .subtitle span[style*="font-size: 0.8rem"] {
        font-size: 0.65rem !important;
    }
    
    .separator {
        width: 70% !important;
        margin: 3px auto 8px auto !important;
    }
    
    /* Toggle switch extra kompakt */
    .ai-toggle-container {
        padding: 6px 8px !important;
        margin: 10px 0 15px 0 !important;
        margin-bottom: -20px !important;
    }
    
    .ai-toggle-wrapper {
        padding: 3px 15px 3px 15px !important;
        gap: 5px !important;
    }
    
    .toggle-text-left, .toggle-text-right {
        width: 100px !important;
        padding: 4px 6px !important;
    }
    
    .toggle-panda-full {
        height: 40px !important;
    }
    
    .toggle-title {
        font-size: 8.2px !important;
    }
    
    .active-toggle-title {
        font-size: 10px !important;
    }
    
    .ai-toggle-label {
        width: 55px !important;
        height: 30px !important;
    }
    
    .ai-toggle-knob {
        width: 24px !important;
        height: 24px !important;
        top: 3px !important;
        left: 3px !important;
    }
    
    .ai-toggle-label input:checked + .ai-toggle-slider .ai-toggle-knob {
        left: calc(100% - 27px) !important;
    }
    
    /* Filter extra kompakt */
    .custom-filters {
        padding: 12px !important;
        margin: 8px auto 12px auto !important;
        gap: 12px !important;
        margin-top: 24px !important;
    }
    
    .custom-select-enhanced,
    .search-input-enhanced {
        padding: 10px 30px 10px 12px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }
    
    .reset-button-enhanced {
        padding: 10px !important;
        font-size: 11px !important;
        margin-right: 7px !important;
    }
    
    .chat-bubble {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    .profession-button {
        padding: 6px 8px !important;
        font-size: 10px !important;
    }

    #submit_prompt {
        height: 32px !important;
        width: 32px !important;
        right: 6px !important;
    }
    
    #submit_prompt i {
        font-size: 12px !important;
    }
    
    /* Tabell extra kompakt */
    .table thead th,
    .table tbody td {
        font-size: 8px !important;
        padding: 4px 2px !important;
    }
    
    .overview-button,
    .recensera-button,
    .add-to-cart-button {
        font-size: 6px !important;
        padding: 3px 4px !important;
    }
    
    .add-to-cart-form input[type="number"] {
        width: 30px !important;
        height: 20px !important;
        font-size: 9px !important;
    }
}

/* ==================== LANDSCAPE MODE OPTIMIZATION ==================== */
@media (max-width: 768px) and (orientation: landscape) {

    .ai-toggle-wrapper {
      display: grid !important;
      grid-template-columns: 1fr auto 1fr !important;
      align-items: center !important;
      gap: 15px !important;
      padding: 10px !important;
    }
    
    .toggle-text-left {
        justify-self: end !important;
        text-align: right !important;
    }
    
    .toggle-text-right {
        justify-self: start !important;
        text-align: left !important;
    }
    
    .ai-toggle-label {
        justify-self: center !important;
    }
    
    .toggle-title {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    .toggle-text-left, .toggle-text-right {
        width: 140px !important;
    }
    
    .toggle-title {
        font-size: 10px !important;
    }
    
    .active-toggle-title {
        font-size: 11px !important;
    }
    
    /* Filter i två kolumner i landscape */
    .custom-filters {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 24px !important;
    
    }
    
    .filter-item-enhanced {
        width: 48% !important;
    }
    
    .reset-button-enhanced {
        width: 100% !important;
        margin-top: 10px;
        margin-right: 7px !important;
    }
    
    /* Profession buttons i rad i landscape */
    .profession-buttons {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .profession-button {
        width: auto !important;
        min-width: 120px !important;
        flex: 1;
        margin: 2px;
    }
}

/* ==================== MOBILE OPTIMIZED PROCESS SECTION ==================== */
@media (max-width: 768px) {
    .process-section {
        padding: 40px 0 !important;
        border-radius: 12px !important;
        margin: 30px 10px !important;
        background: linear-gradient(135deg, #0a1e35 0%, #091c32 100%) !important;
    }
    
    .process-title {
        margin-bottom: 40px !important;
        padding: 0 15px !important;
    }
    
    .process-title h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        text-align: center !important;
        background: linear-gradient(90deg, #00A6FF, #00539C) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        padding: 0 10px !important;
    }
    
    .process-title p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        color: #cbd5e1 !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        text-align: center !important;
    }
    
    /* Process container - mer kompakt */
    .process-container {
        padding: 0 10px !important;
        position: relative !important;
    }
    
    /* Progress line - centrerad vertikal linje */
    .progress-line {
        position: absolute !important;
        left: 25px !important; /* Flytta närmare kanten på mobil */
        width: 3px !important;
        height: calc(100% - 50px) !important;
        top: 25px !important;
        background: linear-gradient(180deg, 
            #00539C 0%, 
            #00A6FF 25%, 
            #00A6FF 75%, 
            #00539C 100%) !important;
        z-index: 1 !important;
    }
    
    .progress-dot {
        left: 25px !important;
        width: 16px !important;
        height: 16px !important;
        border-width: 3px !important;
        box-shadow: 0 0 15px rgba(0, 166, 255, 0.6) !important;
        animation: pulse 1.5s infinite !important;
    }
    
    @keyframes pulse {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(0, 166, 255, 0.7);
        }
        50% {
            box-shadow: 0 0 0 8px rgba(0, 166, 255, 0);
        }
    }
    
    /* Process steps - enkel vertikal layout */
    .process-steps {
        margin-left: 60px !important; /* Ge plats för progress line */
    }
    
    .process-step {
        margin-bottom: 40px !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        transition: all 0.3s ease !important;
    }
    
    .process-step.active {
        opacity: 1 !important;
        transform: scale(1.02) !important;
    }
    
    /* Step number - större och mer synlig */
    .step-number {
        position: absolute !important;
        left: -70px !important; /* Placera till vänster om innehållet */
        top: 0 !important;
        transform: none !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        font-weight: 800 !important;
        border: 3px solid #091c32 !important;
        background: linear-gradient(135deg, #00539C, #00A6FF) !important;
        box-shadow: 0 4px 15px rgba(0, 83, 156, 0.4) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 3 !important;
    }
    
    /* Step content - modern kortdesign */
    .step-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 25px 20px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        position: relative !important;
        transition: all 0.3s ease !important;
    }
    
    .process-step:hover .step-content {
        transform: translateY(-5px) !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(0, 166, 255, 0.3) !important;
        box-shadow: 0 10px 25px rgba(0, 83, 156, 0.2) !important;
    }
    
    /* Ta bort trianglarna på mobil */
    .process-step:nth-child(odd) .step-content::before,
    .process-step:nth-child(even) .step-content::before {
        display: none !important;
    }
    
    /* Step icon - centrerad och större */
    .step-icon {
        font-size: 32px !important;
        color: #00A6FF !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        background: rgba(0, 166, 255, 0.1) !important;
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Step title - tydlig och läsbar */
    .step-title {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        color: white !important;
        margin-bottom: 12px !important;
        text-align: center !important;
        line-height: 1.3 !important;
        font-family: 'Poppins', sans-serif !important;
    }
    
    /* Step description - bättre läsbarhet */
    .step-description {
        font-size: 0.95rem !important;
        color: #cbd5e1 !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        padding: 0 5px !important;
    }
    
    /* Step features - kompakt listdesign */
    .step-features {
        list-style: none !important;
        padding: 0 !important;
        margin: 20px 0 0 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    
    .step-features li {
        padding: 10px 12px !important;
        color: #94a3b8 !important;
        position: relative !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 10px !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
        padding-left: 30px !important;
    }
    
    .step-features li::before {
        content: '✓' !important;
        position: absolute !important;
        left: 10px !important;
        color: #00A6FF !important;
        font-weight: bold !important;
        font-size: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .step-features li:hover {
        background: rgba(0, 166, 255, 0.15) !important;
        color: #e2e8f0 !important;
        transform: translateY(-2px) !important;
    }
    
    /* Animation för när steg blir synliga */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .process-step {
        animation: slideIn 0.6s ease forwards !important;
        animation-play-state: paused !important;
    }
    
    .process-step.active {
        animation-play-state: running !important;
    }
    
    /* Add stagger animation for each step */
    .process-step:nth-child(1) { animation-delay: 0.1s !important; }
    .process-step:nth-child(2) { animation-delay: 0.2s !important; }
    .process-step:nth-child(3) { animation-delay: 0.3s !important; }
    .process-step:nth-child(4) { animation-delay: 0.4s !important; }
}

/* ==================== EXTRA SMALL SCREENS (iPhone SE etc) ==================== */
@media (max-width: 480px) {
    .process-section {
        margin: 20px 8px !important;
        padding: 30px 0 !important;
    }
    
    .process-title h2 {
        font-size: 1.6rem !important;
        padding: 0 !important;
    }
    
    .process-title p {
        font-size: 0.9rem !important;
        padding: 0 !important;
    }
    
    .progress-line {
        left: 20px !important;
        height: calc(100% - 40px) !important;
    }
    
    .progress-dot {
        left: 20px !important;
    }
    
    .process-steps {
        margin-left: 50px !important;
    }
    
    .step-number {
        left: -60px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    
    .step-content {
        padding: 20px 15px !important;
        border-radius: 14px !important;
    }
    
    .step-icon {
        font-size: 28px !important;
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 12px !important;
    }
    
    .step-title {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }
    
    .step-description {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    .step-features {
        grid-template-columns: 1fr !important; /* En kolumn på extra små skärmar */
        gap: 10px !important;
    }
    
    .step-features li {
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
        padding-left: 28px !important;
    }
    
    .step-features li::before {
        left: 8px !important;
        font-size: 0.9rem !important;
    }
}

/* ==================== LANDSCAPE MODE OPTIMIZATION ==================== */
@media (max-width: 768px) and (orientation: landscape) {
    .process-section {
        margin: 20px 15px !important;
        padding: 30px 0 !important;
    }
    
    .process-steps {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        margin-left: 0 !important;
    }
    
    .process-step {
        margin-bottom: 0 !important;
    }
    
    .step-number {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 auto 15px auto !important;
    }
    
    .progress-line {
        display: none !important; /* Dölj progress line i landscape */
    }
    
    .progress-dot {
        display: none !important;
    }
    
    .step-content {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .step-description {
        flex-grow: 1 !important;
    }
}

/* ==================== TOUCH-FRIENDLY IMPROVEMENTS ==================== */
@media (max-width: 768px) {
    .process-step {
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .step-content:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Increase touch target size */
    .step-features li {
        min-height: 44px !important; /* Apple's recommended touch target size */
        display: flex !important;
        align-items: center !important;
    }
    
    .step-icon {
        touch-action: manipulation !important;
    }
}

/* ==================== DARK MODE OPTIMIZATION ==================== */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .process-section {
        background: linear-gradient(135deg, #0a2540 0%, #091c32 100%)
    }
    
    .step-content {
        background: rgba(255, 255, 255, 0.05) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
    }
    
    .step-features li {
        background: rgba(255, 255, 255, 0.03) !important;
        color: #a0aec0 !important;
    }
}

/* Responsiv DataTables */
@media (max-width: 768px) {
    .dataTables_wrapper {
        min-height: 400px !important; /* Wrapper height för att undvika kollaps */
    }
  #search_results_table {
    width: 100% !important;
  }
}

/* ==================== TABLE COLUMN WIDTH FOR NEW LAYOUT ==================== */
/* Verktyg-kolumn (Bild + Modell) */
#search_results_table th:nth-child(1),
#search_results_table td:nth-child(1) {
    min-width: 200px !important;
    max-width: 350px !important;
}

/* Tillverkare */
#search_results_table th:nth-child(2),
#search_results_table td:nth-child(2) {
    min-width: 120px !important;
}

/* Typ */
#search_results_table th:nth-child(3),
#search_results_table td:nth-child(3) {
    min-width: 100px !important;
}

/* Pris-kolumn */
#search_results_table th:nth-child(4),
#search_results_table td:nth-child(4) {
    min-width: 180px !important;
    max-width: 250px !important;
}

/* Åtgärder-kolumn */
#search_results_table th:nth-child(5),
#search_results_table td:nth-child(5) {
    min-width: 120px !important;
    max-width: 150px !important;
    width: 120px !important;
}

/* Laptop / mindre desktop-skärmar */
@media (max-width: 1400px) {
    #search_results_table th:nth-child(1),
    #search_results_table td:nth-child(1) {
        min-width: 160px !important;
        max-width: 280px !important;
    }
    #search_results_table th:nth-child(2),
    #search_results_table td:nth-child(2) {
        min-width: 90px !important;
    }
    #search_results_table th:nth-child(3),
    #search_results_table td:nth-child(3) {
        min-width: 80px !important;
    }
    #search_results_table th:nth-child(4),
    #search_results_table td:nth-child(4) {
        min-width: 140px !important;
        max-width: 200px !important;
    }
    #search_results_table th:nth-child(5),
    #search_results_table td:nth-child(5) {
        min-width: 90px !important;
        max-width: 120px !important;
        width: 90px !important;
    }
}

@media (max-width: 768px) {
    #search_results_table th:nth-child(1),
    #search_results_table td:nth-child(1) {
        min-width: 150px !important;
    }
    
    #search_results_table th:nth-child(4),
    #search_results_table td:nth-child(4) {
        min-width: 150px !important;
    }
}

/* ==================== MOBIL CARD LAYOUT FÖR TABELL ==================== */
@media (max-width: 480px) {
    /* Dölj tabellhuvud på mobil */
    #search_results_table thead {
        display: none !important;
    }
    
    /* Gör tabellkropp till flex container */
    #search_results_table,
    #search_results_table tbody {
        display: block !important;
        width: 100% !important;
    }
    
    /* Gör varje rad till ett kort */
    #search_results_table tbody tr {
        display: block !important;
        margin-bottom: 15px !important;
        border-radius: 12px !important;
        padding: 15px !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Gör alla celler till block och visa dem vertikalt (utom kolumn 2 & 3) */
    #search_results_table tbody td:nth-child(1),
    #search_results_table tbody td:nth-child(4),
    #search_results_table tbody td:nth-child(5) {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 8px 0 !important;
        border: none !important;
        position: relative;
    }
    
    /* Dölj Tillverkare och Typ HELT på mobila kort - både data och rubriker */
    #search_results_table thead th:nth-child(2),
    #search_results_table thead th:nth-child(3),
    #search_results_table tbody td:nth-child(2),
    #search_results_table tbody td:nth-child(3) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* ========== VERKTYG-KOLUMN (ÖVERKANT) ========== */
    #search_results_table tbody td:nth-child(1) {
        background: linear-gradient(135deg, rgba(0, 83, 156, 0.05), rgba(0, 166, 255, 0.05)) !important;
        border-radius: 8px !important;
        padding: 12px !important;
        margin: -5px -5px 15px -5px !important;
    }
    
    #search_results_table tbody td:nth-child(1) .tool-info-combined {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    #search_results_table tbody td:nth-child(1) .tool-image-compact {
        max-width: 80px !important;
        max-height: 80px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        border: 2px solid rgba(0, 83, 156, 0.1) !important;
    }
    
    #search_results_table tbody td:nth-child(1) .tool-model-name {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #00539C !important;
        line-height: 1.4 !important;
        flex: 1 !important;
    }
    
    /* ========== PRIS-KOLUMN ========== */
    #search_results_table tbody td:nth-child(4) {
        padding: 12px 0 !important;
        border-top: 1px solid #f0f0f0 !important;
        margin-top: 8px !important;
    }
    
    #search_results_table tbody td:nth-child(4) .price-column-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    #search_results_table tbody td:nth-child(4) .price-value-display {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    #search_results_table tbody td:nth-child(4) .price-amount {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        color: #00A6FF !important;
    }
    
    #search_results_table tbody td:nth-child(4) .price-shop,
    #search_results_table tbody td:nth-child(4) .price-offers {
        font-size: 0.8rem !important;
    }
    
    #search_results_table tbody td:nth-child(4) .price-uncertainty-badge,
    #search_results_table tbody td:nth-child(4) .price-graphql-badge,
    #search_results_table tbody td:nth-child(4) .price-pricesapi-badge {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
        display: inline-block !important;
        margin-top: 5px !important;
    }
    
    /* Prisjakt & Delatool knappar i pris-kolumnen */
    #search_results_table tbody td:nth-child(4) .prisjakt-link-button,
    #search_results_table tbody td:nth-child(4) .delatool-overview-button {
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        text-align: center !important;
    }
    
    /* ========== ÅTGÄRDER-KOLUMN ========== */
    #search_results_table tbody td:nth-child(5) {
        padding-top: 12px !important;
        border-top: 2px solid #f0f0f0 !important;
        margin-top: 8px !important;
    }
    
    #search_results_table tbody td:nth-child(5) .action-buttons-compact {
        display: flex !important;
        gap: 10px !important;
        justify-content: flex-start !important;
    }
    
    #search_results_table tbody td:nth-child(5) .action-btn-icon {
        flex: 0 0 auto !important;
        min-width: 50px !important;
        padding: 12px 15px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
    }
    
    #search_results_table tbody td:nth-child(5) .add-to-cart-form-ai {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
    
    /* DataTables wrapper justeringar */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        margin-bottom: 15px !important;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==================== ULTRAMODERN COMPACT TOGGLE ==================== */
.toggle-master-container {
  width: 100%;
  max-width: 100%;
  margin: 20px auto 15px;
  padding: 0 10px;
}

.compact-toggle-section {
  background: linear-gradient(135deg, 
    rgba(9, 28, 50, 0.95) 0%,
    rgba(10, 37, 64, 0.95) 100%);
  border-radius: 18px;
  border: 1px solid rgba(0, 166, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 83, 156, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 18px 25px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: -64px;
}

/* Gradient border effekt */
.compact-toggle-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    #00A6FF,
    #00539C,
    transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Header */
.toggle-section-header {
  text-align: center;
  margin-bottom: 20px;
}

.toggle-compact-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

.title-gradient {
  background: linear-gradient(90deg, #00A6FF, #00539C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.title-divider {
  color: rgba(0, 166, 255, 0.4);
  font-size: 1rem;
}

/* Toggle Buttons Container */
.compact-toggle-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  max-width: 800px;
  height: 70px;
}

/* Toggle Buttons */
.compact-toggle-btn {
  flex: 1;
  height: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compact-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.compact-toggle-btn.active {
  background: linear-gradient(135deg, 
    rgba(0, 166, 255, 0.15) 0%,
    rgba(0, 83, 156, 0.15) 100%);
  border-color: rgba(0, 166, 255, 0.3);
  box-shadow: 
    0 4px 20px rgba(0, 166, 255, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.compact-toggle-btn#ai-chat-button.active {
  animation: ai-active-pulse 2s ease-in-out infinite;
}

.compact-toggle-btn#manual-search-button.active {
  animation: manual-active-pulse 2s ease-in-out infinite;
}

@keyframes ai-active-pulse {
  0%, 100% { 
    box-shadow: 
      0 4px 20px rgba(0, 166, 255, 0.15),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  50% { 
    box-shadow: 
      0 4px 25px rgba(0, 166, 255, 0.25),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

@keyframes manual-active-pulse {
  0%, 100% { 
    box-shadow: 
      0 4px 20px rgba(40, 167, 69, 0.15),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  50% { 
    box-shadow: 
      0 4px 25px rgba(40, 167, 69, 0.25),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

/* Button Content */
.btn-content-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.btn-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ai-icon {
  background: linear-gradient(135deg, 
    rgba(0, 166, 255, 0.2) 0%,
    rgba(0, 83, 156, 0.2) 100%);
  color: #00A6FF;
}

.manual-icon {
  background: linear-gradient(135deg, 
    rgba(40, 167, 69, 0.2) 0%,
    rgba(33, 136, 56, 0.2) 100%);
  color: #28a745;
}

.compact-toggle-btn.active .btn-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-icon-wrapper i {
  font-size: 1.2rem;
}

.btn-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.btn-main-text {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-sub-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  white-space: nowrap;
}

.btn-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: all 0.3s ease;
  opacity: 0;
}

.compact-toggle-btn.active .btn-status-indicator {
  opacity: 1;
  background: #00A6FF;
  box-shadow: 0 0 10px rgba(0, 166, 255, 0.5);
}

.compact-toggle-btn#manual-search-button.active .btn-status-indicator {
  background: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

/* Active Mode Indicator */
.active-mode-indicator {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.indicator-text {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.indicator-progress {
  height: 2px;
  background: linear-gradient(90deg, #00A6FF, transparent);
  border-radius: 1px;
  transition: all 0.3s ease;
  max-width: 200px;
  margin: 0 auto;
}

.compact-toggle-btn#manual-search-button.active ~ .active-mode-indicator .indicator-progress {
  background: linear-gradient(90deg, #28a745, transparent);
}

/* Hover Effects Enhancement */
.compact-toggle-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.05), 
    transparent);
  transition: left 0.6s ease;
}

.compact-toggle-btn:hover::after {
  left: 100%;
}

/* Responsive Design */
@media (min-width: 1200px) {
  .compact-toggle-buttons {
    max-width: 900px;
  }
  
  .compact-toggle-btn {
    padding: 0 25px;
  }
  
  .btn-main-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .compact-toggle-section {
    padding: 15px 20px;
    border-radius: 16px;
  }
  
  .compact-toggle-buttons {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }
  
  .compact-toggle-btn {
    height: 65px;
    padding: 0 18px;
  }
  
  .toggle-compact-title {
    font-size: 1rem;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .btn-main-text {
    font-size: 0.95rem;
  }
  
  .btn-sub-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .compact-toggle-section {
    padding: 12px 15px;
    border-radius: 14px;
    margin: 15px auto 10px;
  }
  
  .compact-toggle-buttons {
    flex-direction: row;
    height: 50px;
    gap: 8px;
  }
  
  .compact-toggle-btn {
    height: 50px;
    padding: 0 10px;
    border-radius: 10px;
  }
  
  .btn-icon-wrapper {
    width: 28px;
    height: 28px;
  }
  
  .btn-icon-wrapper i {
    font-size: 0.85rem;
  }
  
  .btn-content-wrapper {
    gap: 6px;
  }
  
  .btn-main-text {
    font-size: 0.8rem;
  }
  
  .btn-sub-text {
    display: none;
  }
  
  .toggle-panda-icon {
    width: 22px !important;
    height: 22px !important;
  }
  
  .toggle-compact-title {
    font-size: 0.75rem;
    gap: 5px;
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .title-divider {
    font-size: 0.65rem;
  }
  
  .feedback-button {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }
  
  .feedback-button i {
    font-size: 0.85rem !important;
  }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
  .compact-toggle-section {
    background: linear-gradient(135deg, 
      rgba(9, 28, 50, 0.98) 0%,
      rgba(10, 37, 64, 0.98) 100%);
  }
  
  .compact-toggle-btn {
    background: rgba(255, 255, 255, 0.02);
  }
}

/* ==================== TOGGLE SUBTITLE STYLING ==================== */
.toggle-subtitle-wrapper {
  margin-top: 12px;
  margin-bottom: 20px;
}

.toggle-subtitle-wrapper .subtitle {
  font-size: 0.95rem !important;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.5 !important;
  text-align: center;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 300;
  max-width: 650px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border-left: 2px solid rgba(0, 166, 255, 0.3);
  border-right: 2px solid rgba(0, 83, 156, 0.3);
}

.toggle-subtitle-wrapper .bold {
  font-weight: 600;
  color: #00A6FF !important;
  -webkit-text-fill-color: #00A6FF !important;
  background: none !important;
}

.toggle-subtitle-wrapper .separator {
  width: 40% !important;
  height: 1.5px !important;
  background: linear-gradient(90deg, 
      transparent, 
      rgba(0, 83, 156, 0.3), 
      rgba(0, 166, 255, 0.3), 
      rgba(0, 83, 156, 0.3), 
      transparent) !important;
  margin: 8px auto !important;
  opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .toggle-subtitle-wrapper .subtitle {
    font-size: 0.85rem !important;
    padding: 8px 12px;
  }
  
  .toggle-subtitle-wrapper {
    margin-top: 10px;
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .toggle-subtitle-wrapper {
    display: none; /* Dölj helt på mobila enheter */
  }
  
  .toggle-subtitle-wrapper .subtitle {
    font-size: 0.8rem !important;
    padding: 6px 10px;
  }
  
  .toggle-subtitle-wrapper .subtitle br {
    display: none; /* Ta bort radbrytning på mobil */
  }
}

/* Stil för panda-ikonen i toggle-knappen */
.toggle-panda-icon {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    border: 2px solid rgba(0, 166, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* Hover-effekt */
.compact-toggle-btn:hover .toggle-panda-icon {
    border-color: rgba(0, 166, 255, 0.6) !important;
    transform: scale(1.1) !important;
}

/* När AI-chatten är aktiv */
.compact-toggle-btn.active .toggle-panda-icon {
    border-color: #00A6FF !important;
    box-shadow: 0 0 10px rgba(0, 166, 255, 0.4) !important;
    animation: pandaFloat 2s infinite ease-in-out !important;
}

/* Float animation för panda */
@keyframes pandaFloat {
    0%, 100% {
        transform: translateY(0) scale(1.05);
    }
    50% {
        transform: translateY(-3px) scale(1.08);
    }
}

/* Responsiv justering */
@media (max-width: 768px) {
    .toggle-panda-icon {
        width: 22px !important;
        height: 22px !important;
    }
}

@media (max-width: 480px) {
    .toggle-panda-icon {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Desktop: Centrera chat-container och formulär */
@media (min-width: 769px) {
    .chat-container {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .chat-input-area {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== QR ORDER MODAL ===== */
.qr-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.qr-modal-overlay.active { display: flex; }

.qr-modal {
    background: #0d1b2a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    width: 95%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    position: relative;
    animation: qrModalIn 0.25s ease;
}
@keyframes qrModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.qr-modal-close {
    position: absolute; top: 14px; right: 18px;
    background: none; border: none; color: #94a3b8;
    font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.qr-modal-close:hover { color: #fff; }

.qr-modal h2 {
    color: #fff; font-size: 1.35rem; margin: 0 0 6px 0;
    display: flex; align-items: center; gap: 10px;
}
.qr-modal h2 i { color: #38bdf8; }
.qr-modal .qr-modal-subtitle {
    color: #94a3b8; font-size: 0.9rem; margin: 0 0 20px 0;
}

.qr-modal label {
    display: block; color: #cbd5e1; font-size: 0.85rem;
    margin-bottom: 5px; font-weight: 500;
}
.qr-modal input, .qr-modal textarea {
    width: 100%; padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: #fff; font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.qr-modal input:focus, .qr-modal textarea:focus {
    outline: none; border-color: #38bdf8;
    background: rgba(255,255,255,0.09);
}
.qr-modal input.qr-field-error {
    border-color: #f87171;
}
.qr-modal textarea { resize: vertical; min-height: 60px; }
.qr-modal .qr-field { margin-bottom: 14px; }
.qr-modal .qr-row { display: flex; gap: 12px; }
.qr-modal .qr-row .qr-field { flex: 1; }

.qr-modal-submit {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, #00539C, #0077cc);
    color: #fff; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    margin-top: 8px; transition: opacity 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.qr-modal-submit:hover { opacity: 0.9; }
.qr-modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.qr-modal-submit .spinner {
    display: none; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: qrSpin 0.6s linear infinite;
}
.qr-modal-submit.loading .spinner { display: inline-block; }
.qr-modal-submit.loading .btn-text { display: none; }
@keyframes qrSpin { to { transform: rotate(360deg); } }

.qr-modal-message {
    padding: 12px 16px; border-radius: 10px;
    margin-bottom: 16px; font-size: 0.9rem;
    display: flex; align-items: flex-start; gap: 10px;
}
.qr-modal-message.info {
    background: rgba(56,189,248,0.1); color: #7dd3fc;
    border: 1px solid rgba(56,189,248,0.2);
}
.qr-modal-message.success {
    background: rgba(34,197,94,0.1); color: #86efac;
    border: 1px solid rgba(34,197,94,0.2);
}
.qr-modal-message.error {
    background: rgba(248,113,113,0.1); color: #fca5a5;
    border: 1px solid rgba(248,113,113,0.2);
}
.qr-modal-message a { color: #38bdf8; text-decoration: underline; }

.qr-kundnummer-badge {
    display: inline-block; background: rgba(56,189,248,0.12);
    color: #7dd3fc; padding: 3px 10px; border-radius: 6px;
    font-size: 0.82rem; margin-bottom: 16px;
}
/* SEO home improvements */
a.case-card {
    text-decoration: none;
    color: inherit;
}
a.case-card:focus-visible {
    outline: 2px solid #00A6FF;
    outline-offset: 4px;
}
.case-cta .cta-button {
    display: inline-flex;
}
.toggle-compact-subtitle {
    margin-bottom: 0;
}
.home-seo-links {
    text-align: center;
    margin: 1.25rem auto 0;
    max-width: 1000px;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}
.home-seo-links a {
    color: #7dd3fc;
    text-decoration: underline;
}
.home-seo-links a:hover {
    color: #00A6FF;
}
