@font-face {
  font-family: montserrat;
  src: url('/fonts/montserrat-light.woff2');
  font-weight: 300;
}

@font-face {
  font-family: montserrat;
  src: url('/fonts/montserrat-regular.woff2');
  font-weight: 400;
}

@font-face {
  font-family: montserrat;
  src: url('/fonts/montserrat-semi_bold.woff2');
  font-weight: 600;
}

@font-face {
  font-family: montserrat;
  src: url('/fonts/montserrat-bold.woff2');
  font-weight: 700;
}

* {
  font-family: montserrat, 'Courier New', Courier, monospace;
}

:root {
  --rehab-green: #00d2a0;
  --rehab-dark: #1b2e3c;
  --rehab-light-bg: #f8f9fa;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--rehab-light-bg);
  color: var(--rehab-dark);
}

/* Navbar */
#top-navbar {
  justify-content: center;
}

.nav-item {
  margin-right: 1rem;
}

@media (max-width: 991px) {
  .nav-item {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

.navbar-rehab {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
  font-weight: 700;
  color: var(--rehab-dark);
}

.navbar-brand span {
  color: var(--rehab-green);
}

.nav-link {
  color: var(--rehab-dark);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--rehab-green);
}

/* Card Statistiche (Crediti) */
.stat-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  height: 100%;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.credit-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rehab-green);
}

/* Toolbar di ricerca */
.filter-bar {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

/* Card Analisi (Elemento singolo della lista) */
.analysis-card {
  background: #fff;
  border: none;
  border-radius: 10px;
  border-left: 5px solid var(--rehab-green);
  /* Linea verde decorativa */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 20px;
  transition: all 0.2s;
}

.analysis-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary-rehab {
  background-color: var(--rehab-green) !important;
  border: none !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.btn-primary-rehab:hover {
  background-color: #00b085 !important;
}

.btn-outline-danger-custom {
  color: #dc3545;
  border: 1px solid #dc3545;
  background: transparent;
}

.btn-outline-danger-custom:hover {
  background: #dc3545;
  color: #fff;
}

#navbar-logged {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

#navbar-logged>:first-child {
  flex: 0 0 auto;
}

#navbar-logged>:last-child {
  flex: 1 1 auto;
}

#navbar-logged>#links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

nav>:first-child {
  margin: 0;
}

.navbar-nav .nav-link.active {
  color: var(--rehab-green) !important;
  font-weight: 600;
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: '';
  display: block;
  height: 2px;
  background-color: var(--rehab-green);
  width: 100%;
  position: absolute;
  bottom: -4px;
  left: 0;
  border-radius: 2px;
}


label {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.profile-link {
  display: flex;
  flex-direction: row;
  column-gap: 0.5rem;
  align-items: center;
}

.icon.text {
  height: 32px;
  width: 32px;
  display: inline;
}

.icon.text.s {
  height: 20px;
  width: 20px;
}

footer {
  display: grid;
  grid-template-columns: 30% 40% 30%;
}

@media (max-width: 850px) {
  footer {
    grid-template-columns: 100%;
  }
}

footer>div {
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* cst-toast base */
.cst-toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  min-width: 250px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
}

.cst-toast button {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}

.cst-toast.success {
  background-color: var(--rehab-green);
}

.cst-toast.error {
  background-color: #dc3545;
}

.cst-toast.warning {
  background-color: #ffc107;
  color: #1b2e3c;
}

.cst-toast.info {
  background-color: #0d6efd;
}

/* Animazione slide */
@keyframes slideIn {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.bar {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px
}

.capitalize {
  text-transform: capitalize;
}

/* /css/rehab-card.css */
.rehab-card {
  background-color: #fff;
  border-left: 4px solid #00d2a0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.rehab-card.grey {
  border-left-color: #6c757d;
}

.rehab-card.green {
  border-left-color: #00d2a0;
}

.rehab-card.red {
  border-left-color: #DC3545;
}

.rehab-card.yellow {
  border-left-color: #d6dc35;
}


.rehab-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Typography */
.rehab-card h2 {
  font-weight: 600;
  color: #1b2e3c;
  /* rehab-dark */
}

.rehab-card h3 {
  font-weight: 700;
  color: #00d2a0;
  /* rehab-green */
}

.rehab-card small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.rehab-card p {
  margin-top: 0.5rem;
  color: #495057;
}

.nav-item {
  text-transform: capitalize;
}

span.sphere {
  height: 10px;
  width: 10px;
  border-radius: 50%;
}

span.sphere.green {
  background-color: #00d2a0;
}

span.sphere.red {
  background-color: #dc3545;
}

span.sphere.yellow {
  background-color: #d6dc35;
}