/* body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fce7f3, #e0f2fe, #fef9c3);
  min-height: 100vh;
  color: #334155;
} */

/* body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background:
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23cbd5e1' fill-opacity='0.2'%3E%3Cpath d='M40 0L50 30L80 40L50 50L40 80L30 50L0 40L30 30Z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #fce7f3, #e0f2fe, #fef9c3);
  background-size: 80px 80px, cover;
  min-height: 100vh;
  color: #334155;
} */

body {
  margin: 0;
  font-family: var(--font-sans, -apple-system, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: var(--body-weight, 400);
  font-size: 1rem; /* uses --base-font-size via html */
  /* Slightly darker, textured ocean-tinted background */
  background:
    radial-gradient(circle at 10% 10%, rgba(30,58,95,0.06), transparent 18%),
    radial-gradient(circle at 90% 90%, rgba(43,138,138,0.04), transparent 20%),
    linear-gradient(135deg, #1a1f2e 0%, #2c3e50 50%, #1e3a5f 100%);
  background-attachment: fixed;
  color: #F5F2ED; /* Cream text for contrast */
  min-height: 100vh;
}

:root {
  --ocean-light: #F5F2ED;
  --ocean-mid: #D4AF37;
  --ocean: #2B8A8A;
  --ocean-deep: #1e3a5f;
  --accent: #D4AF37;
  /* Apple-like typography variables (system SF stack) */
  --font-sans: -apple-system, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --base-font-size: 17px; /* Apple's default body size */
  --body-weight: 400;
  --heading-weight: 600;
  --display-weight: 700;
}

/* Use Apple's base size so 1rem == 17px */
html { font-size: var(--base-font-size); }

.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.main-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 30px;
}

/* .top-card {
  background: linear-gradient(135deg, #ffffffcc, #f8fafc);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s ease;
  margin-bottom: 40px;
} */

.top-card {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(43,138,138,0.06), rgba(245,242,237,0.05));
  border: 1px solid #D4AF37;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(30,58,95,0.12), inset 0 3px 8px rgba(212,175,55,0.08);
  padding: 28px 36px; /* keep content away from card edges on wide screens */
}

.top-card:hover {
  transform: translateY(-4px);
}

/* Ramadan day label above Sehri/Iftar */
#long-date {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 500;
  color: var(--ocean-light);
}

#ramadan-number {
  font-size: 26px; /* increased size for prominence */
  font-weight: 600;
  margin: 6px 0 14px;
  color: var(--accent);
}
.time-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0;
}

.time-box {
  background: linear-gradient(135deg, rgba(43,138,138,0.1), rgba(212,175,55,0.08));
  border: 1px solid #D4AF37;
  color: #F5F2ED;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 12px;
  padding: 18px 22px; /* added padding for Sehri/Iftar boxes */
  box-shadow: 0 6px 16px rgba(30,58,95,0.1), inset 0 -3px 8px rgba(212,175,55,0.06);
}
.time-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(30,58,95,0.15), inset 0 -3px 8px rgba(212,175,55,0.1);
}

#timer {
  font-size: 28px;
  font-weight: bold;
  margin-top: 10px;
} */

/* Removed duplicate .time-box block (padding handled above) */

#timer {
  color: #D4AF37; /* Gold countdown accent */
  text-shadow: 0 2px 10px rgba(30,58,95,0.3);
  font-weight: 500;
}

.countdown {
  margin-top: 20px;
  padding: 6px 2px; /* small internal spacing for remaining time area */
}

.schedule-title {
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, rgba(30,58,95,0.05), rgba(43,138,138,0.04));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(30,58,95,0.12);
  border: 1px solid #D4AF37;
  font-size: 13px;
}

th, td {
  padding: 14px;
  text-align: center;
}

thead {
  background: linear-gradient(90deg, #1e3a5f, #2B8A8A);
  color: #D4AF37;
  font-weight: 600;
}

tbody tr {
  transition: 0.3s ease;
}

tbody tr:hover {
  background: linear-gradient(135deg, rgba(43,138,138,0.1), rgba(212,175,55,0.08));
  transform: scale(1.01);
}

.highlight-row {
  background: linear-gradient(90deg, rgba(212,175,55,0.15), rgba(43,138,138,0.12)) !important;
  font-weight: 600;
  border-left: 4px solid #D4AF37;
}
.highlight-top {
  border: 2px solid #D4AF37;
  border-radius: 12px;
  box-shadow: inset 0 2px 6px rgba(212,175,55,0.12), 0 6px 16px rgba(30,58,95,0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2B8A8A, #D4AF37);
  border-radius: 20px;
  transition: width 1s linear;
}

/* Remaining time text padding */
.countdown #timer {
  padding: 14px 18px;
  display: inline-block;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(30,58,95,0.12), rgba(43,138,138,0.1));
  color: #D4AF37;
  border: 1px solid #D4AF37;
}

body {
  animation: fadeInBody 1.2s ease forwards;
  opacity: 0;
}

@keyframes fadeInBody {
  to {
    opacity: 1;
  }
}

.top-card,
table {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.top-card {
  animation-delay: 0.3s;
}

table {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* the commneted out part is for testing */
/* .test-panel {
  margin: 15px 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.test-panel input,
.test-panel button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: 0.2s ease;
}

.test-panel button:hover {
  background: #e0f2fe;
} */


.top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.left-header {
  display: flex;
  flex-direction: column;
}

.main-title {
  font-size: 38px;
  margin: 0;
}

#header-date {
  font-size: 16px;
  opacity: 0.8;
  margin-top: 6px;
}

/* .right-header {
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s ease;
} */

.right-header {
  background: linear-gradient(135deg, rgba(30,58,95,0.08), rgba(43,138,138,0.06), rgba(212,175,55,0.05));
  color: #D4AF37; /* Gold text */
  box-shadow: 0 8px 20px rgba(30,58,95,0.1), inset 0 2px 6px rgba(212,175,55,0.1);
  border-radius: 14px;
  align-content: center;
  border: 1px solid #D4AF37;
  font-size: 20px;
  font-weight: 500;
  padding: 14px 24px;
}

.right-header:hover {
  transform: translateY(-3px);
}

/* ========================= */
/* COLOR VARIANTS */
/* ========================= */

/* TEAL VARIANT - Aquatic, Calm Philosophy */
.top-card.variant-teal {
  background: linear-gradient(135deg, rgba(43,138,138,0.12), rgba(212,175,55,0.05), rgba(245,242,237,0.04));
  border-color: #2B8A8A;
}

.time-box.variant-teal {
  background: linear-gradient(135deg, rgba(43,138,138,0.15), rgba(245,242,237,0.08));
  border-color: #2B8A8A;
}

.time-box.variant-teal:hover {
  box-shadow: 0 12px 28px rgba(43,138,138,0.2), inset 0 -3px 8px rgba(43,138,138,0.15);
}

/* NAVY VARIANT - Traditional, Authoritative */
.top-card.variant-navy {
  background: linear-gradient(135deg, rgba(30,58,95,0.15), rgba(212,175,55,0.04), rgba(245,242,237,0.04));
  border-color: #1e3a5f;
}

.time-box.variant-navy {
  background: linear-gradient(135deg, rgba(30,58,95,0.15), rgba(245,242,237,0.08));
  border-color: #1e3a5f;
  color: #F5F2ED;
}

.time-box.variant-navy:hover {
  box-shadow: 0 12px 28px rgba(30,58,95,0.2), inset 0 -3px 8px rgba(30,58,95,0.15);
}

/* CREAM VARIANT - Warm, Welcoming */
.top-card.variant-cream {
  background: linear-gradient(135deg, rgba(245,242,237,0.12), rgba(212,175,55,0.08), rgba(43,138,138,0.04));
  border-color: #D4AF37;
}

.time-box.variant-cream {
  background: linear-gradient(135deg, rgba(245,242,237,0.15), rgba(212,175,55,0.1));
  border-color: #D4AF37;
  color: #1e3a5f;
}

.time-box.variant-cream:hover {
  color: #2B8A8A;
  box-shadow: 0 12px 28px rgba(212,175,55,0.2), inset 0 -3px 8px rgba(245,242,237,0.15);
}

/* DESATURATED VARIANT - Minimalist, Focused */
.top-card.variant-minimal {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(245,242,237,0.06));
  border-color: rgba(212,175,55,0.5);
}

.time-box.variant-minimal {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(245,242,237,0.08));
  border-color: rgba(212,175,55,0.4);
}

/* ========================= */
/* MOBILE RESPONSIVE DESIGN */
/* ========================= */

@media (max-width: 768px) {

  .container {
    padding: 20px 15px;
  }

  /* .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .right-header {
    align-self: flex-end;
  }

  .main-title {
    font-size: 28px;
  } */

  .top-header {
    flex-direction: row; /* Change from column to row */
    justify-content: space-between;
    align-items: center; /* Vertically center them */
  }
  .right-header {
    align-self: center; /* Align with the date */
    font-size: 14px; /* Slightly smaller font to ensure fit */
  }
  .main-title {
    font-size: 28px; /* Scale down title to prevent overflow */
  }
}

  #header-date {
    font-size: 14px;
  }

  .time-row {
    flex-direction: row; /* Keep them side-by-side */
    justify-content: space-between; /* Space them evenly */
    gap: 10px;
  }
  .time-box {
    width: 40%; /* Adjust width so two fit on one line */
    padding: 12px; /* Reduce padding for mobile */
  }


  table {
    font-size: 12px;
  }

  th, td {
    padding: 10px 6px;
  }

  .schedule-title {
    font-size: 20px;
  }

  .time-box h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .time-box p {
    font-size: 18px;
    font-weight: 500;
  }


  #timer {
    font-size: 22px;
  }


.table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
}



@media (max-width: 480px) {

  .top-card {
    padding: 20px;
  }

  .right-header {
    font-size: 16px;
    padding: 8px 14px;
  }

  /* .time-row {
    flex-direction: column;
    gap: 10px;
  } */


  .time-row {
    flex-direction: row; /* Keep them side-by-side */
    justify-content: space-between; /* Space them evenly */
    gap: 10px;
  }
  .time-box {
    width: 40%; /* Adjust width so two fit on one line */
    padding: 12px; /* Reduce padding for mobile */
  }

  body {
    font-size: 14px;
  }

}

@media (max-width: 480px) {

  .time-box {
    padding: 12px;
  }

  .time-box h3 {
    font-size: 14px;
  }

  .time-box p {
    font-size: 16px;
  }

  table {
    font-size: 11px;
  }

}


/* Responsive adjustments for Ramadan day label */
@media (max-width: 768px) {
  #ramadan-number {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  #ramadan-number {
    font-size: 18px;
  }
}
