/* Base */
html, body { height: 100%; }
body {
  font-size: 0.95rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main { flex: 1 1 auto; }

/* Bootstrap tweaks */
.table td, .table th { vertical-align: middle; }

/* Cards */
.card {
  border: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}


/* Navbar */

.app-navbar {
  background: linear-gradient(90deg, #1f7a63, #2fa37f);
  padding: 0 16px;
  display: flex;
  align-items: center;
  min-height: 80px; /* 👈 aggiungi questo */
}



/* Logo */
.app-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}


.app-navbar .container {
  padding-left: 0.1rem;
  padding-right: 0.75rem;
}

/*
.app-navbar .navbar-brand { color: #fff; }
*/

.app-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px; /* spazio tra logo e testo se presente */
  color: #fff;
}

.app-navbar .nav-link { color: rgba(255,255,255,.85); }
.app-navbar .nav-link:hover,
.app-navbar .nav-link.active { color: #fff; }

.app-navbar .btn-outline-light {
  border-color: rgba(255,255,255,.8);
}
.app-navbar .btn-outline-light:hover {
  background: rgba(255,255,255,.15);
}

.app-navbar .dropdown-menu {
  border: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.app-navbar .dropdown-item:hover {
  background-color: rgba(31,122,99,.12);
}

.text-brand { color: #1f7a63; }

.btn-brand {
  background-color: #1f7a63;
  color: #fff;
}
.btn-brand:hover { background-color: #196552; }

/* ===== TABELLE (senza rompere Bootstrap) ===== */
/* Invece di sovrascrivere .table, usiamo una classe wrapper */
.table-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
  overflow: hidden; /* serve per arrotondare header e righe */
}

.table-card .table { margin-bottom: 0; }

.table-card .table thead {
  background-color: #1f7a63;
  color: #fff;
}

.table-card .table th,
.table-card .table td {
  padding: 6px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-card .table tbody tr:nth-child(even) { background-color: #f9f9f9; }
.table-card .table tbody tr:nth-child(odd) { background-color: #ffffff; }

.table-card .table tbody tr:hover { background-color: #f1f1f1; }

/* Link in tabella */
.table-card .table a {
  color: #1f7a63;
  text-decoration: none;
}
.table-card .table a:hover { color: #1fbae6; }

/* Responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Footer */

/*
footer {
  background-color: #343a40;
  color: white;
  padding: 20px 0;
  width: 100%;
  margin-top: auto;
}
*/
.app-footer {
  background-color: #343a40;
  color: #ffffff;
  padding: 16px 0;
  font-size: 0.85rem;
}

.app-footer a {
  color: #ffffff;
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}
