/* Stile globale */ 
body {
    background-color: #E1C3BF!important;
    color: #5c3f34 !important;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.b, strong {
    color: #5c3f34;
}

p {
    color: #5c3f34 !important;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Stile per header e footer */
.header, .footer {
    background-color: #E1C3BF!important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000 !important;
}

.footer {
    background-color: #E1C3BF!important;
    border-top: 1px solid #E1C3BF!important;
    margin-top: 100px;
    padding: 10px 0;
    position: fixed;
    height: 60px; /* Imposta un'altezza fissa per evitare sbilanciamenti */
}

.header img.logo {
    max-width: 100px;
    cursor: pointer;
    width: auto;
    max-width: ;height: 50px;
    margin-top: 5px;
}
.header img.profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    margin-top: 4px;
}

.footer a {
    text-decoration: none;
    color: #6a4b3d!important;
    font-size: 14px;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* BOTTONI */
.btn {
    background-color: #5a3b3b !important;
    color: white !important;
    border: none !important;
    padding: 1vw 2vw !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease-in-out !important;
}

.btn:hover {
    background-color: #e1c3bf!important;
    color: #5a3b3b!important;
}

.btn-primary {
    background-color: #5a3b3b; /* Colore di sfondo principale */
    color: white; /* Colore del testo */
    padding: 12px 20px; /* Grandezza simile al bottone dell'errore */
    font-size: 16px; /* Stessa grandezza del bottone dell'errore */
    font-weight: bold;
    border: none;
    border-radius: 8px; /* Angoli arrotondati */
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

/* Effetto hover */
.btn-primary:hover {
    background-color: #7a5757; /* Colore più chiaro quando si passa sopra */
    color: white; /* Mantiene il testo bianco */
}

.h3, h3 {
    font-size: 1rem !important;
}

/*contenitori*/
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x)* .5);
    padding-left: calc(var(--bs-gutter-x)* .5);
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 7rem !important;
}

.container-main {
    padding-bottom: 7rem; /* Aggiunge spazio per evitare la sovrapposizione con il footer */
}

/* Stile per pulsanti di navigazione */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 20px 30px;
}

/* Pulsante Mostra Giorno */
.btn-show-day {
    background-color: #6a4b3d;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-show-day:hover {
    background-color: #573a2f;
}

/* Stile per attività */
.activity-card {
    background-color: #f5e7e0 !important;
    border-radius: 12px;
    padding: 10px 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    margin-bottom: 12px;
    border-left: 5px solid #6a4b3d;
}
.activity-card:hover {
    transform: translateY(-2px);
}
.activity-title {
    font-weight: bold;
    color: #6a4b3d;
    font-size: 16px;
    text-align: center;
}
.activity-time, .activity-instructor, .activity-room {
    text-align: center;
    font-size: 14px;
    color: #6a4b3d;
}
.activity-room {
    font-weight: bold;
}

/* Stile per scritta in activity card */
.text-warning {
    --bs-text-opacity: 1;
    color: red !important;
}

/* Pulsante di disiscrizione (X) */
.unsubscribe-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #d9534f;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}
.unsubscribe-btn:hover {
    color: #c9302c;
}

/* Adattamento per mobile */
@media (max-width: 768px) {
    .activity-card {
        padding: 12px;
    }
    .activity-title {
        font-size: 14px;
    }
    .activity-time, .activity-instructor, .activity-room {
        font-size: 12px;
    }
    .btn-show-day {
        font-size: 12px;
        padding: 6px 10px;
    }
    .unsubscribe-btn {
        font-size: 14px;
    }
}
/* Stili per le attività */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px; /*era 20 e l'ho ridotto a 5 percgè era troppo */
}

.activity-card {
    background-color: #faede8 !important;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-2px);
}

.activity-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #ffffff;
    background-color: white;
}

.activity-details {
    flex-grow: 1;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
}

.activity-title {
    font-weight: bold;
    color: #6a4b3d;
    font-size: 16px;
}

.activity-instructor {
    color: #6a4b3d;
    font-size: 14px;
}

.activity-credits {
    font-weight: bold;
    color: #6a4b3d;
    font-size: 16px;
    white-space: nowrap;
}
.enrolled {
    border-color: rgb(109 170 109) !important;
}

/* Adattamento per mobile */
@media (max-width: 768px) {
    .activity-card {
        padding: 12px;
    }

    .activity-card img {
        width: 40px;
        height: 40px;
    }

    .activity-title {
        font-size: 14px;
    }

    .activity-instructor {
        font-size: 12px;
    }

    .activity-credits {
        font-size: 14px;
    }
    .enrolled {
        border-color: rgb(109 170 109) !important;
    }
}
.main-corso{
    margin-top:1em;
    line-height:0.75em;
}
/*parte crediti */
.container-main {
    max-width: 100%
    margin: auto;
    padding: 20px;
}
.card {
    background-color: #F5E7E0 !important;
    border: none !important
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 20px;
}


hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: none !important;
}

.card-title {
    color: #5c3f34 !important;

}

.btn-buy {
    background-color: #6a4b3d;
    color: white;
}
.btn-buy:hover {
    background-color: #573a2f;
}
.text-success {
    color: green;
}
.text-danger {
    color: red;
}
.text-muted {
    color: gray;
}
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 20px;
}
.filter-buttons a {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    color: white;
}
.filter-active {
    background-color: #6a4b3d;
}
.filter-inactive {
    background-color: #e1c3bf!important;
    color: #5a3b3b!important;
}
.btn-satispay {
    background-color: #E52E2E;
    color: white;
}
.btn-satispay:hover {
    background-color: #C92222;
}
.btn-paypal {
    background-color: #FFC439;
    color: black;
}
.btn-paypal:hover {
    background-color: #E5B02E;
}

/* Stili per la pagina di dashboard */
.progress-circle {
    margin: auto;
}

.circular-chart {
    max-width: 100px;
    max-height: 100px;
}

.circle-bg {
    fill: none;
    stroke: #f5e7e0;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: #6a4b3d;
    stroke-width: 3.8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dasharray 0.3s;
}

.bg-secondary {
    --bs-bg-opacity: 1;
    background-color: #6a4b3d !important;
}

.bg-dark {
    --bs-bg-opacity: 1;
    background-color: #6a4b3d !important;
}

.bg-info {
    --bs-bg-opacity: 1;
    background-color: #6a4b3d !important;
}

/*parte calendario*/
.calendar-container { 
    display: flex; 
    flex-direction: 
    column; align-items: 
    center; width: 100%; 
    padding: 20px; 
    margin-bottom: 7rem !important;
    /*overflow-y: auto; tolgo perchè secondo me meglio così su mobile!*/ 
    max-height: 65vh; 
}
.week-container, .day-container { 
    width: 100%; 
    max-width: 1200px; 
}
.week-container { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 5px; 
    text-align: center; 
}
.week-day, .day-container { 
    background: transparent; 
    min-height: 100px; 
}
.lesson-cont {
    max-height:70vh; 
    overflow-y: auto; 
}
.lesson-card { 
    background: #faede8; 
    padding: 15px; 
    border-radius: 5px; 
    margin-top: 5px; 
    width: 100%; 
    box-shadow: none; 
    border-left: 5px solid #6a4b3d; 
    position: relative; 
}
.disiscrizione-icon {
    display: inline-block !important; /* Mostra la X sempre */
    color: red !important; /* Cambia colore per verificarla */
    font-size: 16px !important;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}
.disiscrizione-icon:hover { 
    color: #c9302c; 
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.nav-buttons { 
    display: flex; 
    justify-content: space-between; 
    margin: 20px 0; 
}
.btn-nav { 
    background-color: #6a4b3d; 
    color: white; border: none; 
    padding: 10px; 
    border-radius: 5px; 
}
.btn-nav:hover { 
    background-color: #573a2f; 
}
.time-slot { 
    border-bottom: 1px solid #ddd; 
    height: 50px; 
    position: relative; 
}
.time-slot span { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    left: 10px; 
    color: #6a4b3d; 
}
@media (max-width: 768px) {
    .week-container { grid-template-columns: repeat(1, 1fr); }
    .week-day, .day-container { width: 100%; }
    .nav-buttons { flex-direction: row; justify-content: space-between; }
    .container {
        margin-bottom: 7rem !important; /* Distanza dal footer */
    }
}

/*parte login*/
.login-container {
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
    color: #5c3f34;
}
.login-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #5c3f34;
    font-weight: bold;
}
.login-container .form-control {
    background-color: #f5e7e0;
    border: 1px solid #d6b8ad;
    color: #5c3f34;
}
.login-container .form-control:focus {
    background-color: #fff;
    border-color: #6a4b3d;
    box-shadow: none;
}
.btn-custom {
    background-color: #5a3b3b; /* Colore di sfondo principale */
    color: white; /* Colore del testo */
    padding: 12px 20px; /* Grandezza simile al bottone dell'errore */
    font-size: 16px; /* Stessa grandezza del bottone dell'errore */
    font-weight: bold;
    border: none;
    border-radius: 6px; /* Angoli arrotondati */
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    text-align: center;
}
.main-div{
    max-height: 120vh;
    max-width: 85vw;
}

#activities-main {
  max-width: none !important;
}

/* Effetto hover */
.btn-custom:hover {
    background-color: #7a5757; /* Colore più chiaro quando si passa sopra */
    color: white; /* Mantiene il testo bianco */
}
.logo {
    margin-bottom: 20px;
}
.logo img {
    max-width: 120px;
}

.logo-login {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    max-width: 120px;
}

/* Stile per il menù che viene giù dall'immagine del profilo */
.dropdown-menu {
    max-height: 300px; /* Imposta un'altezza massima */
    overflow-y: auto; /* Permette lo scrolling se il menu è troppo lungo */
}

img.enrolled {
    border: 3px solid green;
}
img.partial-enrolled {
    border: 3px solid orange;
}

/*filtri in attivita*/
/* ===== FILTRI (card in alto) ===== */
.filters-bar{
  background: transparent;
  border: 0;
  padding: 0;
  margin: 8px 0 18px;
}

/* CARD contenitore (come nello screenshot) */
.filters-card{
  max-width: 440px;              /* larghezza della card */
  margin: 0 auto 20px;           /* centrata */
  background: #f5e7e0;           /* beige chiaro */
  border: 1px solid #e8d3c9;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

/* griglia interna: 1 colonna mobile, 3 colonne su schermi >640 */
.filters-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px){
  .filters-row{ grid-template-columns: 1fr 1fr 1fr; }
}

/* SELECT stile “grossone” con caret a destra */
.filter-select{
  width: 100%;
  height: 52px;
  padding: 12px 40px 12px 14px;      /* spazio per la freccia */
  border: 1px solid #d6b8ad;
  border-radius: 10px;
  background-color: #ffffff;
  color: #5c3f34;
  font-size: 16px;
  line-height: 1;
  outline: none;
  appearance: none;                  /* nasconde il caret nativo */

  /* caret custom */
  background-image:
    linear-gradient(45deg, transparent 50%, #6a4b3d 50%),
    linear-gradient(135deg, #6a4b3d 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.filter-select:focus{
  border-color: #6a4b3d;
  box-shadow: 0 0 0 3px rgba(106,75,61,.12);
}

/* bottone “Filtra” a tutta larghezza, scuro */
.filters-card .btn.btn-primary{
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 12px;
  background-color: #5a3b3b !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
}
.filters-card .btn.btn-primary:hover{
  background-color: #7a5757 !important;
}


/* ===== CARD ATTIVITÀ ===== */
/* avatar di default: bordo parametrico con CSS var */
.activity-card img {
  --avatar-border: #ffffff;          /* fallback se non imposto il colore corso */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid var(--avatar-border);
  background: #fff;
}

/* iscrizioni: continuano a prevalere */
img.enrolled         { border-color: #69b369 !important; }   /* verde */
img.partial-enrolled { border-color: #f0a33a !important; }   /* arancio */

/* ===== Colori corso (se NON iscritto) =====
   Applica .color-<n> sull'IMG (o inline style).
   Mappa i valori con la tua palette o con i colori del DB.  */
.color-1  { --avatar-border: #6a4b3d; }  /* esempio: marrone brand */
.color-2  { --avatar-border: #c77d7d; }
.color-3  { --avatar-border: #9c7c62; }
.color-4  { --avatar-border: #a46e8a; }
.color-5  { --avatar-border: #7c9c88; }
/* aggiungi altre classi se ti servono... */

/* responsive: piccoli ritocchi */
@media (max-width: 768px) {
  .activity-card { padding: 12px; }
  .activity-card img { width: 44px; height: 44px; }
}
.activity-when{
  text-align:center;
  font-size:14px;
  color:#6a4b3d;
  font-weight:600;
  margin-top:2px;
}
/* la riga dei due orari su schermi larghi sta 2-colonne */
@media (min-width:640px){
  .filters-row:nth-of-type(2){ grid-template-columns:1fr 1fr; }
}


