
:root {
  --black: #000;
  --white: #fff;
  --gray: #f0f0f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--white);
  color: var(--black);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: var(--black);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.2rem;
  font-weight: bold;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem;
  transition: background 0.3s;
}

.nav-link:hover {
  background-color: var(--white);
  color: var(--black);
  border-radius: 5px;
}


.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-right button,
.header-right .settings-icon {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.2rem;
}

.header-right button:hover {
  text-decoration: underline;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-container {
  background-color: var(--gray);
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--black);
}

.login-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--black);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.login-btn:hover {
  background-color: #333;
}

@media (max-width: 610px) {
  nav {
    flex-direction: column;
    gap: 0.5rem;
    
  }

  .header-right {
    margin-top: 1rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* login */

.login-page nav,
.login-page .header-right,
.login-page .navbar-toggler,
.login-page .mobile-menu {
  display: none !important;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2); /* ελαφρύ μαύρο glow */
}
select {
  border: 1px solid #000 !important;       /* Μαύρο περίγραμμα */
  background-color: #fff !important;       /* Λευκό background */
  color: #000 !important;                  /* Μαύρο κείμενο */
  outline: none !important;                /* Αφαίρεση μπλε outline */
  box-shadow: none !important;             /* Αφαίρεση shadow */
}

select:focus {
  border-color: #000 !important;           /* Μαύρο περίγραμμα στο focus */
  box-shadow: none !important;             /* Χωρίς shadow στο focus */
  outline: none !important;                 /* Χωρίς outline */
}
select::-ms-expand {
  display: none;  /* Για Internet Explorer και Edge */
}

.container {max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    
}
.page-title { text-align: center; margin-bottom: 20px;  padding-top: 20px;}

.input { padding: 10px; border: 1px solid #000; border-radius: 4px; }
.btn { padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; display: inline-block;}

.btn-dark { background: #000; color: #fff; }
.btn-light { background: #fff; color: #000; border: 1px solid #000; }
.btn-edit { background: #555; color: #fff; margin-right: 5px; }
.btn-edit:hover {background: grey; color: #fff;}
.btn-delete { background: #f00; color: #fff; text-decoration: none;}
.btn-delete:hover {background: #f58282; color: #fff;}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  margin-bottom: 500px;
}

.table th, .table td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: center;
  white-space: nowrap;
}

.table td:last-child {
  border-bottom: none; /* Δεν βάζουμε γραμμή κάτω από τα buttons */
}

/* Απόκρυψη του default checkbox */
.availability-checkbox {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 2px solid #000;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-right: 8px;
  vertical-align: middle;
}

/* Όταν είναι checked */
.availability-checkbox:checked {
    background-color: #000;
}

/* Δημιουργία του ✔ μέσα */
.availability-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* modal */
.modal { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
         background: rgba(0,0,0,0.6); justify-content: center; align-items: center; }

.modal-content { background: #fff; padding: 20px; border-radius: 5px; width: 300px; }

.modal-actions { display: flex; justify-content: space-between; margin-top: 10px; }

.modal-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px; /* χώρος κάτω από κάθε πεδίο */
}

.modal-group label {
  margin-bottom: 5px; /* χώρος ανάμεσα στο label και το input */
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.modal-group .input,
.modal-group select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}




.mb-20 { margin-bottom: 20px; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding-top: 10px;}

.btn-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
/* modal */

/* ##Device = Desktops - 1281px και πάνω */
@media (min-width: 1280px) {
  .table {
    font-size: 14px;
    min-width: 1000px;
  }
  .table th, .table td {
    padding: 12px;
  }
}

/* Για όλα τα πλάτη κάτω από 1200px */
@media (max-width: 1200px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 900px; /* κρατάει τον πίνακα ευανάγνωστο */
    font-size: 14px;
  }

  .table th, .table td {
    padding: 8px;
    white-space: nowrap; /* δεν σπάει οι λέξεις */
  }

  .btn {
    padding: 6px 8px;
    font-size: 12px;
  }
}

@media (max-width: 1060px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 950px; /* Κρατάει τις στήλες αναγνώσιμες */
    font-size: 12px;
  }

  .table th, .table td {
    padding: 6px 8px;
    white-space: nowrap; /* Δεν σπάει το κείμενο */
  }

  .btn {
    padding: 5px 7px;
    font-size: 11px;
  }
}
@media (max-width: 1000px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 850px; /* Ελάχιστο πλάτος πίνακα για να μην “στριμώχνεται” */
    font-size: 12px;
  }

  .table th, .table td {
    padding: 6px 8px;
    white-space: nowrap; /* Αποτρέπει το σπάσιμο λέξεων */
  }

  .btn {
    padding: 5px 7px;
    font-size: 11px;
  }
}

@media (max-width: 950px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 800px; /* Ελάχιστο πλάτος πίνακα για να μην “στριμώχνεται” */
    font-size: 14px;
  }

  .table th, .table td {
    padding: 6px 8px;
    white-space: nowrap; /* Αποτρέπει το σπάσιμο λέξεων */
  }

  .btn {
    padding: 5px 7px;
    font-size: 14px;
  }
}
@media (max-width: 850px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 700px; /* Ελάχιστο πλάτος πίνακα για να μην “στριμώχνεται” */
    font-size: 12px;
  }

  .table th, .table td {
    padding: 6px 8px;
    white-space: nowrap; /* Αποτρέπει το σπάσιμο λέξεων */
  }

  .btn {
    padding: 5px 7px;
    font-size: 12px;
  }
}



/*Μικρές οθόνες: αναδίπλωση σε "cards" */
@media (max-width: 950px) {
  .table-responsive {
    overflow-x: hidden;
  }

  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr.record {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background-color: #fff;
    text-align:left;
  }

  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
  }

  .table td:last-child {
    border-bottom: none;
  }

  .table td::before {
    content: attr(data-label);
    font-weight: bold;
    flex: 1;
    color: #333;
    text-align: left;
    padding-right: 10px;
  }

  .table td {
    flex: 2;
    text-align: right;
  }
  

}
@media (max-width: 860px) {
  .table {
    min-width: 600px;
    font-size: 13px;
  }

  .btn {
    padding: 5px 6px;
    font-size: 12px;
  }

  .table td {
    font-size: 14px;
    padding: 7px 9px;
  }
}
@media (max-width: 650px) {
  .table {
    min-width: 550px;
    font-size: 12px;
  }

  .btn {
    padding: 4px 6px;
    font-size: 11px;
  }

  .table td {
    font-size: 13px;
    padding: 6px 8px;
  }
}
@media (max-width: 600px) {
  .table {
    min-width: 500px;
    font-size: 12px;
  }

  .btn {
    padding: 4px 6px;
    font-size: 10px;
  }

  .table td {
    font-size: 13px;
    padding: 6px 7px;
  }
  .form-inline .input,
  .form-inline .btn {
    width: 90%;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }
}
@media (max-width: 450px) {
  .table {
    min-width: 400px;
    font-size: 11px;
  }

  .btn {
    padding: 3px 5px;
    font-size: 10px;
  }

  .table td {
    font-size: 12px;
    padding: 5px 6px;
  }

  .table tr.record {
    padding: 8px;
    max-width:93%;
  }

  .table td::before {
    font-size: 12px;
  }
    .form-inline .input,
  .form-inline .btn {
    width: 90%;
    font-size: 14px;
    margin-bottom: 10px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .modal-group label {
    font-size: 13px;
  }

  .modal-group .input {
    font-size: 14px;
  }

  .modal-actions .btn {
    font-size: 14px;
    width: 100%;
    margin-top: 8px;
  }
}
@media (max-width: 390px) {
  .table {
    min-width: 320px;
    font-size: 10px;
  }

  .btn {
    padding: 3px 4px;
    font-size: 9px;
  }

  .table tr.record {
    padding: 6px;
    margin-bottom: 12px;
    max-width:90%;
  }

  .table td {
    font-size: 11px;
    padding: 4px 6px;
  }

  .table td::before {
    font-size: 11px;
  }
}
@media (max-width: 250px) {
  .table {
    min-width: 280px;
    font-size: 9px;
  }

  .btn {
    padding: 2px 4px;
    font-size: 8px;
  }

  .table tr.record {
    padding: 4px;
    margin-bottom: 10px;
    max-width:95%;
  }

  .table td {
    font-size: 10px;
    padding: 3px 5px;
  }

  .table td::before {
    font-size: 10px;
  }
}




/* Appointments Management Page */

.appointments-page {
  background-color: #fdfaf6; /* Μπεζ φόντο */
  color: #111; /* Σκούρο γκρι/μαύρο κείμενο */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Appointment Form Styling */
.appointment-form {
  max-width: 700px;         /* Περιορισμός πλάτους */
  margin: 0 auto 2rem auto; /* Κέντρο σελίδας */
  padding: 20px 30px;       /* Εσωτερικό padding */
  background-color: #fdfaf6;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #ddd;
}

/* Μικρότερο ύψος των input πεδίων */
.appointment-form .form-control {
  padding: 8px 12px;
  font-size: 0.95rem;
}

/* Κρύβει το default radio */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    margin-right: 6px;
    vertical-align: middle;
}

/* Σχήμα όταν επιλεγμένο */
input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Label styling για inline διάταξη */
.radio-label {
    display: inline-flex; /* βάζει όλα τα labels στην ίδια γραμμή */
    align-items: center;
    font-weight: 500;
    margin-right: 20px; /* απόσταση μεταξύ των radios */
    cursor: pointer;
}

/* Προαιρετικά hover effect */
input[type="radio"]:hover {
    border-color: #333;
}


/* Πιο “compact” drop-down και checkboxes */
.appointment-form select,
.appointment-form input[type="date"],
.appointment-form input[type="time"],
.appointment-form input[type="text"] {
  height: auto;
  min-height: 36px;
}

/* Στοίχιση ημερών (checkboxes) */

.days-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Δύο στήλες */
  gap: 10px 20px;
  align-items: center;
  
}

.days-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

input[type="checkbox"].form-check-input {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 2px solid #000;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-right: 8px;
  vertical-align: middle;
}



/* Όταν είναι τσεκαρισμένο */
input[type="checkbox"].form-check-input:checked {
  background-color: #000;
}

/* check  */
input[type="checkbox"].form-check-input:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn-primary {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  width: max-content;             /* δεν παίρνει όλο το διαθέσιμο πλάτος */
  min-width: 100px;        /* ορίζει ένα μικρό default πλάτος */
  text-align: center;
  display: inline-block;   /* διατηρεί το κουμπί σε φυσικό μέγεθος */
}

.btn-primary:hover {
  background-color: #333;
}

/* Responsive περιορισμός */
@media (max-width: 768px) {
  .appointment-form {
    padding: 15px 20px;
    max-width: 100%;
  }

  .days-grid {
    grid-template-columns: 1fr; /* Μία στήλη σε κινητά */
  }



/* Badge εμφάνιση για την κατάσταση */
.appointments-page .badge {
  padding: 5px 10px;
  font-size: 0.85rem;
  border-radius: 5px;
}

.appointments-page .badge.bg-success {
  background-color: #4caf50;
  color: #fff;
}

.appointments-page .badge.bg-secondary {
  background-color: #999;
  color: #fff;
}

}

.disabled-link {
  color: #aaa !important;
  pointer-events: none;
  cursor: not-allowed;
  text-decoration: none;
}




/* footer */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

footer {
  background-color: #000;
  padding: 15px;
  text-align: center;
  margin-top: auto;
}

.footer-text {
  font-family: 'Great Vibes', cursive;
  font-size: 32px;
  color: #fff;
  text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ccc;
}

