/* Reset de bază */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Navigație */
/* Navbar modern */
.navbar {
  background-color: #2c3e50;
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand a {
  color: #ecf0f1;
  font-weight: bold;
  font-size: 1.2em;
  text-decoration: none;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 15px;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  display: block;
}

.navbar-menu a:hover {
  background-color: #34495e;
  border-radius: 5px;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #34495e;
  border-radius: 5px;
  min-width: 180px;
  z-index: 1000;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  padding: 10px;
  color: #ecf0f1;
}

.dropdown-menu a:hover {
  background-color: #3d566e;
}
/*
nav {
  background-color: #2c3e50;
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

nav a {
  color: #ecf0f1;
  text-decoration: none;
  margin-right: 15px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}
*/
/* Titluri */
h1, h2 {
  margin-bottom: 15px;
  color: #34495e;
}

/* Tabele */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

table th, table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

table th {
  background-color: #3498db;
  color: white;
}

table tr:hover {
  background-color: #f1f1f1;
}

/* Formulare */
form {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

form input, form select, form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background-color: #2ecc71;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

form button:hover {
  background-color: #27ae60;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  color: #777;
  font-size: 0.9em;
}

/* Grafic Chart.js */
canvas {
  margin-top: 20px;
  max-width: 100%;
}

/* Responsivitate */
@media (max-width: 600px) {
  nav a {
    display: block;
    margin: 10px 0;
  }

  form, table {
    width: 100%;
  }
}
.permisiuni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.permisiune-card {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.permisiune-card:hover {
  transform: scale(1.02);
}

.permisiune-card h3 {
  margin-top: 0;
  color: #2c3e50;
}

.btn-delete {
  display: inline-block;
  margin-top: 10px;
  background-color: #e74c3c;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
}

.btn-delete:hover {
  background-color: #c0392b;
}

.btn-add {
  display: inline-block;
  background-color: #27ae60;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
}

.btn-add:hover {
  background-color: #219150;
}
