
/* === Base === */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f4f9;
  color: #333;
}

/* === Top Bar === */
.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #222;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* === Login Box === */
.login-box {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 10px;
  padding: 5px 10px;
  text-decoration: none;
  color: inherit;
}
.login-box:hover {
  background: #eee;
}

/* === Avatar === */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* === User Info === */
.user-info {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

/* === Login Button === */
.login-btn {
  text-decoration: none;
  padding: 8px 12px;
  color: #fff;
  background-color: #007bff;
  border-radius: 10px;
  transition: background 0.3s ease;
}
.login-btn:hover {
  background-color: #0056b3;
}

/* === Logout Button === */
.logout-form {
  margin-left: 10px;
}
.logout-btn {
  padding: 6px 10px;
  border: none;
  background: #e53935;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
.logout-btn:hover {
  background-color: #c82333;
}

/* === Main Content === */
.main-content {
  padding: 50px;
  text-align: center;
}

/* === Menu === */
.menu {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.menu-link {
  color: white;
  margin-right: 20px;
  text-decoration: none;
  font-weight: bold;
}
.menu-link:hover {
  text-decoration: underline;
}

/* === Dashboard Layout === */
.dashboard-container {
  display: flex;
  height: 100vh;
}
.sidebar {
  width: 250px;
  background: #333;
  color: white;
  padding: 20px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar ul li {
  margin: 15px 0;
}
.sidebar ul li a {
  color: white;
  text-decoration: none;
}
.dashboard-content {
  flex-grow: 1;
  padding: 30px;
}
.logo {
  height: 50px;
  margin: 10px;
  cursor: pointer;
}
.titolo-sezione {
  text-align: center;
  margin-bottom: 30px;
}

.tabella-ruoli {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.tabella-ruoli th, .tabella-ruoli td {
  border-bottom: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.campo-input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.colonne-azioni {
  white-space: nowrap;
  display: flex;
  gap: 8px;
}

.btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-update {
  background-color: #4caf50;
  color: white;
}

.btn-delete {
  background-color: #f44336;
  color: white;
}

.btn-add {
  background-color: #2196f3;
  color: white;
  margin-top: 10px;
}

.box-aggiunta {
  max-width: 500px;
  margin: auto;
}
.user-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.user-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-right: 20px;
}

.user-name {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}
