/*************************************************
 * GLOBAL VARIABLES
 *************************************************/
:root {
  --max-w: 1100px;
  --accent: #6b21a8;
  --accent-light: #8b3dd1;
  --muted: #6b7280;
  --bg: #fafafa;
  --text: #111;
  --card-bg: #ffffff;
  --fade-duration: 0.4s;
}

/* DARK MODE */
.dark-mode {
  --bg: #0f0f12;
  --text: #f5f5f5;
  --card-bg: #1b1b1f;
  --muted: #9ca3af;
}

/*************************************************
 * RESET & BASE
 *************************************************/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif;
  animation: fadeIn var(--fade-duration) ease-in;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
}

h1, h2, h3 {
  margin-bottom: 16px;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  transition: transform .2s ease, background-color .2s ease;
}

button:hover {
  transform: scale(1.05);
}

/*************************************************
 * HERO SECTION (index.html)
 *************************************************/
.hero {
  background-color: var(--accent-light);
  padding: 40px 0;
  text-align: center;
  animation: slideDown var(--fade-duration) ease-out;
}

.hero h1 {
  font-size: 28px;
  color: white;
}

.hero p {
  color: white;
  margin-top: 8px;
}

/*************************************************
 * SERVICE CARDS (index.html)
 *************************************************/
#services {
  margin-top: 20px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.service-card {
  flex: 1 1 200px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.service-card.active {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  background: var(--accent-light);
  color: #fff;
}

/*************************************************
 * BOOKING FORM (index.html)
 *************************************************/
#booking {
  margin-top: 24px;
}

#booking form label {
  display: block;
  margin-bottom: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: var(--card-bg);
  color: var(--text);
  transition: border .2s;
}

input:focus {
  border-color: var(--accent);
  outline: none;
}

.actions {
  margin-top: 12px;
}

button#showBankBtn, button#iPaidBtn {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

button#showBankBtn:hover, button#iPaidBtn:hover {
  background: var(--accent-light);
}

/*************************************************
 * MODAL (index.html)
 *************************************************/
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  color: var(--text);
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  position: relative;
  animation: popUp var(--fade-duration) ease;
}

.modal .close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

/*************************************************
 * ADMIN DASHBOARD (admin.html)
 *************************************************/
#adminTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#adminTable th, #adminTable td {
  text-align: left;
  padding: 12px 8px;
}

#adminTable th {
  background: var(--accent);
  color: #fff;
}

#adminTable tr:nth-child(even) {
  background: #f7f7f7;
}

#adminTable tr:hover {
  background: #f0e6ff;
}

#adminTotal {
  font-weight: bold;
  color: var(--accent);
}

#logoutBtn {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
}

#logoutBtn:hover {
  background: var(--accent-light);
}

/*************************************************
 * FOOTER
 *************************************************/
.footer {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
}

/*************************************************
 * ANIMATIONS
 *************************************************/
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes popUp {
  from { transform: scale(.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/*************************************************
 * RESPONSIVE
 *************************************************/
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
  }
  .service-card {
    flex: 1 1 100%;
  }
}

@media (min-width: 800px) {
  .cards {
    gap: 20px;
  }
  .hero h1 {
    font-size: 34px;
  }
}