/* Reset și bază */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f0f0f0;
  color: #222;

  /* Centrare perfectă pe verticală și orizontală */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Previne micile deplasări datorate scroll-ului */
  overflow: auto;
}

/* Container comun (centrare și dimensiuni consistente) */
.container {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  text-align: center;

  /* Lățime fluidă, dar limitată pentru citire */
  width: 100%;
  max-width: 420px;

  /* Elimină orice deplasare verticală accidentală */
  margin: 0;
}

h2 {
  margin: 0 0 20px 0;
}

/* Elemente de formular și butoane */
input, button {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

button {
  background: #0069ff;
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #004ecc;
}

/* Linkuri */
a {
  color: #0069ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Tabele (folosite în admin_stats) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #0069ff;
  color: #fff;
}

/* Alternare rânduri */
tr:nth-child(even) {
  background-color: #f9f9f9;
}
tr:nth-child(odd) {
  background-color: #eaeaea;
}

/* Butoane acțiuni (admin_stats) */
.delete-btn,
.clear-btn {
  background-color: #d9534f;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.delete-btn:hover,
.clear-btn:hover {
  background-color: #c9302c;
}

/* Container extins pentru pagini cu tabel mare (admin_stats) */
.container.wide {
  max-width: 1000px;  /* lățime mai mare pentru tabel */
  padding: 40px;      /* un pic mai aerisit */
}