/* Global styling */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;600&display=swap');

:root {
  --header-font: 'Playfair Display', serif;
  --paragraph-font: 'Poppins', sans-serif;
  --main-color: #800020;
  --secondary-color: #ffd700;
  --accent-color: rgba(255, 255, 255, 0.2);
  --background-color: #1c1c1c;
  --border-color: #ffd700;
  --error-color: #f44336;
  --button-text-color: black;
  --button-hover-text: var(--main-color);
  --white: white;
  --black: black;
  --button-glow: rgba(255, 215, 0, 0.8);
  --button-hover-glow: rgba(255, 215, 0, 1);
  --main-glow-color: rgba(255, 215, 0, 0.5);
  --secondary-glow-color: rgba(128, 0, 32, 1);

  /* FULL CALENDAR VARIABLES */
  --fc-event-bg-color: var(--secondary-color);
  --fc-event-border-color: var(--secondary-color);
  --fc-neutral-bg-color: var(--main-color);
  --fc-list-event-hover-bg-color: grey;
  --fc-page-bg-color: var(--main-color);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--paragraph-font);
  overflow-x: hidden;
  background-color: var(--background-color);
  color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--header-font);
}

img {
  pointer-events: none;
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../Assets/Images/Films/hero-bg.jpg') center/cover no-repeat;
  background-position: 25% 75%;
  text-align: center;
  padding: 100px 20px;
  color: var(--secondary-color);
  font-family: var(--header-font);
  font-size: 2.5rem;
  box-shadow: 0 0 20px var(--main-glow-color);
  zoom: 130%;
}

/* ========== MAIN SECTION ========== */
main {
  padding: 0;
}

main:has(.main-home) {
  /* only home.php file should have a padding inside the main element */
  padding: 40px 20px;
}

main section {
  margin: 60px 0 60px 0;
}

main h3 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary-color);
  padding-left: 10px;
}

/* ========== FILM GRID ========== */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
}

/* ========== INDIVIDUAL FILM CARD ========== */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.film-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  text-align: center;
}

.film-card:hover {
  transform: scale(1.03);
  cursor: pointer;
}

.film-card img {
  width: 100%;
  height: 350px; /* auto works too, but fixed value looks cleaner */
  display: block;
  background-color: white;
}

.film-info {
  padding: 15px;
  font-size: 0.95rem;
  color: #eee;
}

.film-info h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--highlight-color, #ffd700);
}

.film-card-link {
  text-decoration: none !important;
}

/* ====================== MANAGE FILM DETAIL ====================== */
.film-detail {
  background: linear-gradient(145deg, #2a0a12, #400b1a);
  border-radius: 0;
  box-shadow: 0 0 25px var(--main-glow-color);
  width: 100%;
  min-height: 100vh;
  padding: 40px 60px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.film-detail header {
  grid-column: 1 / -1;
  text-align: center;
}

.film-detail header h1 {
  font-family: var(--header-font);
  font-size: 2.8rem;
  color: var(--secondary-color);
  text-shadow: var(--shadow-glow);
  margin-bottom: 0.5em;
}

.film-detail img {
  width: 400px;
  height: 580px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.film-info {
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  color: #eee;
}

.film-info p {
  background: rgba(255, 215, 0, 0.1);
  padding: 12px 18px;
  border-left: 6px solid var(--secondary-color);
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.15);
  font-weight: 600;
  text-align: justify;
}

.film-detail > div {
  grid-column: 1 / -1;
  margin-top: 30px;
  text-align: center;
}

.film-detail > div a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .film-detail {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .film-detail img {
    width: 280px;
    height: 400px;
    margin: 0 auto;
  }

  .film-info {
    margin-top: 30px;
    align-items: center;
    text-align: center;
  }

  .film-info p {
    max-width: 350px;
    margin: 0 auto;
  }
}

/* ====================== MANAGE FILM PANEL ====================== */
#film-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--paragraph-font);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#film-table thead {
  background-color: var(--main-color);
  color: var(--white);
}

#film-table th,
#film-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

#film-table tbody tr:nth-child(even) {
  background-color: var(--light-gray);
}

#film-table input[type='text'],
#film-table input[type='date'],
#film-table input[type='datetime-local'],
#film-table input[type='time'],
#film-table input[type='number'] {
  padding: 0.4rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

#film-table input[type='checkbox'] {
  transform: scale(1.2);
  cursor: pointer;
}

#film-table .btn-save,
#film-table .btn-delete,
#film-table .btn-edit {
  padding: 0.4rem 0.8rem;
  margin: 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#film-table .btn-save,
#film-table .btn-edit {
  background-color: var(--main-color);
  color: var(--white);
}

#film-table .btn-save:hover,
#film-table .btn-edit:hover {
  background-color: var(--secondary-color);
  color: var(--main-color);
  box-shadow: 0 0 5px var(--main-glow-color);
}

#film-table .btn-delete {
  background-color: #e74c3c;
  color: var(--white);
}

#film-table .btn-delete:hover {
  background-color: #c0392b;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

#film-table tbody tr td img {
  height: 50px;
  width: 50px;
}

.film-table-container {
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: auto;
}

.film-table-container h1 {
  margin-top: 30px;
  text-align: center;
}

/* ====================== ADD FILM FORM ====================== */
#film-form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--secondary-color);
  border-radius: 1rem;
  box-shadow: 0 0 12px var(--main-glow-color);
  font-family: var(--paragraph-font);
  color: var(--main-color);
}

#film-form-container h2 {
  margin-bottom: 0.75em;
}

.film-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--main-color);
}

.film-form select,
.film-form input[type='text'],
.film-form input[type='number'],
.film-form input[type='url'],
.film-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--white);
  color: var(--black);
  font-family: var(--paragraph-font);
  transition: border 0.2s ease;
}

.film-form select:focus,
.film-form input:focus,
.film-form textarea:focus {
  border-color: var(--main-color);
  outline: none;
  box-shadow: 0 0 5px var(--main-glow-color);
}

.film-form input[type='submit'] {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--main-color);
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 20px;
  background: var(--main-color);
  color: var(--white);
  font-size: 0.9rem;
}

/* ====================== NAVIGATION PAGE ====================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 10vh;
  background-color: var(--main-color);
  padding: 0 20px;
}

/* Special classes used for repositioning the navbar when the user is logged in or not */
.nav-logged-out {
  justify-content: center;
}

.nav-logged-in {
  justify-content: space-between;
}

/* Logout Form */
#form-logout {
  display: flex;
  align-items: center;
}

#form-logout p {
  margin-left: 15px;
  color: var(--white);
  font-size: 1rem;
}

.username {
  color: var(--secondary-color);
  font-weight: bold;
}

#form-logout input[type='submit'] {
  margin-left: 20px;
  padding: 8px 15px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

#form-logout input[type='submit']:hover {
  background-color: var(--secondary-color);
  color: var(--black);
  box-shadow: 0px 0px 10px var(--secondary-color);
}

/* Navigation Menu */
nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  /* gap: 20px; */
}

nav ul li {
  /* display: inline-block; */
  position: relative;
  margin-right: 15px;
}

nav ul li a {
  display: block;
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

nav ul li a:hover {
  background: var(--accent-color);
}

nav ul li a.active {
  background: var(--secondary-color);
  color: var(--main-color);
  border-radius: 5px;
}

nav ul li ul.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--secondary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  padding: 0;
  z-index: 999;
  border-radius: 5px;
}

.dropdown-menu a {
  color: var(--main-color);
}

nav ul li:hover ul.dropdown-menu {
  display: block;
}

nav ul li ul.dropdown-menu li a {
  padding: 8px 12px;
  white-space: nowrap;
}

/* ====================== LOGIN FORM ====================== */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-container img {
  max-width: 100%;
  height: auto;
}

.logo-container a {
  display: inline-block;
}

.logo-container a:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.form-login {
  max-width: 400px;
  background: var(--secondary-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin: 0;
}

.form-login label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: var(--main-color);
}

.form-login input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.3s;
}

.form-login input:focus {
  border-color: var(--main-color);
  outline: none;
}

.form-login .btn {
  margin-top: 15px;
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--main-color);
  user-select: none;
}

/* Global button styling */
.btn {
  transition: all 0.3s ease-in-out !important;
  box-shadow: 0px 0px 10px var(--main-glow-color) !important;
  padding: 10px 20px !important;
  font-size: 1rem !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  background-color: var(--main-color) !important;
  color: var(--secondary-color) !important;
  border: none !important;
}

.btn:hover {
  /*   background-color: var(--secondary-color) !important;
  color: var(--main-color) !important; */
  box-shadow: 0px 0px 20px var(--main-glow-color) !important;
}

.logout {
  background-color: var(--secondary-color) !important;
  color: var(--main-color) !important;
  box-shadow: 0px 0px 20px var(--secondary-glow-color) !important;
}

/* ====================== ERROR DIALOG ====================== */
#error-dialog,
.custom-dialog {
  position: fixed;
  margin: auto;
  width: 500px;
  padding: 20px;
  background-color: var(--error-color);
  color: var(--white);
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dialog-buttons-container {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}

#error-label {
  margin: 0;
  font-size: 1.5rem;
}

#btn-close-dialog {
  margin-top: 15px;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  background-color: var(--white);
  color: var(--error-color);
  font-weight: bold;
  cursor: pointer;
  font-size: 1.5rem;
  letter-spacing: 0.2ch;
  transition: all 0.3s ease-in-out;
}

#btn-close-dialog:hover {
  opacity: 0.85;
  color: var(--white);
  box-shadow: 0px 0px 10px var(--error-color);
}

/* ====================== PAGE NOT FOUND ====================== */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80dvh;
  text-align: center;
  background-color: var(--background-color);
  padding: 20px;
}

.error-container h1 {
  font-size: 5rem;
  color: var(--secondary-color);
}

.error-container p {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
}

/* ====================== FULL CALENDAR MODAL ====================== */
.modal {
  display: none;
  position: fixed; /* fixed to viewport */
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.5);
  display: flex; /* center content */
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.modal.is-visible {
  display: flex;
}

.modal-wrapper {
  background-color: white;
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 20px 30px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.modal-close,
#btn-close-event-details {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.modal-close:hover,
#btn-close-event-details:hover {
  background: #0056b3;
}

#shiftModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#shiftModal.is-visible {
  display: flex;
}

#shiftModal .modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  position: relative;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.shift-detail {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.shift-detail-icon {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  color: #007bff;
}

.shift-detail-label {
  font-weight: 600;
  margin: 0;
  flex-shrink: 0;
  color: #333;
}

.shift-detail-value {
  color: #555;
  flex-grow: 1;
}

.manage-shift-button {
  background-color: #2a2a2a;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.manage-shift-button:hover {
  background-color: #444;
}

/* ====================== MANAGE EMPLOYEE PANEL ====================== */
#employee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--paragraph-font);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#employee-table thead {
  background-color: var(--main-color);
  color: var(--white);
}

#employee-table th,
#employee-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

#employee-table tbody tr:nth-child(even) {
  background-color: var(--light-gray);
}

#employee-table input[type='text'],
#employee-table input[type='email'],
#employee-table input[type='checkbox'] {
  padding: 0.4rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

#employee-table input[type='checkbox'] {
  width: auto;
  transform: scale(1.2);
  margin-left: 0.5rem;
}

#employee-table .btn-update,
#employee-table .btn-delete,
#employee-table .btn-edit {
  padding: 0.4rem 0.8rem;
  margin: 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#employee-table .btn-update,
.btn-edit {
  background-color: var(--main-color);
  color: var(--white);
}

#employee-table .btn-update:hover,
#employee-table .btn-edit:hover {
  background-color: var(--secondary-color);
  color: var(--main-color);
  box-shadow: 0 0 5px var(--main-glow-color);
}

#employee-table .btn-delete {
  background-color: #e74c3c;
  color: var(--white);
}

#employee-table .btn-delete:hover {
  background-color: #c0392b;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

#employee-table tbody tr td img {
  height: 50px;
  width: 50px;
}

.employee-table-container {
  padding: 0 2rem;
}

.employee-table-container h1 {
  margin-top: 30px;
  text-align: center;
}

/* ====================== FULL CALENDAR CLASSES/ID'S ====================== */
#calendar {
  margin-top: 30px;
}

.fc .fc-list-event:hover td {
  background-color: var(--secondary-color) !important;
  cursor: pointer;
}

.fc-timegrid-slot {
  height: auto !important;
}

.fc-timegrid-slot-label,
.fc-timegrid-slot-lane {
  min-height: 40px;
  height: 1fr;
}

.fc-scrollgrid-sync-table {
  table-layout: fixed;
  width: 100%;
}

/* ====================== ADD EMPLOYEE PANEL ====================== */
.add-employee-panel {
  max-width: 400px;
  margin: 6em auto;
  padding: 1.5em;
  border-radius: 1rem;
  background: var(--secondary-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  color: var(--black);
}

.add-employee-panel h2 {
  margin-bottom: 0.75em;
  color: var(--main-color);
}

.form-add-employee label {
  display: block;
  margin-bottom: 1em;
}

.form-add-employee input[type='text'],
.form-add-employee input[type='email'],
.form-add-employee input[type='password'] {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.25em;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--black);
}

/* ====================== MANAGE SHIFT PANEL ====================== */
#shift-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--paragraph-font);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#shift-table thead {
  background-color: var(--main-color);
  color: var(--white);
}

#shift-table th,
#shift-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

#shift-table tbody tr:nth-child(even) {
  background-color: var(--light-gray);
}

#shift-table input[type='text'],
#shift-table input[type='date'],
#shift-table input[type='time'],
#shift-table input[type='number'] {
  padding: 0.4rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

#shift-table .btn-update,
#shift-table .btn-delete,
#shift-table .btn-edit {
  padding: 0.4rem 0.8rem;
  margin: 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#shift-table .btn-update,
#shift-table .btn-edit {
  background-color: var(--main-color);
  color: var(--white);
}

#shift-table .btn-update:hover,
#shift-table .btn-edit:hover {
  background-color: var(--secondary-color);
  color: var(--main-color);
  box-shadow: 0 0 5px var(--main-glow-color);
}

#shift-table .btn-delete {
  background-color: #e74c3c;
  color: var(--white);
}

#shift-table .btn-delete:hover {
  background-color: #c0392b;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

#shift-table tbody tr td img {
  height: 50px;
  width: 50px;
}

.shift-table-container {
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: auto;
}

.shift-table-container h1 {
  margin-top: 30px;
  text-align: center;
}

.shift-no-responsible {
  background-color: rgba(255, 99, 71, 0.2) !important;
  border-left: 4px solid tomato;
  font-weight: bold !important;
}

/* ====================== ADD SHIFTS FORM ====================== */
#shift-form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--secondary-color);
  border-radius: 1rem;
  box-shadow: 0 0 12px var(--main-glow-color);
  font-family: var(--paragraph-font);
  color: var(--main-color);
}

#shift-form-container h2 {
  margin-bottom: 0.75em;
}

.shift-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--main-color);
}

.shift-form select,
.shift-form input[type='date'],
.shift-form input[type='time'] {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--white);
  color: var(--black);
  font-family: var(--paragraph-font);
  transition: border 0.2s ease;
}

.shift-form select:focus,
.shift-form input[type='date']:focus,
.shift-form input[type='time']:focus {
  border-color: var(--main-color);
  outline: none;
  box-shadow: 0 0 5px var(--main-glow-color);
}

.shift-form input[type='submit'] {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--main-color);
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* ====================== MANAGE REGISTRATION PANEL ====================== */
#registration-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--paragraph-font);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#registration-table thead {
  background-color: var(--main-color);
  color: var(--white);
}

#registration-table th,
#registration-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

#registration-table tbody tr:nth-child(even) {
  background-color: var(--light-gray);
}

#registration-table input[type='text'],
#registration-table input[type='date'],
#registration-table input[type='time'],
#registration-table input[type='number'] {
  padding: 0.4rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

#registration-table .btn-update,
#registration-table .btn-delete,
#registration-table .btn-edit {
  padding: 0.4rem 0.8rem;
  margin: 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#registration-table .btn-update,
#registration-table .btn-edit {
  background-color: var(--main-color);
  color: var(--white);
}

#registration-table .btn-update:hover,
#registration-table .btn-edit:hover {
  background-color: var(--secondary-color);
  color: var(--main-color);
  box-shadow: 0 0 5px var(--main-glow-color);
}

#registration-table .btn-delete {
  background-color: #e74c3c;
  color: var(--white);
}

#registration-table .btn-delete:hover {
  background-color: #c0392b;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

#registration-table tbody tr td img {
  height: 50px;
  width: 50px;
}

.registration-table-container {
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: auto;
}

.registration-table-container h1 {
  margin-top: 30px;
  text-align: center;
}

.registration-no-responsible {
  background-color: rgba(255, 99, 71, 0.2) !important;
  border-left: 4px solid tomato;
  font-weight: bold !important;
}

/* ====================== MANAGE PLAN PANEL ====================== */
#plan-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--paragraph-font);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#plan-table thead {
  background-color: var(--main-color);
  color: var(--white);
}

#plan-table th,
#plan-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

#plan-table tbody tr:nth-child(even) {
  background-color: var(--light-gray);
}

#plan-table input[type='text'],
#plan-table input[type='date'],
#plan-table input[type='time'],
#plan-table input[type='number'] {
  padding: 0.4rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

#plan-table .btn-update,
#plan-table .btn-delete,
#plan-table .btn-edit {
  padding: 0.4rem 0.8rem;
  margin: 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#plan-table .btn-update,
#plan-table .btn-edit {
  background-color: var(--main-color);
  color: var(--white);
}

#plan-table .btn-update:hover,
#plan-table .btn-edit:hover {
  background-color: var(--secondary-color);
  color: var(--main-color);
  box-shadow: 0 0 5px var(--main-glow-color);
}

#plan-table .btn-delete {
  background-color: #e74c3c;
  color: var(--white);
}

#plan-table .btn-delete:hover {
  background-color: #c0392b;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

#plan-table tbody tr td img {
  height: 50px;
  width: 50px;
}

.plan-table-container {
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: auto;
}

.plan-table-container h1 {
  margin-top: 30px;
  text-align: center;
}

.plan-no-responsible {
  background-color: rgba(255, 99, 71, 0.2) !important;
  border-left: 4px solid tomato;
  font-weight: bold !important;
}

.passed-plan {
  color: #999;
}

.active-plan {
  background-color: #d1e7dd;
}

tr.disabled-row * {
  cursor: not-allowed !important;
  opacity: 0.6;
}

button:disabled {
  background-color: #aaa !important;
  color: #fff !important;
  box-shadow: none !important;
}

button:disabled:hover {
  background-color: #aaa !important;
  color: #fff !important;
  box-shadow: none !important;
}
