/* 1) Reset βασικών padding/margin */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2) Σώμα σε Flexbox για 100% ύψος και κεντράρισμα του .container */
html, body {
  height: 100%;
  font-family: "Arial", sans-serif;
  background: #f1f1f1;
}

body {
  display: flex;
  align-items: center;     /* Κέντρο κατακόρυφα */
  justify-content: center; /* Κέντρο οριζόντια */
}

/* 3) Λευκό πλαίσιο (container) - κεντρώνεται και έχει αρκετό ύψος, ίδια περιθώρια πάνω-κάτω */
.container {
  width: 80%;
  max-width: 900px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);

  /* Εδώ ορίζουμε ελάχιστο ύψος ώστε να “ανοίγει” περίπου στα 80% του παραθύρου */
  min-height: 80vh;

  /* Εσωτερικό flexbox για να κεντράρει το περιεχόμενο */
  display: flex;
  flex-direction: column;
  align-items: center;     /* Οριζόντια κέντρο */
  justify-content: center; /* Κάθετα κέντρο */

  padding: 20px;
}

/* 4) Πίνακας */
table {
  border-collapse: separate;
  border-spacing: 0;
  background-color: #fff;
  width: 80%;
  max-width: 700px;
}

/* Επικεφαλίδα πίνακα */
table thead {
  background: #333;
  color: #fff;
}

/* Μηδενίζουμε τυχόν default hover της επικεφαλίδας (αν υπήρχε σε κάποιους browsers) */
table thead tr:hover,
table thead th:hover {
  background-color: #333 !important;
}

table th {
  padding: 12px;
  text-align: left;
}

/* Κελιά σώματος πίνακα */
table td {
  padding: 12px;
  border-top: 1px solid #e0e0e0;
}

/* 5) Hover μόνο στο σώμα του πίνακα -> "σκιά" και ελαφρά μετατόπιση */
table tbody tr {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
table tbody tr:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  z-index: 2;
}

/* Εικονίδια ενέργειας (edit/delete) */
.row-actions {
  display: inline-flex;
  gap: 8px;
}
.icon {
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.icon:hover {
  opacity: 1;
}
.icon-pencil::before {
  content: "✏️";
}
.icon-trash::before {
  content: "🗑️";
}

/* 6) Κουμπιά βασικά */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  background: #007BFF;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-size: 0.9rem;
  margin: 8px;
}
.btn:hover {
  background: #0069d9;
  transform: scale(1.02);
}

/* 7) Στρογγυλό κουμπί κάτω δεξιά για Login (μπλε, με εικονίδιο) */
.login-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #007BFF;
  color: #fff;
  font-size: 1.4rem;
  text-align: center;
  line-height: 56px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s;
  text-decoration: none;
}
.login-btn:hover {
  transform: scale(1.05);
}

/* 8) Κουμπί Προσθήκης (+) κάτω από τον πίνακα, στρογγυλό */
.plus-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #007BFF;
  color: #fff;
  font-size: 1.4rem;
  line-height: 40px; 
  text-align: center;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s;
}
.plus-btn:hover {
  transform: scale(1.1);
}

/* 9) Φόρμες */
form {
  width: 80%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px; /* Λίγο κενό κάτω */
}

form label {
  font-weight: 600;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form input[type="email"],
form select,
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

form input[type="submit"] {
  align-self: center;
  background: #007BFF;
  color: #fff;
  border-radius: 20px;
  padding: 0 24px;
  border: none;
  cursor: pointer;
  height: 40px;
  transition: background 0.3s, transform 0.2s;
}

form input[type="submit"]:hover {
  background: #0069d9;
  transform: scale(1.02);
}

/* Προαιρετικά link στυλ */
a {
  color: #007BFF;
  text-decoration: none;
}
a:hover {
  color: #0069d9;
  text-decoration: underline;
}
