/* ============================
   General Page Styles
   ============================ */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #8657fe, #7777c8); /* page background */
}

.wrapper {
  display: flex;
  gap: 0; /* remove space so boxes touch */
}

/* ============================
   Registration / Login Layout
   ============================ */

/* Left welcome card with background image */
.left-panel {
  width: 400px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 6px 18px rgba(8, 10, 11, 0.5);
  background: url('The Peninsula - Shanghai.jpg') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.left-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}
.left-panel h1,
.left-panel p {
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
.left-panel h1 {
  font-size: 2.4em;
  font-weight: bold;
  margin-bottom: 12px;
}
.left-panel p {
  font-size: 1.2em;
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Right registration card */
.form-container {
  width: 400px;
  background: linear-gradient(135deg, #ffffff, #e6f0ff);
  padding: 30px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 6px 18px rgba(8, 20, 30, 0.5);
}
.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
}
.form-container input,
.form-container select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.form-container button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  background: #0078d7;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}
.form-container button:hover {
  background: #005fa3;
}
.admin-btn { background: #0078d7; }
.login-text a {
  color: #0078d7;
  text-decoration: none;
}
.login-text a:hover { text-decoration: underline; }

/* ============================
   Popups (Admin + User)
   ============================ */
.admin-popup,
.user-popup {
  display: none;              /* hidden by default */
  position: fixed;            /* fixed to viewport */
  top: 0; left: 0;
  width: 100%; height: 100%;
  justify-content: center;    /* center horizontally */
  align-items: center;        /* center vertically */
  background: rgba(0,0,0,0.3); /* dim background overlay */
  z-index: 1000;
}
.popup-content {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  width: 320px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}
.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #888;
}
.close:hover { color: #000; }
.popup-content input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.popup-content button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  background: #0078d7;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}
.popup-content button:hover { background: #005fa3; }
.forgot-link {
  display: block;
  margin: 10px 0;
  font-size: 0.9em;
  color: #0078d7;
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* ============================
   Notification Banner
   ============================ */
.notification {
  display: none;
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  font-size: 1.1em;
  text-align: center;
  animation: fadeIn 0.5s ease;
  z-index: 2000;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}



/* ============================
   Admin Dashboard Styles
   ============================ */
.dashboard {
  display: flex; /* hidden by default, shown after login */
  width: 100%;
  height: 100vh;
}
.sidebar {
  width: 240px;
  background: #2e3b4e;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.sidebar h2 {
  margin-bottom: 20px;
  font-size: 1.4em;
  text-align: center;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar ul li { margin: 15px 0; }
.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  display: block;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.3s ease;
}
.sidebar ul li a:hover { background: #44566c; }

.main-content {
  flex: 1;
  background: #f4f6f9;
  padding: 20px;
  overflow-y: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logout {
  background: #d9534f;
  border: none;
  padding: 8px 14px;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}
.logout:hover { background: #c9302c; }

.cards {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}
.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1;
  text-align: center;
}
.card h3 { margin-bottom: 10px; color: #333; }
.card p {
  font-size: 1.4em;
  font-weight: bold;
  color: #0078d7;
}

.table-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.table-section h2 { margin-bottom: 15px; }
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
table th, table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}


/* ===========================
   Table Styles (Pending Page)
   =========================== */
.styled-table {
  width: 100%;              /* narrower than full width */
  margin: 20px auto;       /* center horizontally */
  border-collapse: collapse;
  font-size: 0.95em;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff; /* white background for clarity */
  border-radius: 8px;        /* rounded corners */
  overflow: hidden;          /* keep corners clean */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* subtle shadow */
}

.styled-table thead tr {
  /* Softer header color */
  background: linear-gradient(90deg, #4a90e2, #6fb1fc);
  color: #ffffff;
  text-align: left;
}

.styled-table th, .styled-table td {
  padding: 12px 15px;
}

.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #f9f9f9; /* lighter stripe */
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid #4a90e2;
}

.styled-table tbody tr:hover {
  background-color: #eef6ff; /* soft hover highlight */
  transition: background 0.3s ease;
}


/* ============================
   Dashboard Page Override
   ============================ */
body.dashboard-page {
  margin: 0;
  font-family: Arial, sans-serif;
  display: block;       /* stop centering */
  justify-content: unset;
  align-items: unset;
  height: auto;
  background: #f4f6f9;  /* lighter background for dashboard */
}

.dashboard {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #2e3b4e;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar h2 {
  margin-bottom: 20px;
  font-size: 1.4em;
  text-align: center;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li { margin: 15px 0; }

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  display: block;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.sidebar ul li a:hover { background: #44566c; }

.main-content {
  flex: 1;
  padding: 20px;
  background: #f4f6f9;
  overflow-y: auto;
}

.table-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}