@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Great+Vibes&display=swap');

/* === HEADER === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f6efe7;
  color: white;
  padding: 10px 20px;
  position: relative;
  flex-wrap: wrap;
  z-index: 10;
}


.logo img {
  width: 100px;
  height: auto;
}

/* Navigation (Desktop) */
nav {
  display: flex;
  gap: 1.2rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.nav-link:hover {
  background-color: #fff;
  color:#04b3d5;
  font-weight: bold;
}

/* Κεντρική navbar */
.center-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
/* Εικονίδια */
.house-icon i,
.settings-icon i,
.employees-icon i,
.schedule-icon i,
.posts-icon i,
.report-icon i {
  font-size: 1.2rem;
  color: #638ea9;
  transition: transform 0.3s, color 0.3s;
}

.house-icon:hover i,
.settings-icon:hover i,
.employees-icon:hover i,
.schedule-icon:hover i,
.posts-icon:hover i,
.report-icon:hover i {
  transform: scale(1.1);
  color: #04b3d5;
}

/* Έξοδος */
.logout-link {
  color: #638ea9;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.logout-link:hover {
  background-color: white;
  color: #04b3d5;
  font-weight: bold;
}

/* Header right section */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Hamburger */
.navbar-toggler {
  background: none;
  border: none;
  outline: none;
  padding: 0.5rem;
  cursor: pointer;
  display: none;
  margin-left: auto;
}

.navbar-toggler:hover {
  transform: scale(1.08);
}

.avail-umbrella
{
    color: #c3c3c3;
    font-style: italic;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #f6efe7;
  width: 100%;
  border-top: 1px;
  padding: 15px 0;
  border-radius: 0 0 10px 10px;
}

.mobile-menu a {
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.mobile-menu a:hover {
  background-color: white;
  color: #04b3d5;
  font-weight: bold;
}
.logout-always-visible {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Responsive rules */
@media screen and (max-width: 970px) {
  nav, .header-right {
    display: none;
  }

  .navbar-toggler {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }
    .logout-always-visible {
    display: block;
    margin-left: auto;
  }
}


/* css για login page */
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.login-page {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(to bottom right, #e7f6f9, #fffdf6);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* Container */
.login-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem;
}

/* Heading */
.login-container h2 {
  color: #2a2a2a;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  text-align: center;
}

/* PHP Error Display */
.login-container p {
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Form group */
.form-group-login {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

.form-group-login label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #444;
  font-size: 0.9rem;
}

.form-group-login input {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-group-login input:focus {
  border-color: #04b3d5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  outline: none;
}

/* Error message (JS role error) */
.input-error {
  margin-top: 6px;
  color: #d9534f;
  font-size: 0.88rem;
  background-color: #fdf0f0;
  padding: 6px 10px;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Submit button */
.login-btn {
  background-color: #04b3d5;
  color: #fff;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.login-btn:hover {
  background-color: #039ab8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.login-btn:active {
  background-color: #0288a0;
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}


/* Responsive */
@media (max-width: 992px) {
  main {
    padding: 5rem 2rem;
  }
  .login-container {
    padding: 2rem 1.5rem;
    max-width: 380px;
  }
}

/* Μικρά tablets & μεγάλα κινητά (<= 768px) */
@media (max-width: 768px) {
  main {
    padding: 3rem 1.5rem;
  }
  .login-container {
    max-width: 340px;
    padding: 1.8rem 1.2rem;
  }
  .login-container h2 {
    font-size: 1.3rem;
  }
  .form-group-login input {
    font-size: 0.95rem;
  }
  .login-btn {
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
  }
}

/* Κινητά (<= 480px) */
@media (max-width: 480px) {
  main {
    padding: 2rem 1rem;
  }
  .login-container {
    max-width: 95%;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    box-shadow: none;
    border: none;
  }
  .login-container h2 {
    font-size: 1.2rem;
  }
  .form-group-login label {
    font-size: 0.85rem;
  }
  .form-group-login input {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
  .login-btn {
    font-size: 0.9rem;
    padding:0.7rem 0.2rem;
    border-radius: 6px;
  }
}

/* footer */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* Footer styling */
footer {
  background-color: #f6efe7; /* απαλή απόχρωση άμμου */
  padding: 20px 10px;
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid #e2d5c3;
}

.footer-text {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
  color: #d49e6a; /* sand-gold - συνδυάζεται άψογα με το τυρκουάζ */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

/*users.php */
.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 #04b3d5;
    border-radius: 6px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.input:focus {
    border-color: #07c8ed;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.btn-dark {
    background: #04b3d5;
    color: #fff;
    border: 1px solid #04b3d5;
}

.btn-dark:hover {
    background: #07c8ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-light {
    background: #fff;
    color: #04b3d5;
    border: 1px solid #04b3d5;
}

.btn-light:hover {
    background: #e6f7fb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-edit {
    background: #04b3d5;
    color: #fff;
    margin-right: 5px;
    border: 1px solid #04b3d5;
}

.btn-edit:hover {
    background: #07c8ed;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-delete {
    background: #ff6363;
    color: #fff;
    text-decoration: none;
    border: 1px solid #ff6363;
}

.btn-delete:hover {
    background: #f58282;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


.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: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
         background: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.modal.show {
  display: flex;               /* εμφανίζεται όταν έχει κλάση show */
}
.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; color: bisque; 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:88%;
  }

  .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;
  }
}

/* dashboard */
.wrapper-calendar {
    flex: 1;
    padding: 16px;
        align-items: center;
}

/* Επικεφαλίδα Ημερολογίου */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-calendar {padding: 8px 14px; border-radius: 10px; border: 1px solid #000; background: #fff; color: #000; font-weight: 500; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,0.15); transition: all .3s ease;}
.btn-calendar:hover {  background: #d49e6a; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }


/* Table, modal */
/* Βασικός πίνακας */
/* ================== Wrapper ================== */
.wrapper-calendar {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* ================== Header ================== */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #222;
    text-align: center;
    flex: 1;
}

/* Buttons για ημερολόγιο */

.btn-calendar {
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(145deg,#f7f7f7,#e1e1e1);
    color: #333;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-calendar:hover {
    background: linear-gradient(145deg,#ffb75e,#ff8c42);
    color: white;
    transform: translateY(-2px);
    box-shadow: 3px 5px 15px rgba(0,0,0,0.2);
}
/* ================== Table ================== */
.calendar-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.calendar-table th, .calendar-table td {
    padding: 12px 10px;
    text-align: center;
}

.calendar-table th {
    background-color: #4a90e2;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-table tbody tr {
    background-color: #fff;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.calendar-table tbody tr:hover {
    background-color: #f4f9ff;
}

/* Sticky Header */
thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}

/* Sticky Footer */
tfoot td {
  position: sticky;
  bottom: 0;
  background: white;
  z-index: 2;
}

/* Zebra stripes */
.calendar-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

/* Checkbox */
input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    appearance: none;
}

input[type="checkbox"]:hover {
    transform: scale(1.25);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

input[type="checkbox"]:checked {
    background-color: #04b3d5;
    border-color: #04b3d5;
}

input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff; /* άσπρο το τσεκ */
    font-size: 12px; /* μικρότερο ✔ */
}




/* ================== Merge Buttons ================== */
.merge-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #04b3d5;
  background: #04b3d5;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: all .3s ease;
}

.merge-btn:hover {
  background: #028aa3; /* πιο σκούρα απόχρωση για hover */
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Edit/Delete minimal buttons */
.edit-merge-btn, .delete-merge-btn {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.edit-merge-btn {
    background-color: #f0f4f8;
    color: #0077cc;
    border: 1px solid #0077cc;
}

.edit-merge-btn:hover {
    background-color: #e0f0ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.delete-merge-btn {
    background-color: #fef3f3;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

.delete-merge-btn:hover {
    background-color: #f9e6e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* Merge message */
.merge-msg {
    display: inline-block;
    font-size: 0.85rem;
    color: #555;
    margin-right: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
}



/* ================== Modal ================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-50px);
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

#closeMerge,
#saveMerge {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

#closeMerge {
    background-color: #d32f2f;
    color: #fff;
    margin-left: 8px;
}

#closeMerge:hover {
    background-color: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#saveMerge {
    background-color: #4caf50;
    color: #fff;
}

#saveMerge:hover {
    background-color: #43a047;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#mergeSelect {
    width: 80%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccd6e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#mergeSelect:focus {
    border-color: #04b3d5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    outline: none;
}


/* ================== Responsive ================== */
@media (max-width: 768px) {
    .calendar-table table, .calendar-table thead, .calendar-table tbody,
    .calendar-table th, .calendar-table td, .calendar-table tr {
        display: block;
    }

    .calendar-table tr {
        margin-bottom: 15px;
        border-radius: 12px;
        background-color: #fff;
        box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    }

    .calendar-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .calendar-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 12px;
        font-weight: 600;
        color: #333;
        text-align: left;
    }

    .calendar-table th {
        display: none;
    }

    .calendar-header h2 {
        font-size: 1.2rem;
    }

    .btn-calendar {
        padding: 8px 14px;
    }
}





