/*-----------------------------------------------IMPORT FONT----------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Spline+Sans:wght@300..700&display=swap');

/*-----------------------------------------------GENERAL----------------------------------------*/
/* Variabili colore */
:root {
  --darkblue: #111a3c;
  --darkbluehover: #0b112a;
  --lightblue: #5C82BE; 
  --lightbluehover: #4d6c9d; 
  --greyblue: #C2C7D6; 
  --greybluehover: #9ba3bd; 
  --black: #040814; 
  --white: #fff;
  --cardblue: rgba(16, 32, 82, 1); 
  --red: #DE3545; 
  --blue: #102052; 
  --yellow: #D3E06E; 
  --gold: #FFD700; 
  --flag-green-italy: var(--lightblue);
  --flag-yellow-germany: var(--greyblue);
  --flag-dark-germany: #212121;
  --flag-blue-france: var(--darkblue);
  --flag-red-netherlands: var(--yellow);
  --nav-h: 70px;
  --footer-h: 60px;
}

/* Override Bootstrap primary button color to match --lightblue */
.btn-primary {
  background-color: var(--lightblue) !important;
  border-color: var(--lightblue) !important;
  color: var(--white) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--lightbluehover) !important;
  border-color: var(--lightbluehover) !important;
  color: var(--white) !important;
}

.btn-primary:active,
.btn-primary.active {
  background-color: var(--lightbluehover) !important;
  border-color: var(--lightbluehover) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--lightblue) !important;
  border-color: var(--lightblue) !important;
  opacity: 0.65;
}

/* Override Bootstrap text-primary color to match --lightblue */
.text-primary {
  color: var(--lightblue) !important;
}

/* Reset base e font */
html {
    font-family: 'Spline Sans', sans-serif !important;
    background-color: var(--darkblue) !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Spline Sans', sans-serif !important;
    background-color: var(--darkblue) !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

/* Background e testo */
.background-blue { background-color: var(--blue); }
.background-darkblue { background-color: var(--darkblue); color: var(--white); }
.background-white { background-color: var(--white); }

.text-yellow { color: var(--yellow); }
.text-greyblue { color: var(--greyblue); }
a.text-greyblue:hover { color: var(--greybluehover); }
.text-darkblue { color: var(--darkblue); }
.text-lightblue { color: var(--lightblue); }

/* Bottoni */
.btn { width: fit-content; }
.button-lightblue { background-color: var(--lightblue); color: white; }
.button-lightblue:hover { background-color: var(--lightbluehover); }
.button-darkblue { background-color: var(--darkblue); color: white; }
.button-darkblue:hover { background-color: var(--darkbluehover); }

/* Main action buttons - same style as Tutorial buttons */
#updateButton, #rebalanceButton {
    background-color: var(--lightblue) !important;
    border-color: var(--lightblue) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: background-color 0.15s ease-in-out !important;
}

#updateButton:hover, #rebalanceButton:hover {
    background-color: var(--lightbluehover) !important;
    border-color: var(--lightbluehover) !important;
    color: white !important;
}

/* Separatore generale */
hr {
    border-radius: 1rem;
    opacity: 1;
    border: solid 2px white;
    width: 10rem;
}

/* Contenitori senza gutter di Bootstrap */
.container-fluid, .container {
    --bs-gutter-x: 0 !important;
}

/*-----------------------------------------------COPERTINA / HERO----------------------------------------*/
/* Copertina principale */
.copertina {
    width: 100%;
    height: 150vh;
    display: flex;
    align-items: center;
    flex-direction: column; 
    color: var(--white); 
    background: none;
    text-align: center; 
    position: relative;
    z-index: 1;
}

/* Hero video */
.hero {
    position: relative;
    margin-top: 0px;
    height: 150vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.hero video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sfumatura sopra video */
.hero .sfumatura {
    position: absolute;
    top: 75vh;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20vw;
}

/* Logo centrato sopra hero */
.logo-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}
.logo-hero img { 
    width: 100%;
    max-width: 500px !important;
    height: auto !important;
    margin-right: auto;
    margin-left: auto;
}

/* Sfumatura gradient */
.sfumatura {
    background: linear-gradient(#111A3C00, #111A3CFF);
    height: 76vh;
    width: 100%;
    margin: 75vh 0 0 0;
    padding: 0;
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}
.sfumatura p { font-size: 1.4rem; }
.intestazione {
    text-transform: uppercase;
    font-size: 1.4rem;
    line-height: 1.4rem;
    padding-bottom: .7rem;
    color: var(--white);
    background-image: linear-gradient(to right, var(--white), var(--white));
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: 100% 3px;
}
.sfumatura p, .sfumatura span:not(.keyword-emphasis) { margin: 0 10vw; }

@media (max-width: 767.98px) {
    .home-page .hero .sfumatura {
        top: 0;
    }

    .home-page .sfumatura {
        margin: 100vh 0 0 0;
        padding: 1.5rem 0 3rem;
    }
}

/*-----------------------------------------------ANIMAZIONI / BLOCCHI----------------------------------------*/
/* Sfondo animazione sticky */
.sfondo-animazione {
    background-image: url(../img/animation-background.png);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    position: sticky;
    top: 0;
}

/* Blocchi animazione sticky */
.animazione-blocco1,
.animazione-blocco2,
.animazione-blocco3 { 
    padding: 0; 
    overflow: hidden;
    max-width: 100vw;
}

.animazione-blocco1 .row,
.animazione-blocco2 .row,
.animazione-blocco3 .row { padding: 0 10vw; margin: 0; width: 100%; }

/* Blocco 1 */
.animazione-blocco1 {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--nav-h) + env(safe-area-inset-top));
    display: flex;
    align-items: flex-start;
    background-color: var(--darkblue);
    height: 33vh;
    width: 100%;
    z-index: 4;
    color: var(--white);
}

/* Blocco 2 */
.animazione-blocco2 {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--nav-h) + env(safe-area-inset-top));
    display: flex;
    padding: 33vh 0 0 0;
    align-items: flex-start;
    background-color: var(--lightblue);
    height: 66vh;
    width: 100%;
    z-index: 3;
    margin-top: 50vh;
    color: var(--darkblue);
}

/* Blocco 3 */
.animazione-blocco3 {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--nav-h) + env(safe-area-inset-top));
    display: flex;
    padding: 66vh 0 0 0;
    align-items: flex-start;
    background-color: var(--greyblue);/* make it a bit darker */
    background-color: rgb(157, 162, 180);
    height: 99vh;
    width: 100%;
    margin-top: 50vh;
    z-index: 2;
    color: var(--darkblue);
}

/* Titoli e paragrafi blocchi */
.animazione-blocco1 h1,
.animazione-blocco2 h1,
.animazione-blocco3 h1 {
    text-transform: uppercase;
    font-weight: bolder;
    font-size: 4rem;
}
.animazione-blocco1 p,
.animazione-blocco2 p,
.animazione-blocco3 p { font-size: 1.5rem; }

/*-----------------------------------------------TWO COLUMN SECTION----------------------------------------*/
.twocolumns-imagetext-section { height: 100vh; }
.twocolumns-imagetext-section .text-col,
.twocolumns-imagetext-section img { height: 70vh; object-fit: cover; }

/*-----------------------------------------------NAVBAR----------------------------------------*/
.navbar {
    /*height: 10vh;*/
    height: 70px;
    z-index: 1100;
    margin-right: 0 !important; /* evita micro overflow orizzontale */
    font-size: 1.1rem;
    padding-top: env(safe-area-inset-top);
}

/* Brand */
.navbar-brand img {
  max-height: 100%;
}

.nav-link {
    white-space: nowrap;
}
/* Responsive logo */
.logo-mobile {
  display: block;
}

.logo-desktop {
  display: none;
}

/* Show both logos on larger screens */
@media (min-width: 992px) {
  .logo-mobile {
    display: block;
  }
  
  .logo-desktop {
    display: block;
    padding-bottom: 5px;
  }
}


/* Desktop nav */
.nav-item {
  padding: 0 1rem;
}

/* Offcanvas mobile */
.offcanvas-top {
  height: 100dvh !important;
  background-color: var(--white, #fff);
  left: 0;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  z-index: 1200;
  padding-top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
}

.offcanvas-header {
  padding: 2rem;
}

.offcanvas-body {
  position: relative;
  padding: 1.5rem 2rem 6rem !important;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100dvh - 90px - env(safe-area-inset-bottom, 0px));
  z-index: 1;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

.offcanvas-body img[alt=""] {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* Menu */
.offcanvas-body ul {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
}

.offcanvas-body .nav-link {
  padding: 1rem 0;
  font-size: 1.4rem;
}

.offcanvas-body .nav-link-secondary {
  width: 100%;
  background-color: rgba(17, 26, 60, 0.08);
  border-radius: 14px;
  padding: 1rem 1.25rem !important;
  text-align: left;
  color: var(--darkblue, #111a3c);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.offcanvas-body .nav-link-secondary:hover,
.offcanvas-body .nav-link-secondary:focus {
  background-color: rgba(90, 126, 190, 0.18);
  color: var(--darkblue, #111a3c);
  transform: translateY(-1px);
}

.offcanvas-body .nav-link-secondary i {
  margin-right: 0.6rem;
}

/* Pulsante hamburger */
.navbar-toggler {
  border: none;
  margin-right: 0 !important;
  outline: none;
  
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Mobile: ingrandisce testo nel menu */
@media (max-width: 576px) {
  .offcanvas-body .nav-link {
    font-size: 1.8rem;
  }
}

/*-----------------------------------------------FOOTER----------------------------------------*/
footer { 
    height: fit-content; 
    background-color: var(--white) !important;
    position: fixed;
    bottom: env(safe-area-inset-bottom);
    left: 0;
    width: 100%;
    overflow: visible;
    transform: translateZ(0); /* force its own rendering layer */
    z-index: 1030;
}

.contenitore-footer {
    position: relative;
    height: 100%;
    z-index:2;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 8rem 0 0 0
}
.grafica-sfondo-footer { width: 100%; position: absolute; top: 0; z-index: 1; }

/* Ensure LinkedIn link is clickable */
.contenitore-footer a {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

/* Footer logo sizing */
footer img[src*="logo-full.png"] {
    width: 100%;
    max-width: 500px !important;
    height: auto !important;
}

/* Keyword emphasis styles */
.highlight-keywords {
    color: var(--yellow);
    text-shadow: 0 0 10px rgba(211, 224, 110, 0.3);
}

.keyword-emphasis {
    color: var(--yellow);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(211, 224, 110, 0.4);
    display: inline;
    margin: 0;
    padding: 0;
    animation: keyword-glow 2s ease-in-out infinite alternate;
}

.keyword-emphasis-light {
    color: var(--lightblue);
    font-weight: bold;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 0 3px rgba(92, 130, 190, 0.3);
    display: inline;
    margin: 0;
    padding: 0;
}

@keyframes keyword-glow {
    0% {
        text-shadow: 0 0 8px rgba(211, 224, 110, 0.4);
    }
    100% {
        text-shadow: 0 0 15px rgba(211, 224, 110, 0.8), 0 0 25px rgba(211, 224, 110, 0.4);
    }
}

/* Card text styling */
.card-text {
    font-size: 1.5rem;
}

/* Two columns section typography */
.twocolumns-imagetext-section h2 {
    font-size: 2rem;
}

.twocolumns-imagetext-section h5 {
    font-size: 1.4rem;
}

.twocolumns-imagetext-section p {
    font-size: 1.25rem;
}

.twocolumns-imagetext-section p.text-justify {
    width: 100%;
    text-align: justify;
    text-justify: inter-word;
}


/* Datepicker z-index fix */
.datepicker {
    z-index: 2050 !important;
}

.datepicker-dropdown {
    z-index: 2050 !important;
}



/*-----------------------------------------------RESPONSIVE----------------------------------------*/
/*laptop*/
@media (max-width: 1366px) {
    .animazione-blocco1 h1,
    .animazione-blocco2 h1,
    .animazione-blocco3 h1 { font-size: 3.2rem; }

    .animazione-blocco1 p,
    .animazione-blocco2 p,
    .animazione-blocco3 p { font-size: 1.35rem; }

    .twocolumns-imagetext-section { height: auto; padding: 3rem 0; }
    .twocolumns-imagetext-section .text-col,
    .twocolumns-imagetext-section img { height: auto; }
    .twocolumns-imagetext-section h2 { font-size: 1.8rem; }
    .twocolumns-imagetext-section h5 { font-size: 1.3rem; }
    .twocolumns-imagetext-section p { font-size: 1.15rem; }
    .contenitore-footer {
        padding: 2rem 0
    }
}

/*smartphone*/
@media (max-width: 576px) {
    .animazione-blocco1 h1,
    .animazione-blocco2 h1,
    .animazione-blocco3 h1 { font-size: 2rem; }

    .animazione-blocco1 p,
    .animazione-blocco2 p,
    .animazione-blocco3 p { font-size: 1.1rem; }
    
    /* Reduce padding to move content higher */
    .animazione-blocco1 .row,
    .animazione-blocco2 .row,
    .animazione-blocco3 .row { 
        padding: 0 5vw !important;
        padding-top: 1rem !important;
    }
    
    /* Center buttons on mobile */
    .animazione-blocco1 .col-sm-4,
    .animazione-blocco2 .col-sm-4,
    .animazione-blocco3 .col-sm-4 {
        justify-content: center !important;
    }

    .twocolumns-imagetext-section { height: auto; padding: 3rem 0; }
    .twocolumns-imagetext-section .text-col,
    .twocolumns-imagetext-section img { height: auto; }
    .twocolumns-imagetext-section h2 { font-size: 1.6rem; }
    .twocolumns-imagetext-section h5 { font-size: 1.2rem; }
    .twocolumns-imagetext-section p { font-size: 1.05rem; }
    
    /* Add padding to logos on small screens */
    .logo-hero img,
    footer img[src*="logo-full.png"] {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}

/* Sections: identical viewport sizing, snap, and fixed height */
section {
    /* height: calc(100svh - var(--nav-h) - var(--footer-h)); */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* overflow-y: auto; /* allow scrolling within section if content is tall */
}

/* Fixed footer */
footer.navbar.fixed-bottom {
    height: var(--footer-h);
    z-index: 1030;
}

/* ---------- Results area responsiveness and polish ---------- */

/* Card container polish */
#simResultsContainer .card {
    border-radius: 8px;
}

/* Horizontal icon bar */
#resultsTabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

#resultsTabs .nav-link:not(:last-child) {
    margin-right: 10px;
}

#resultsTabs::-webkit-scrollbar {
    height: 6px;
}
#resultsTabs::-webkit-scrollbar-thumb {
    background: #c9ced6;
    border-radius: 4px;
}

/* Tab appearance */
#resultsTabs .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}
#resultsTabs .nav-link.active {
    background-color: var(--lightblue) !important;
    color: #ffffff !important;
}
#resultsTabs .nav-link:hover {
    background-color: var(--lightbluehover) !important;
    color: #ffffff !important;
}

/* Panels */
#resultsPanels {
    margin-top: 16px;
}
.panel-item {
    display: none;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.06);
}
.panel-item:not(.d-none) {
    display: block;
}


/* Table readability */
#simulationResults {
    width: 100%;
    border-collapse: collapse;
}
#simulationResults th,
#simulationResults td {
    padding: 8px;
    text-align: left;
    border: 1px solid #dee2e6;
}
#simulationResults th {
    background-color: var(--lightblue) !important;
    color: #ffffff !important;
}


/* ---------- Responsive tweaks ---------- */

/* lg and below */
@media (max-width: 991.98px) {
    #resultsTabs {
        padding: 8px;
    }
    #resultsTabs .nav-link:not(:last-child) {
        margin-right: 8px;
    }
    #resultsTabs .nav-link {
        padding: 6px 10px;
        font-size: .95rem;
    }
    [id^="chart-container"],
    .chart-container {
        height: 360px;
    }
}

/* md and below */
@media (max-width: 767.98px) {
    #resultsTabs .nav-link {
        font-size: .9rem;
    }
    [id^="chart-container"],
    .chart-container {
        height: 320px;
    }
}

/* sm and below */
@media (max-width: 575.98px) {
    #resultsTabs {
        padding: 6px;
    }
    #resultsTabs .nav-link:not(:last-child) {
        margin-right: 6px;
    }
    #resultsTabs .nav-link {
        font-size: .85rem;
        padding: 6px 8px;
    }
    [id^="chart-container"],
    .chart-container {
        height: 260px;
    }
}

/* ---------- Existing styles (kept) ---------- */

/* Fixed navbar spacing for all pages except index */
body:not(.home-page) {
    padding-top: calc(70px + env(safe-area-inset-top)); /* Account for fixed navbar + safe area */
    padding-bottom: calc(40px + env(safe-area-inset-bottom)); /* Account for fixed footer + safe area */ 
}

/* Anchor sections need extra margin to account for fixed navbar */
section[id] {
    scroll-margin-top: 90px;
}

/* Specific targeting for legal page sections */
#accessibility,
#legal-information,
#cookie-policy,
#terms-conditions,
#privacy-policy {
    scroll-margin-top: 200px;
}

/* Override body styles for simulator pages only */
.simulator-page body {
    background-color: aliceblue;
}



#rebalancingResults .card-footer {
    font-weight: bold;
    font-style: italic;
}

td.parmName {
    font-weight: bold;
}


/* hot fix missing tooltip on IOS 18 */
.introjs-tooltipReferenceLayer {
    visibility: visible;
}

/* Make intro.js tooltips wider for better readability */
.introjs-tooltip {
    max-width: 400px !important;
    min-width: 300px !important;
}

/* Specific styling for risk level tooltips to accommodate longer text */
.introjs-tooltip[data-intro*="Risk levels"] {
    max-width: 450px !important;
    min-width: 350px !important;
}



/* ---------- Section 2 plots: fixed 80% viewport height and full width ---------- */
section {
    --plots-h: 80svh; /* target plots area height */
}


/* Remove snap from raw footer element to prevent competing with sections */
/* (footer snap was removed; footer is fixed-bottom now) */

#feedback-btn {
    position: fixed;
    bottom: calc(var(--footer-h) + env(safe-area-inset-bottom) + 10px);
    right: 20px;
    z-index: 1050;
}

/* reCAPTCHA badge - hide it since it's intrusive on small screens */
.grecaptcha-badge {
    visibility: hidden !important;
}


/* Legal page fixed menu */
.legal-menu-container {
    position: fixed;
    top: 70px; /* Below navbar */
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legal-menu-container .list-group {
    margin-bottom: 0;
    border: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.legal-menu-container .list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
}

.legal-menu-container .list-group-item:last-child {
    border-bottom: none;
}

/* Content area with top margin to account for fixed menu */
.legal-content {
    margin-top: 274px; /* Navbar (70px) + Menu (204px) = 274px */
    max-width: 1200px; /* Match the menu container width */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Add horizontal padding */
}

/* Ensure anchor sections have proper spacing from fixed menu */
.legal-content section {
    scroll-margin-top: 90px; /* Balanced value for proper anchor positioning */
}

/* Loader modal styling - center the modal */
#loaderModal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

#loaderModal .modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

@media (max-width: 767.98px) {
    .strengths-section {
        padding-top: 20vh;
    }
}

.badge-exchange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-weight: 500;
    min-width: 160px;
}

.badge-exchange > *:not(:last-child) {
    margin-right: 0.35rem;
}

.badge-exchange i {
    font-size: 0.85rem;
}

.badge-exchange-milan {
    background-color: var(--flag-green-italy);
    color: var(--white);
}

.badge-exchange-frankfurt {
    background-color: var(--flag-yellow-germany);
    color: var(--darkblue);
}

.badge-exchange-paris {
    background-color: var(--flag-blue-france);
    color: var(--white);
}

.badge-exchange-amsterdam {
    background-color: var(--flag-red-netherlands);
    color: var(lack--b);
}

.badge-exchange-default {
    background-color: var(--greyblue);
    color: var(--darkblue);
}

/*
.asset-item.status-ko {
    border-left: 4px solid var(--red);
    border-color: rgba(222, 53, 69, 0.35);
    background-color: rgba(222, 53, 69, 0.16);
}

.asset-item.status-ko.selected {
    box-shadow: 0 0 0 0.25rem rgba(222, 53, 69, 0.35);
}
*/
#assetStatusWarning {
    font-size: 0.9rem;
}

/* Exchange Filter Buttons Styling */
.exchange-filter-buttons {
    padding: 0.5rem 0;
}

.exchange-filter-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #495057;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exchange-filter-btn > *:not(:last-child) {
    margin-bottom: 0.25rem;
}

.exchange-filter-btn .exchange-flag {
    font-size: 1.25rem;
    line-height: 1;
    transition: opacity 0.2s ease;
    text-shadow: 
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 -1px 0 #fff,
        0 1px 0 #fff,
        -1px 0 0 #fff,
        1px 0 0 #fff;
}

.exchange-filter-btn:not(.active) .exchange-flag {
    opacity: 0.4;
    filter: grayscale(100%);
}

.exchange-filter-btn .exchange-name {
    font-size: 0.75rem;
    line-height: 1.2;
}

.exchange-filter-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.exchange-filter-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.exchange-filter-btn.active:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Exchange-specific brand colors for active buttons */
.exchange-filter-btn[data-exchange="AS"].active {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

.exchange-filter-btn[data-exchange="AS"].active:hover {
    background-color: #c5d05e;
    border-color: #b5c04e;
}

.exchange-filter-btn[data-exchange="DE"].active {
    background-color: var(--greyblue);
    border-color: var(--greyblue);
    color: var(--darkblue);
}

.exchange-filter-btn[data-exchange="DE"].active:hover {
    background-color: var(--greybluehover);
    border-color: var(--greybluehover);
}

.exchange-filter-btn[data-exchange="MI"].active {
    background-color: var(--lightblue);
    border-color: var(--lightblue);
    color: var(--white);
}

.exchange-filter-btn[data-exchange="MI"].active:hover {
    background-color: var(--lightbluehover);
    border-color: var(--lightbluehover);
}

.exchange-filter-btn[data-exchange="PA"].active {
    background-color: var(--darkblue);
    border-color: var(--darkblue);
    color: var(--white);
}

.exchange-filter-btn[data-exchange="PA"].active:hover {
    background-color: var(--darkbluehover);
    border-color: var(--darkbluehover);
}

.exchange-filter-btn.disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.exchange-filter-btn.disabled:hover {
    transform: none;
}

/* Responsive adjustments for exchange filter buttons */
@media (max-width: 576px) {
    .exchange-filter-buttons .exchange-filter-btn:not(:last-child) {
        margin-right: 0.5rem !important;
    }
    
    .exchange-filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        flex: 1 1 calc(50% - 0.25rem);
        min-width: calc(50% - 0.25rem);
    }
}

/* Market Filter Buttons Styling */
.market-filter-buttons {
    padding: 0.5rem 0;
}

.market-filter-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #495057;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.market-filter-btn > *:not(:last-child) {
    margin-right: 0;
}

.market-filter-btn .market-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.market-filter-btn:hover {
    transform: translateY(-1px);
}

/* Market-specific colors for active buttons using CSS variables with opacity (matching badge opacity) */
.market-filter-btn[data-market="global_dev_emerging"].active {
    background-color: #D2DCB6 !important;
    border: none !important;
    color: var(--black) !important;
}

.market-filter-btn[data-market="global_dev_emerging"].active:hover {
    background-color: #c7d29d !important;
    border: none !important;
    color: var(--black) !important;
}

.market-filter-btn[data-market="global_dev"].active {
    background-color: #A1BC98 !important;
    border: none !important;
    color: var(--black) !important;
}

.market-filter-btn[data-market="global_dev"].active:hover {
    background-color: #92a986 !important;
    border: none !important;
    color: var(--black) !important;
}

.market-filter-btn[data-market="us_stocks"].active {
    background-color: #F1F3E0 !important;
    border: none !important;
    color: var(--darkblue) !important;
}

.market-filter-btn[data-market="us_stocks"].active:hover {
    background-color: #e7ead1 !important;
    border: none !important;
    color: var(--darkblue) !important;
}

.market-filter-btn[data-market="commodities"].active {
    background-color: #778873 !important;
    border: none !important;
    color: var(--white) !important;
}

.market-filter-btn[data-market="commodities"].active:hover {
    background-color: #687963 !important;
    border: none !important;
    color: var(--white) !important;
}

.market-filter-btn.disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.market-filter-btn.disabled:hover {
    transform: none;
}

/* Market badges in asset list - match filter button colors */
.asset-item .badge.market-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    text-align: center;
}

.asset-item .badge.market-badge[data-market="global_dev_emerging"] {
    background-color: #D2DCB6 !important;
    color: var(--black) !important;
    border: none !important;
}

.asset-item .badge.market-badge[data-market="global_dev"] {
    background-color: #A1BC98 !important;
    color: var(--black) !important;
    border: none !important;
}

.asset-item .badge.market-badge[data-market="us_stocks"] {
    background-color: #F1F3E0 !important;
    color: var(--darkblue) !important;
    border: none !important;
}

.asset-item .badge.market-badge[data-market="commodities"] {
    background-color: #778873 !important;
    color: var(--white) !important;
    border: none !important;
}

/* Responsive adjustments for market filter buttons */
@media (max-width: 576px) {
    .market-filter-buttons .market-filter-btn:not(:last-child) {
        margin-bottom: 0.5rem;
    }
    .market-filter-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--darkblue) 0%, var(--lightblue) 100%);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.5s ease-out;
    font-family: 'Spline Sans', sans-serif !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 48px;
    line-height: 1;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    font-family: 'Spline Sans', sans-serif !important;
}

.cookie-text strong {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Spline Sans', sans-serif !important;
}

.cookie-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'Spline Sans', sans-serif !important;
}

.cookie-learn-more {
    color: var(--white);
    text-decoration: underline;
    margin-left: 5px;
    font-family: 'Spline Sans', sans-serif !important;
    transition: color 0.2s ease;
}

.cookie-learn-more:hover {
    color: var(--greyblue);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn-accept,
.cookie-btn-reject {
    white-space: nowrap;
    min-width: 150px;
    font-family: 'Spline Sans', sans-serif !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cookie-btn-accept {
    background-color: var(--lightblue);
    color: var(--white);
    border: 1px solid var(--lightblue);
}

.cookie-btn-accept:hover {
    background-color: var(--lightbluehover);
    border-color: var(--lightbluehover);
    color: var(--white);
}

.cookie-btn-reject {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cookie-icon {
        font-size: 36px;
    }
    
    .cookie-text {
        width: 100%;
    }
    
    .cookie-text strong {
        font-size: 1.1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-btn-accept,
    .cookie-btn-reject {
        flex: 1;
        min-width: auto;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}
