/* Stili globali */

@import url(https://db.onlinewebfonts.com/c/a3e629ef74f23205613f908b609d9b72?family=Madera+Regular);


/* Imposta il layout a colonna e occupa tutto lo spazio */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  }
  .container.content {
    flex: 1; /* Spinge il footer in basso */

}

/* Il contenitore del contenuto principale deve occupare tutto lo spazio disponibile */
.container.content {
  flex: 1;
  margin-top: 50px !important; /* Spinge il contenuto un po' giù se necessario */
}
/* Reset completo per il footer */
.footer {
  all: unset !important; /* Rimuove tutte le proprietà ereditate */
  position: static !important;
  margin-top: auto !important;
  background-color: #0c4a8a;
  color: white;
  text-align: center;
  padding: 15px 0;
  width: 100%;
}

@media (max-width: 768px) {
  .footer, .footer-container {
    display: none !important; /* Nasconde il footer e il contenitore */
  }
}

.mt-3, .my-3 {
    margin-top: 1px !important;
}


body {
   font-family: "Madera Regular"!important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #ffffff; /* Colore di sfondo più chiaro */
}


.h2, h2 {
    font-size: 2rem;
	font-family: "Madera Regular";
}

h1, {
    font-weight: bold;
    color: #2c3e50; /* Blu scuro per titoli */
    margin-bottom: 15px;
	font-family: "Madera Regular";
}

/* Navbar */
.navbar {
    background-color: #1f2937; /* Scuro elegante */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar a {
    color: #ffffff;
    padding: 15px;
    text-decoration: none;
    font-size: 1em;
}
.navbar a:hover {
    background-color: #ff5f5f !important;
}

/* Contenuto */
.content {
   margin-top:20px;
    padding: 20px;
}



/* Stile per il nome utente */
h2 span.nome-utente {
    color: #12468d !important; /* Blu acceso per evidenziare il nome */
    font-weight: bold !important; /* Testo in grassetto per enfasi */

}

/* Pulsanti */
button {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
    transition: background 0.3s ease, transform 0.2s ease;
}
button:hover {
    background: linear-gradient(90deg, #4f46e5 0%, #2563eb 100%);
    transform: translateY(-2px);
}
button:active {
    transform: translateY(0);
    background: #1d4ed8;
}

/* Aggiunta di icone */
.navbar a:before {
    font-family: 'FontAwesome';
    margin-right: 8px;
}
.navbar a[href*="Dashboard"]:before {
    content: "\f015"; /* Icona home */
}
.navbar a[href*="Wallet"]:before {
    content: "\f09d"; /* Icona wallet */
}
.navbar a[href*="Account"]:before {
    content: "\f007"; /* Icona account */
}


/* Contenitore dei livelli */
.livello-container {
    display: inline-flex; /* Disposizione orizzontale */
    align-items: center; /* Allinea verticalmente i quadrati ai due punti */
    margin-left: 10px; /* Spazio opzionale per separarlo dai ":" */
}



/* Stile per i livelli */
.livello {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 5px;
    font-size: 14px;
    background-color: #f8f9fa;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.livello-attuale {
    background-color: #fb5f4c!important;
    color: white;
    font-weight: bold;
  margin-top:10px!important;
}

.livello:hover {
    background-color: #e2e6ea;
}

/* Tooltip */
.livello[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 35px;
    left: 30%;
    transform: translateX(-30%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s;
}

.livello[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 30%;
    transform: translateX(-30%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s;
}

.investment-section {
    background: #ffffff; /* Sfondo chiaro */
    padding: 25px; /* Spaziatura interna */
    border-radius: 12px; /* Angoli arrotondati */
    border-left: 3px solid #2563eb; /* Linea verticale colorata */
    border-right: 3px solid #2563eb; /* Linea verticale colorata */
    border-top: 3px solid #2563eb; /* Linea orizzontale sopra */
    border-bottom: 3px solid #2563eb; /* Linea orizzontale sopra */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1), /* Ombra esterna */
                inset 0px -3px 5px rgba(0, 0, 0, 0.05); /* Ombra interna */
    transition: all 0.3s ease; /* Transizione per gli effetti */
    position: relative;
}

.investment-section:hover {
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15), /* Ombra esterna più marcata */
                inset 0px -5px 8px rgba(0, 0, 0, 0.1); /* Ombra interna più evidente */
    transform: translateY(-4px); /* Movimento verso l'alto */
    background: #f8fafc; /* Leggera variazione dello sfondo */
}

.investment-section strong {
    color: #2c3e50; /* Testo scuro per titoli */
    font-size: 1.2em; /* Leggermente più grande */
    display: block;
    margin-bottom: 10px;
}

.investment-section p {
    color: #12468d; /* Testo distinto per i valori */
    font-size: 1em;
    font-weight: bold;
}

/* Effetto icone */
.investment-section i {
    font-size: 1.8em; /* Icone più grandi */
    color: #6c757d; /* Grigio per le icone */
    margin-bottom: 10px;
    display: block;
}

/* Adattabilità */
@media (max-width: 768px) {
    .investment-section {
        padding: 20px;
        border-radius: 10px;
        flex: 1 1 calc(30% - 20px); /* Riduzione al 30% */
       
    }
  .text-muted {
    color: #ffffff !important;
}
    .investment-section i {
        font-size: 2em;
    }
    .investment-section strong, .investment-section p {
        font-size: 0.9em;
    }
}

.tab-content {
    border: none; /* Rimuove il bordo esterno */
    background-color: transparent; /* Rende lo sfondo trasparente */
}

/* Regola il contenitore della card */
.card {
    box-shadow: none; /* Rimuove l'ombra */
    border: none; /* Rimuove eventuali bordi */
}

/* Se serve, aggiusta anche i bordi superiori dei tab */
.nav-tabs {
    border-bottom: none; /* Rimuove la linea sotto i tab */
}

/* Allineamento degli elementi */
.nav-tabs .nav-item {
    margin-bottom: 0; /* Elimina margine aggiuntivo */
}

/* Stile per integrare i tab */
.nav-tabs {
    border-bottom: 1px solid #ddd; /* Bordo sottile per separare i tab */
    background-color: #ffffff; /* Sfondo per integrare con il contenitore */
    border-top-left-radius: 12px; /* Angoli arrotondati per il bordo superiore sinistro */
    border-top-right-radius: 12px; /* Angoli arrotondati per il bordo superiore destro */
    padding: 10px; /* Spaziatura interna */
    margin-bottom: -1px; /* Per connettere i tab al contenuto */
}

.nav-tabs .nav-link {
    border: 1px solid transparent; /* Rimuove i bordi predefiniti */
    border-radius: 6px; /* Arrotonda i bordi dei link */
    color: #555; /* Colore del testo */
    margin-right: 5px; /* Distanza tra i tab */
    transition: background-color 0.3s ease, color 0.3s ease; /* Effetto di transizione */
}

.nav-tabs .nav-link.active {
    color: #fff!important;
    background-color: #324fb0!important;
    border-color: #324fb0!important;
    border: none;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
	width: auto;
    color: #ffffff;
   
}

.nav-tabs .nav-link:hover {
    background-color: #e9ecef; /* Sfondo al passaggio del mouse */
    color: #007bff; /* Colore del testo al passaggio del mouse */
}

/* Stile per i link non attivi */
.nav-tabs .nav-link:not(.active) {
    color: #000; /* Colore del testo, personalizzalo come preferisci */
    background-color: #f8f9fa; /* Colore di sfondo per i link non attivi */
    border: none; /* Opzionale: rimuove eventuali bordi */
    border-radius: 10px; /* Se vuoi mantenere gli angoli arrotondati */
}

/* Stile per il messaggio di funzionalità non disponibile */
.not-available-message {
    color: #a0a0a0; /* Grigio chiaro */
    font-size: 1em;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic; /* Per rendere il messaggio più distintivo */
}



/* Contenitore delle notifiche */
.content {
    /*margin-top: 60px;*/
    padding: 30px;
    max-height: calc(100vh - 100px); /* Altezza massima */
    overflow-y: auto; /* Aggiunge uno scroll interno */
    background-color: #ffffff;
    border-radius: 8px;
}

/* Stile per le notifiche */
.notifica-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #ffffff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pulsante "Segna come letta" */
.notifica-card button {
    width: 100%; /* Riempie la larghezza disponibile */
    font-size: 0.9rem;
}

/* Icone delle notifiche */
.notifica-icon {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Migliora il layout del testo */
.notifica-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.notifica-card p {
    margin: 10px 0;
    line-height: 1.5;
}

/* Stili per la tabella */
.table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 1.5rem !important;
    font-family: "Madera Regular"!important;
    font-size: 14px !important;
    color: #333 !important;
}

.table thead {
    background-color: #f4f6f8 !important; /* Colore sfondo per intestazione */
    text-align: center !important;
}

.table thead th {
    padding: 10px 15px !important;
    font-weight: bold !important;
    text-transform: uppercase !important; /* Titoli maiuscoli */
    border-bottom: 2px solid #ddd !important;
}

.table tbody tr {
    border-bottom: 1px solid #ddd !important;
}

.table tbody tr:nth-child(even) {
    background-color: #fafafa !important; /* Riga alternata */
}

.table tbody td {
    padding: 10px 15px !important;
    text-align: center !important;
}

.table tbody td.text-right {
    text-align: right !important; /* Allinea numeri a destra */
}

.table tbody tr:hover {
    background-color: #f0f8ff !important; /* Effetto hover */
    transition: background-color 0.3s !important;
}

/* Stile per il titolo della tabella */
.table-title {
    font-size: 20px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    color: #2a2a2a !important;
    border-bottom: 2px solid #ddd !important;
    padding-bottom: 5px !important;
}

/* Navbar principale */
.navbar {
    background-color: #12468d !important;
    display: flex !important;
    justify-content: center !important; /* Centra i collegamenti */
    align-items: center !important;
    padding: 10px 20px !important;
    color: #fff !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    font-family: Arial, sans-serif !important;
    min-height:80px;
}

/* Collegamenti nella navbar */
.navbar-links a {
    text-align: center !important; /* Allinea il testo al centro */
    margin: 0 10px !important; /* Spazio tra gli elementi */
    color: #fff !important;
    text-decoration: none !important;
}

/* Logo mobile */
.mobile-logo {
    display: block; /* Assicurati che il logo sia visibile anche su mobile */
    width: 50px; /* Imposta la dimensione desiderata */
    height: auto; /* Mantieni la proporzione */
}


/* Regola per il menu mobile */
.mobile-navbar {
    display: flex;
    flex-direction: column;
    background-color: #333; /* Sfondo scuro */
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Assicurati che sia sopra gli altri contenuti */
    padding: 10px;
}


/* Righe evidenziate nella tabella */
.highlight-row {
    background-color: #fff3cd!important; /* Colore giallo chiaro */
}


.btn-primary {
    color: #fff;
	min-width:100%;
    background-color: #fb5f4c!important;
    border-color: #324fb0!important;
    border: none;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%)!important;
    box-shadow: 1.4px 9.7px 15px rgba(0, 0, 0, 0.3);
    width: auto;
    padding: 0 45px;
    color: #ffffff;
    margin-top: 20px;
}
}

div.modal-dialog {
    position: relative !important;
    margin: auto !important;
    transform: translate(0, 0) !important;
}

div.modal-content {
    animation: none !important;
    transition: none !important;
}

@media (max-width: 768px) {
    div.modal-dialog {
        max-width: 95% !important;
    }
}

/* AREA BANNER */

/* Layout generico per i banner */
.banner-container,
.investment-banners {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Allinea a sinistra */
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Stile generico dei banner */
.banner {
    background-color: #ffffff; /* Sfondo bianco */
    padding: 15px; /* Ridotto da 25px per meno spazio interno */
    border-radius: 8px; /* Angoli leggermente più piccoli */
    border: 1px solid #e5e7eb;
    text-align: center;
    flex: 1 1 calc(25% - 15px); /* Ridotto a 4 colonne */
    min-width: 150px; /* Ridotta larghezza minima */
    max-width: 100px; /* Ridotta larghezza massima */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05); /* Ombra più compatta */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner:hover {
    transform: translateY(-5px); /* Leggera animazione */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

/* Icone nei banner */
.banner i {
    font-size: 1.5em;
    color: #6c757d; /* Grigio neutro */
    margin-bottom: 8px;
    display: block;
}

/* Stile del testo nei banner */
.banner strong {
    display: block;
    font-size: 1rem;
    color: #6c757d; /* Testo grigio/blu */
    margin-top: 5px;
}

.banner p {
    font-size: 1em;
    font-weight: bold;
    color: #12468d !important; /* Valori in arancione */
    margin-top: 5px;
    font-size: 14px !important;
}

/* Container inferiore */
.banner-container-inferiori {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-left: 10px;
    margin-bottom: 30px;
}

/* Griglia per i banner (responsive layout) */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Layout dinamico */
    gap: 15px;
    padding: 15px;
}

/* Stile specifico per banner su dispositivi mobili */
@media (max-width: 768px) {
    .banner {
        flex: 1 1 calc(50% - 10px); /* Mantieni 2 colonne */
        padding: 10px; /* Ridotto ulteriormente */
        font-size: 0.8rem; /* Dimensione del testo più piccola */
        border-radius: 6px; /* Riduzione degli angoli */
        max-width: 220px; /* Larghezza massima ridotta */
        min-height: 130px !important; /* forza un’altezza minima */
      
    }

    .banner i {
        font-size: 1.5em; /* Icone leggermente più piccole */
    }

    .banner strong {
        font-size: 0.8rem; /* Testo ancora più piccolo */
    }

    .banner p {
        font-size: 0.7em; /* Testo del paragrafo ridotto */
    }
}


/* Stile specifico per banner su dispositivi desktop */
@media (min-width: 769px) {
    .banner {
        background-color: #fffff; /* Sfondo grigio */
        color: #12468d; /* Testo blu */
        flex: 1 1 calc(33.33% - 20px); /* 3 colonne */
        padding-top: 20px;
        padding-left: 5px;
        padding-right: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombra più sottile */
        margin-left:10px;
    }

    .banner i {
        font-size: 2em;
        color: #6c757d; /* Icone blu */
    }

    .banner strong {
        font-size: 13px;
        color: #343a40 ; /* Testo blu */
    }

    .banner p {
        font-size: 1em;
        color: #fb5f4c; /* Valori arancioni */
    }
}

/* Versione mobile: banner con sfondo blu */
@media (max-width: 768px) {
    .banner {
        background-color: #ffffff; /* Sfondo blu */
        color: #ffffff; /* Testo bianco */
    }

    .banner i {
        color: #ffffff; /* Icone bianche */
    }

    .banner strong {
        color: #cccccc; /* Testo grigio */
    }

    .banner p {
        color: #12468d; /* Valori arancioni */
    }
}

/* Riduzione spazi per dispositivi mobili */
@media (max-width: 768px) {
    .banner-grid {
        gap: 10px; /* Spaziatura ridotta */
    }

    .banner-container {
        padding: 10px; /* Riduzione padding */
    }
}

.text-muted {
	margin-top:5px;
	margin-bottom:30px;
	}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Popup Content */
.popup-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Title */
.popup-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* Popup Body */
.popup-body {
    line-height: 1.6;
    margin-top:-50px;
}

.popup-body p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup-body i {
    margin-right: 10px;
    color: #343a40;
}

/* Popup Footer */
.popup-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-footer button {
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(to right, #4caf50, #81c784);
    color: white;
}

/* Secondary Button */
.btn-secondary {
    background: #f44336;
    color: white;
}

.vertical-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.vertical-banner img {
    object-fit: cover; /* Adatta l'immagine */
    width: 100%; /* L'immagine occupa tutta la larghezza */
    height: 100%; /* L'immagine occupa tutta l'altezza */
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    margin-top: 50px!important;
}

.alert-success {
 margin-top: 50px!important;
 }

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Nasconde il popup di default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenuto del Popup */
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: left!important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  
  
}

/* Pulsante Info */
.btn-info-descrizione {
    background: none;
    border: none;
    color: #007bff;
    font-size: 18px;
    cursor: pointer;
}

.btn-info-descrizione:hover {
    color: #0056b3;
}

/* Pulsante Chiudi */
.btn-secondary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #0056b3;
}

/* Contenitore titolo e icona */
.title-container {
    display: flex !important; /* Usa flexbox per allineamento orizzontale */
    align-items: center !important; /* Centra verticalmente il contenuto */
    gap: 0.5rem !important; /* Distanza tra titolo e icona */
    white-space: nowrap !important; /* Impedisce l'andata a capo */
}

/* Stile del titolo */
.title-libero {
    font-size: 1rem !important; /* Dimensione appropriata */
    font-weight: 600 !important; /* Grassetto */
    margin: 0 !important;
}

/* Pulsante info con icona */
.btn-info-descrizione {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #fb5f4c !important; /* Colore blu per evidenziare */
    font-size: 1.2rem !important; /* Dimensione della 'i' */
    cursor: pointer !important;
    display: inline-flex !important; /* Allineamento inline */
    align-items: center !important;
}

.btn-info-descrizione:hover {
    color: #0056b3 !important; /* Colore hover */
    text-decoration: none !important;
}

/* Rimuove effetto evidenziato */
.btn-info-descrizione:focus {
    outline: none !important;
}

/* Ridimensiona l'icona `i` per dispositivi mobili */
@media (max-width: 768px) {
    .btn-info-descrizione i {
        font-size: 18px !important; /* Dimensione più piccola */
    }

    .btn-info-descrizione {
        padding: 5px !important; /* Riduci il padding */
    }

    /* Ridimensiona il popup per schermi piccoli */
    .popup-content {
        width: 90% !important; /* Adatta alla larghezza del dispositivo */
        max-height: 80% !important; /* Limita l'altezza */
        overflow-y: auto !important; /* Aggiungi lo scrolling verticale */
        padding: 15px !important; /* Margine interno per evitare contenuti troppo vicini */
    }

    .popup-overlay {
        align-items: flex-start !important; /* Popup più centrato nei dispositivi piccoli */
        padding-top: 20px !important; /* Spazio superiore */
    }

    /* Riduci la dimensione del titolo e del testo */
    .popup-content h3 {
        font-size: 20px !important; /* Titolo più piccolo */
    }

    .popup-content p {
        font-size: 14px !important; /* Testo più piccolo */
        line-height: 1.5 !important; /* Spaziatura migliore */
    }
}

.fas fa-info-circle {
	    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
	}


/* Stile del link invito */
#link-invito {
    color: #007bff !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

#tooltip-commissioni {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 5px;
}

/* Stile per le commissioni */
.commissione-box {
    font-size: 0.9em;
    color: #6c757d;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    width: 70px;
    cursor: default; /* Rende il box non cliccabile */
    background-color: #f8f9fa;
    display: inline-block; /* Mostra come blocco inline */
}

/* Stile per il box selezionato */
.commissione-box.selected {
    border-color: #e73351 !important;
    color: #e73351 !important;
    font-weight: bold !important;
    background-color: #e9f5ff !important;
}

/* Stile per commissioni al 50% */
.commissione-box.percent-50 {
    border-color: red !important;
    color: red !important;
}

/* Stile per commissioni al 30% */
.commissione-box.percent-30 {
    border-color: green !important;
    color: green !important;
}


/* Sovrascrive regole input radio/checkbox Bootstrap */
input[type="radio"] {
    display: none !important; /* Nasconde il radio */
}

/* Stile del selettore della lingua */
.language-selector {
    position: absolute; /* Posizionamento indipendente */
    top: 10px; /* In alto */
    right: 10px; /* A destra */
    display: flex;
    gap: 10px;
    z-index: 1001; /* Assicura che sia sopra gli altri elementi */
}

.language-selector .flag-icon {
    width: 24px;
    height: auto;
    border-radius: 50%;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
    .language-selector {
        top: 15px; /* Posiziona il selettore */
        right: 15px; /* Aggiusta per il mobile */
    }
}

.hamburger-icon {
    color: white;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1002; /* Più alto del selettore */
    display: block;
    font-size: 24px;
    cursor: pointer;
}

.pulsante {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    color: #fff;
    background-color: #007bff; /* Colore blu */
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pulsante:hover {
    background-color: #0056b3;
}


/* Nascondere pulsanti dinamicamente */
.hidden {
    display: none !important;
}

.telnet-text {
    color: white;
    font-family: monospace;
    background-color: black;
    padding: 10px;
    margin-top: 20px;
    height: 200px;
    overflow-y: auto;
}

/* Stile di default */
.mt-5, .my-5 {
    margin-top: 3rem !important;
    color: #33406a; /* Colore di default */
}

/* Regola per dispositivi mobili */
@media (max-width: 768px) {
    .mt-5, .my-5 {
        color: white !important; /* Colore bianco su mobile */
    }
}


.account-form .form-group button {
    border: none!important;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    min-width: 100%!important;
   background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%) !important;
  }
  

/* codice per pop up telnet */

/* Stile del box Telnet */
.telnet-box {
    background-color: black;
    color: lime;
    font-family: monospace;
    padding: 10px;
    white-space: pre-wrap;
    border-radius: 5px;
    overflow-x: auto;
}

pre {
    font-family: "Madera Regular";
    font-size: 1em;
}
pre {
    display: block;
    font-size: 87.5%;
    color: white!important;
}

  h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.3;
    color: #33406a;
    font-family: "Madera Regular"!important;
}


.azione-container {
    text-align: center!important;
}

.pulsanti-container {
    position: relative!important;
    height: 100px!important; /* Altezza per mostrare l'immagine */
    width: 100%!important; /* Larghezza completa della cella */
    background: url('/assets/images/attendi.png') no-repeat center center!important;
    background-size: contain!important;
}

.pulsanti-container button {
    position: relative!important;
    z-index: 1!important; /* Porta i pulsanti sopra l'immagine di sfondo */
}

.pulsanti-container form {
    display: inline-block!important; /* Per posizionare i pulsanti in linea */
}

#livelloAccount {
    margin-top: 20px; /* Sposta l'elemento verso il basso */
    z-index: 10; /* Garantisce che sia sopra altri elementi */
    position: relative; /* Posizionamento relativo per un corretto rendering */
}



 /* CARD PRINCIPALE */
    .progress-card {
        background: #f8f9fa; /* Sfondo chiaro tipo card */
        margin-right: auto;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombra leggera */
        width: 100%;
        max-width: 860px;
        font-family: "Madera Regular"!important; /* Font aggiornato */
    }

    .progress-title {
        font-size: 18px;
        font-weight: 600;
        color: #1f3a93;
        margin-bottom: 10px;
    }

    .progress-bar-container {
        background: #e0e0e0;
        border-radius: 20px;
        overflow: hidden;
        height: 18px;
        box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .progress-bar {
        height: 100%;
        width: 0%;
        background: #24692a;
        border-radius: 20px;
        transition: width 1s ease-in-out;
    }

    .progress-text {
        position: absolute;
        width: 100%;
        text-align: center;
        font-weight: bold;
        color: white;
        font-size: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .progress-description {
        font-size: 13px;
        color: #555;
        font-weight: 500;
        margin-top: 8px;
    }

    /* LISTA OBIETTIVI */
    .task-list {
        list-style: none;
        padding: 0;
        margin-top: 15px;
    }

    .task-list li {
        display: flex;
        align-items: center;
        margin-bottom: 5px;
        font-size: 14px;
        color: #000;
        font-weight: 500;
    }

    .task-list li.completed {
        color: #24692a;
    }

    .task-list li i {
        font-size: 16px;
        margin-right: 8px;
    }

    /* LAYOUT CON IMMAGINE E SEZIONE */
    .dashboard-container {
         display: flex;
       align-items: flex-start; /* Allinea tutto in alto */
       gap: 20px; /* Stesso gap dei banner */
        justify-content: space-between;
        max-width: 900px;
        margin: 20px auto;
    }

    .left-section {
        flex: 1;
        max-width: 500px;
    }

    /* IMMAGINE ORA PERFETTAMENTE ALLINEATA */
    .invite-image {
        max-width: 220px;
        align-self: flex-start;
        margin-top: 10px; /* Ora è ben allineata */
    }

    /* NASCONDERE IMMAGINE SU MOBILE */
    @media (max-width: 768px) {
        .dashboard-container {
            flex-direction: column;
            align-items: flex-start;
        }
        .invite-image {
            display: none;
        }
    }

    /* SEZIONE LIVELLO 1 */
    .invite-section {
        text-align: left;
        padding-top: 5px;
    }

    .invite-header {
        font-size: 14px;
        font-weight: 500;
        color: #000;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 0;
        border-bottom: 1px solid #ddd;
    }

    .invite-header i {
        transition: transform 0.3s ease-in-out;
    }

    .invite-content {
        display: none;
        padding-top: 8px;
    }

    .invite-info {
        font-size: 13px;
        color: #000;
        font-weight: 500;
        margin-bottom: 5px;
    }

    .invite-progress {
        font-size: 14px;
        font-weight: bold;
        color: #24692a;
        margin-top: 8px;
    }

    .invite-goal {
        font-size: 14px;
        color: #000;
        margin-top: 5px;
    }


.deposit-tutorial {
    background-color: #f8f9fa;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    text-align: left;
}

.notification-icon .badge {
    position: absolute;
    right: -10px;
    background-color: red;
    color: white;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 12px;
}

body *::-webkit-scrollbar-thumb {
    background-color: #ffffff!important;
    width: 0px!important;
}

body *::-webkit-scrollbar-track {
    -webkit-box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.3);
    background-color: #ffffff!important;
}

 .livello-info {
font-size:14px;
}

 .banner-header {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
    padding: 0px;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-left: -10px;
    margin-right: -10px;
}

@media (max-width: 768px) {
  html body .banner-header {
    background-color: #f8f9fa;
    border: 1px solid #ddd !important;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1) !important;
    padding: 0px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
  }

  html body .livello-info {
   white-space: normal;
    overflow-wrap: break-word;
}

  }
}

@media (max-width: 768px) {
    .tab-item.active {
        color: #fb5f4c!important;
    }
}

/* Per la tabella desktop */
.table-bordered {
    display: table; /* Mostra la tabella desktop di default */
    width: 100%; /* Assicura il layout completo */
}

/* Nascondi la versione mobile su desktop */
@media (min-width: 768px) {
    .table-responsive-mobile {
        display: none !important; /* Nascondi card-style */
    }
    .desktop-table {
        display: block !important; /* Mostra la tabella desktop */
    }
}

/* Nascondi la versione desktop su mobile */
@media (max-width: 768px) {
    .desktop-table {
        display: none !important; /* Nascondi la tabella desktop */
    }
    .table-responsive-mobile {
        display: block !important; /* Mostra card-style */
    }
  
 @media (max-width: 768px) {
    .investment-section {
        background: #12468d !important;
        color: #ffffff !important;
        padding: 25px;
        border-radius: 12px;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
        box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1), inset 0px -3px 5px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        position: relative;
    }

    /* Specifico per h3, se vuoi un colore diverso solo per gli h3 */
    .investment-section h3 {
        color: #ffffff; /* Colore personalizzato solo per gli h3 */
    }

   
}
  
  .copy-container {
    text-align: left !important;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: -40px;
    margin-top: 10px;
    margin-left: 10px!important;
}
  
 @media (max-width: 768px) {
  .qrcode-section {
    display: none !important;
  }
}
 
 @media (max-width: 768px) {
    .navbar {
        display: flex!important; 
        align-items: center!important; 
        justify-content: space-between!important; /* Distribuisce gli elementi con spazio tra di loro */
    }
    .navbar-logo {
        order: 1;         /* Fa apparire il logo per primo */
        margin-right: auto!important;  /* Spinge il logo a sinistra */
    }
    .language-selector {
        order: 2!important;          /* Il selettore delle lingue viene dopo il logo */
    }
}

  
 .notification-icon {
   margin-left:30px;
  margin-top: -20px;
}
  
  @media (max-width: 768px) {
    .text-danger {
      color:white!important;
      }
    }
  
  .break-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
	margin-left:5px;
    display: block;
}

  @media (max-width: 768px) {
  .navbar-desktop .navbar-logo {
      display: block !important;
  }
}

/* --- Icona notifiche mobile fuori dal menu --- */
.mobile-notification {
    display: none;
}

@media (max-width: 768px) {
    .mobile-notification {
        display: flex;
        align-items: center;
        position: absolute;
        right: 20px;
        top: 55%;
        transform: translateY(-50%);
        color: white;
        text-decoration: none;
    }

    /* 🔢 Numero accanto alla campanella */
.mobile-notification .badge {
    position: static; /* ❗ Rimuove il posizionamento assoluto */
    margin-left: 6px; /* 🔄 Spazio tra l’icona e il numero */
    background-color: red;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1;
   }
 }
 
 @media (max-width: 768px) {
  .banner-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

