:root {
    --card-width: 900px;
    --card-height: auto;
    /* Modern Islamic palette */
    --accent-green: #0f766e;   /* emerald/teal */
    --accent-green-2: #115e59;
    --accent-gold: #d4af37;
    --muted: rgba(15, 23, 42, .55);
    --surface: rgba(255,255,255,.92);
    --surface-strong: #ffffff;
    --border: rgba(15, 23, 42, .10);
    --shadow: 0 12px 40px rgba(2, 6, 23, .14);
    /* User request: remove all border-radius in full-page UI */
    --radius: 0px;
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%230f766e' stroke-opacity='.12' stroke-width='2'%3E%3Cpath d='M70 10c18 0 32 14 32 32S88 74 70 74 38 60 38 42 52 10 70 10Z'/%3E%3Cpath d='M70 66c18 0 32 14 32 32s-14 32-32 32-32-14-32-32 14-32 32-32Z'/%3E%3Cpath d='M10 70c0-18 14-32 32-32s32 14 32 32-14 32-32 32S10 88 10 70Z'/%3E%3Cpath d='M66 70c0-18 14-32 32-32s32 14 32 32-14 32-32 32-32-14-32-32Z'/%3E%3C/g%3E%3C/svg%3E");
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Vazirmatn','Inter','Open Sans',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
    background: #0b1220;
    direction: ltr;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
     background:
      linear-gradient(180deg, rgba(11,18,32,.72), rgba(11,18,32,.86)),
      var(--pattern),
      url(background.jpg) center / cover no-repeat fixed;
    min-height: 100vh;
    margin: 0;
}

.card-wrapper {
    width: var(--card-width);
    max-width: calc(100% - 40px);
    box-shadow: var(--shadow);
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.35);
    position: relative;
    overflow: hidden;
}

/* subtle decorative band */
.card-wrapper::before{
    content:"";
    position:absolute;
    left:-40px; right:-40px; top:-60px;
    height:140px;
    background:
      radial-gradient(closest-side, rgba(212,175,55,.25), transparent 70%),
      linear-gradient(90deg, rgba(15,118,110,.18), rgba(212,175,55,.12), rgba(15,118,110,.18));
    transform: rotate(-2deg);
    pointer-events:none;
}

@media (min-width: 1024px) {
    .card-wrapper {
        width: 100vw;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .card {
        max-width: 1500px;
        margin: 0 auto;
        background: var(--surface-strong);
        border-radius: calc(var(--radius) + 2px);
        box-shadow: var(--shadow);
        padding: 35px;
        border: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    body { padding: 0px; }
    .card-wrapper { max-width: 100%; width: 100%; border-radius: 12px; }
    .card { padding: 18px 16px; }
}

.card {
    width: 100%;
    background: var(--surface-strong);
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* -------------------------
   Hamburger + Drawer Menu
   ------------------------- */
.header-actions{ display:flex; align-items:center; gap:10px; }

.hamburger-btn{
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    background: rgba(15,118,110,.06);
    cursor: pointer;
    padding: 0;
    transition: opacity 200ms ease, background 200ms ease;
}
.hamburger-btn:hover{ opacity: .95; background: rgba(15,118,110,.10); }
.hamburger-btn span{
    display:block;
    width: 18px;
    height: 2px;
    background: rgba(2,6,23,.78);
}

.tpt-drawer-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9998;
}

.tpt-drawer{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 86vw);
    background: var(--surface-strong);
    border-left: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(2,6,23,.35);
    transform: translateX(110%);
    transition: transform 220ms ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}
.tpt-drawer.is-open{ transform: translateX(0); }

.tpt-drawer-header{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 16px 16px;
    border-bottom: 1px solid var(--border);
}
.tpt-drawer-title{ font-weight: 800; color: rgba(2,6,23,.88); }
.tpt-drawer-close{
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: rgba(15,118,110,.06);
    cursor:pointer;
    font-size: 22px;
    line-height: 1;
}

.tpt-drawer-nav{ display:flex; flex-direction:column; padding: 10px 10px 6px; gap: 4px; }
.tpt-drawer-nav a{
    padding: 12px 12px;
    text-decoration:none;
    color: rgba(2,6,23,.82);
    border: 1px solid transparent;
    background: rgba(2,6,23,.02);
}
.tpt-drawer-nav a:hover{ background: rgba(15,118,110,.08); border-color: rgba(15,118,110,.18); }

.tpt-drawer-divider{ height: 1px; background: var(--border); margin: 10px 16px; }


.tpt-switch{ display:flex; align-items:center; gap:10px; padding: 6px 16px 18px; user-select:none; display: none;}
.tpt-switch input{ display:none; }
.tpt-slider{
    width: 44px;
    height: 24px;
    border: 1px solid var(--border);
    background: rgba(2,6,23,.06);
    position: relative;
}
.tpt-slider::after{
    content:"";
    position:absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--accent-green);
    transition: transform 180ms ease;
}
.tpt-switch input:checked + .tpt-slider::after{ transform: translateX(20px); }
.tpt-switch-label{ font-weight: 700; color: rgba(2,6,23,.82); }

/* ------------------------------------------------------------
   No rounded corners (global override within full-page UI)
   ------------------------------------------------------------ */


/* -------------------------
   Dark mode (toggle)
   ------------------------- */
body.tpt-dark{
    background:
      linear-gradient(180deg, rgba(2,6,23,.80), rgba(2,6,23,.92)),
      var(--pattern),
      url(background.jpg) center / cover no-repeat fixed;
}
body.tpt-dark .card,
body.tpt-dark .card-wrapper{ background: rgba(2,6,23,.72); }
body.tpt-dark .card{ border-color: rgba(255,255,255,.10); }
body.tpt-dark .current-time{ color: rgba(255,255,255,.92); }
body.tpt-dark .countdown{ color: rgba(255,255,255,.70); }
body.tpt-dark .heading .city-name,
body.tpt-dark .city-name-with-namaz{ color: rgba(255,255,255,.90); }
body.tpt-dark .tpt-drawer{ background: rgba(2,6,23,.94); }
body.tpt-dark .tpt-drawer-title,
body.tpt-dark .tpt-drawer-nav a,
body.tpt-dark .tpt-switch-label{ color: rgba(255,255,255,.92); }
body.tpt-dark .tpt-drawer-nav a{ background: rgba(255,255,255,.04); }
body.tpt-dark .hamburger-btn span{ background: rgba(255,255,255,.85); }

.current { display: flex; gap: 12px; align-items: center; }
.current .icon { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) saturate(100%) invert(29%) sepia(28%) saturate(970%) hue-rotate(135deg) brightness(93%) contrast(92%); }
.current .title { font-weight: 600; font-size: 19px; color: var(--accent-green); font-family: inter;}

.link-icon { width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; color: var(--accent-green); cursor: pointer; transition: all 200ms ease; text-decoration: none; opacity: 0.7; border-radius: 4px; padding: 4px; }
.link-icon:hover { opacity: 1; background: rgba(15,118,110,0.10); }

.heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.left, .right { flex: 1; }
.right {
    text-align: right;
    padding: 12px 14px;
    border-radius: 14px;
    background:
      radial-gradient(600px 180px at 100% 0%, rgba(15,118,110,.10), transparent 60%),
      linear-gradient(180deg, rgba(2, 6, 23, .02), rgba(2, 6, 23, .00));
}
.current-time { font-size: 1.55em; font-weight: 800; color: rgba(2,6,23,.88); letter-spacing: .2px; }
.countdown { font-size: 16px; color: var(--muted); }

.heading .city-name { font-size: 20px; font-weight: 700; color: #222; margin-bottom: 12px; }
.dates-container { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; flex-direction: column; }
.dates-container{max-width:100%;overflow-x:hidden;}
.heading .date, .heading .hijri-date { font-size: 19px;  }

@media (max-width: 768px) {
    .heading { flex-direction: column; align-items: center; }
    .right { text-align: center; margin-top: 4px; border: 1px solid var(--border);}
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.search-row label { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px; }
/* Location (Province/City) selects */
.location-select-wrap { position: relative; display: flex; align-items: center; flex: 1; max-width: 220px; }
@media (max-width: 768px) { .location-select-wrap { max-width: 100%; } }
.location-select { padding: 10px; border-radius: 6px; border: 1px solid #ddd; width: 100%; font-size: 16px; background: white; transition: all 200ms ease; color: #333; cursor: pointer; }
.location-select:focus { outline: none; border-color: var(--accent-green); box-shadow: 0 0 0 3px rgba(113, 219, 135, 0.15); }

.city-input-hidden { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

/* Backward compatible styles for old search input (kept hidden now) */
.city-input-wrap { position: relative; display: flex; align-items: center; flex: 1; max-width: 380px; }
@media (max-width: 768px) { .city-input-wrap { max-width: 100%; } }

input.city-input { padding: 10px; border-radius: 6px; border: 1px solid #ddd; width: 100%; font-size: 13px; background: white; transition: all 200ms ease; color: #333; }
input.city-input:focus { outline: none; border-color: var(--accent-green); box-shadow: 0 0 0 3px rgba(113, 219, 135, 0.15); }

.loader { position: absolute; right: 10px; width: 18px; height: 18px; display: none; }
.suggestions { position: absolute; left: 0; top: 40px; width: 100%; max-height: 200px; overflow-y: auto; background: white; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.12); z-index: 1000; display: none; }
.suggestions .item { padding: 10px 14px; cursor: pointer; font-size: 13px; transition: all 120ms ease; }
.suggestions .item:hover { background: #f0fdf4; color: var(--accent-green); padding-left: 18px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
}

.date-input-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-select { padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; background: white; font-size: 15px; min-width: 80px; cursor: pointer; transition: border-color 200ms ease; }
.date-select:focus { outline: none; border-color: var(--accent-green); box-shadow: 0 0 0 3px rgba(113, 219, 135, 0.15); }

.prayers { margin-bottom: 24px; position: relative; }

/* ------------------------------------------------------------
   Day navigation bar (prev / next / "Bugüne Dön")
   - Requested: buttons should sit ABOVE the prayer grid
   - Mobile: keep them on the right, above the times box
   ------------------------------------------------------------ */
.day-nav-bar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin: 2px 0 12px;
}
.day-nav-bar .day-nav-btn{
  position: static;
  transform: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(15,118,110,.95);
}
.day-nav-bar .day-nav-btn:hover{ background: rgba(15,118,110,.08); }

/* "Bugüne Dön" button */
.reset-date-btn{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
  cursor:pointer;
  font-weight: 800;
  letter-spacing: .1px;
}
.reset-date-btn .reset-text{ font-size: 13px; }
.reset-date-btn .reset-icon img{ width: 18px; height: 18px; opacity: .95; }
.reset-date-btn.is-hidden{ display:none !important; }
.reset-date-btn.is-active{
  color: #dc2626;
  border-color: rgba(220,38,38,.35);
  background: rgba(220,38,38,.06);
}
.reset-date-btn.is-active .reset-icon img{
  /* Approximate red for an external SVG via filter */
  filter: brightness(0) saturate(100%) invert(21%) sepia(84%) saturate(3917%) hue-rotate(349deg) brightness(93%) contrast(92%);
  animation: tpt-wiggle 1.15s ease-in-out infinite;
}
@keyframes tpt-wiggle{
  0%, 100%{ transform: rotate(0deg) translateY(0); }
  20%{ transform: rotate(-12deg) translateY(-1px); }
  40%{ transform: rotate(10deg) translateY(0); }
  60%{ transform: rotate(-8deg) translateY(-1px); }
  80%{ transform: rotate(6deg) translateY(0); }
}

@media (max-width: 768px){
  .day-nav-bar{ margin-bottom: 10px; gap: 8px; }
  .day-nav-bar .day-nav-btn{ width: 38px; height: 38px; }
  .reset-date-btn{ padding: 7px 9px; }
  .reset-date-btn .reset-text{ font-size: 12px; }
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(6, 1fr); gap: 18px; } }
@media (max-width: 700px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.prayer-item {
    background: rgba(255,255,255,.88);
    border-radius: 16px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 98px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(2,6,23,.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.prayer-item:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(2,6,23,.10);
}
.prayer-item.active {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-2));
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15,118,110,.28);
    border-color: rgba(212,175,55,.55);
}
.prayer-time { font-size: 22px; font-weight: 800; margin-bottom: 6px; color: var(--accent-green); letter-spacing: .3px; }
.prayer-item.active .prayer-time { color: white; }
.prayer-name { font-size: 14px; color: rgba(2,6,23,.62); font-weight: 650; letter-spacing: .2px; }
.prayer-item.active .prayer-name { color: rgba(255, 255, 255, 0.95); }
.prayer-item img.small-icon { width: 30px; height: 30px; margin-bottom: 8px; filter: brightness(0) saturate(100%) invert(40%) sepia(65%) saturate(20%) hue-rotate(180deg); }
.prayer-item.active img.small-icon { filter: brightness(0) saturate(100%) invert(100%); }

.occasions-section { display: none; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.occasions-section.visible { display: flex; }
.occasion-row { display: none; align-items: center; gap: 12px; padding: 12px; background: rgba(15,118,110,.06); border-radius: 14px; border: 1px dashed rgba(15,118,110,.35); }
.occasion-row.visible { display: flex; }
.occasion-icon { width: 26px; height: 26px; flex-shrink: 0; filter: brightness(0) saturate(100%) invert(29%) sepia(28%) saturate(970%) hue-rotate(135deg) brightness(93%) contrast(92%); }
.occasion-text { font-size: 13px; color: rgba(2,6,23,.78); font-weight: 600; }
.occasion-text{max-width:100%;word-break:break-word;}
.occasion-line{line-height:1.55;}
.occasion-line + .occasion-line{margin-top:4px;}

/* Talk of day / Verse of day banner */
.talkofday-banner{display:none;margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(188, 198, 172, 0.4);
  background: radial-gradient(600px 200px at 0% 0%, rgba(221, 234, 224, 0.18), transparent 60%), linear-gradient(180deg, rgba(15,118,110,.14), rgba(72, 134, 129, 0.04));
  box-shadow: 0 10px 24px rgba(13, 53, 7, 0.07);}
.talkofday-banner.visible{display:block;}
.talkofday-banner-header{display:flex;align-items:center;gap:10px;margin-bottom:8px;}
.talkofday-icon{width:22px;height:22px;flex-shrink:0;filter:brightness(0) saturate(100%) invert(29%) sepia(28%) saturate(970%) hue-rotate(135deg) brightness(93%) contrast(92%);}
.talkofday-label{font-weight:800;font-size:14px;letter-spacing:.2px;color: rgba(2,6,23,.82);}
.talkofday-tabs{
  display:inline-flex;
  align-items:center;
  gap: 0;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.14);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(2,6,23,.06);
}
.talkofday-tab{
  appearance:none;
  border: 0;
  background: transparent;
  color: rgba(2,6,23,.78);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 13px;
  letter-spacing: .15px;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.talkofday-tab:hover{ background: rgba(2,6,23,.05); }
.talkofday-tab:active{ transform: translateY(1px); }
.talkofday-tab:focus-visible{
  outline: 3px solid rgba(15,118,110,.28);
  outline-offset: 2px;
}
.talkofday-tab.is-active{
  background: rgba(15,118,110,.16);
  color: rgba(2,6,23,.88);
  box-shadow: 0 10px 18px rgba(15,118,110,.12);
}
.talkofday-tab.is-disabled{ opacity:.55; cursor:not-allowed; }
.talkofday-text{font-size:18px;line-height:1.9;color: rgba(2,6,23,.88);font-weight:650;word-break:break-word;}
.talkofday-panel[hidden]{display:none !important;}
@media (max-width: 768px){.talkofday-text{font-size: 15px;
    font-family: inter;
    font-weight: normal;}}

/* Top boxes (Verse of day + Upcoming occasions)
   - Desktop: 2 columns side-by-side
   - Mobile: stacked and perfectly centered */
.tpt-top-boxes{
  display:flex;
  flex-direction: column;
  gap: 12px;
  max-width:100%;
}
@media (min-width: 992px){
  .tpt-top-boxes{ flex-direction: row; align-items: stretch; }
  .tpt-top-boxes > *{ flex: 1 1 0; }
  .talkofday-banner{ margin-top: 0; }
  .upcoming-countdown-box{ margin-top: 0; }
}
@media (max-width: 768px){
  .tpt-top-boxes{ align-items: center; }
  .tpt-top-boxes > *{ margin-left: auto; margin-right: auto; max-width: 560px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { border: 2px solid #eee; border-top-color: var(--accent-green); border-radius: 50%; width: 18px; height: 18px; animation: spin 0.8s linear infinite; }

.bottom-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 992px) {
    .bottom-sections {
        flex-direction: row;
    }
    .month-events-section {
        flex: 0 0 28%;
        max-width: 28%;
    }
    .monthly-timings-section {
        flex: 0 0 68%;
        max-width: 68%;
    }
}

.month-events-section {
    background: rgba(255,255,255,.84);
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 26px rgba(2,6,23,.06);
}

.month-events-title {
    font-size: 17px;
    font-weight: 600;
    color: #474747;
    text-align: center;
    margin-bottom: 12px;
	padding: 10px;
}

.month-events-list {display: flex;flex-direction: column;gap: 0px;}
.event-row {display: flex;align-items: center;gap: 0px;padding: 7px;border-radius: 0px;border-bottom: 1px solid #eee;}
.event-day {font-weight: normal;min-width: 30px;color: #7a7a7a;     padding-right: 5px; font-size: 16px; margin-right: 5px;}
.event-text { color: #555; font-size: 16px; }
.no-events { text-align: center; color: var(--muted); font-style: italic; padding: 20px; }

.monthly-timings-section {
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 0px;
    border: 2px solid #ddd;
}

.monthly-timings-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
    color: #333;
    margin-top: 10px;
	padding: 10px;
}

.monthly-timings-table-wrap {
    overflow-x: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* Default: no vertical scroll limit on desktop; mobile rules below will handle it */
}

.monthly-timings-table-wrap:active { cursor: grabbing; }

@media (min-width: 992px) {
    .monthly-timings-table-wrap {
        overflow-x: visible;
    }
    .monthly-timings-table {
        width: 100% !important;
        min-width: unset !important;
    }
}

@media (max-width: 991px) {
    .monthly-timings-table {
        min-width: 780px;
    }
}

/* Mobile: allow vertical scrolling inside the monthly timings box (without needing "Daha fazla") */
@media (max-width: 768px){
  /* Collapsed state: limited height, both horizontal + vertical scrolling enabled */
  #tableWrapper.monthly-collapsed{
    max-height: 360px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Expanded: full height; keep horizontal scrolling available */
  #tableWrapper.monthly-expanded{
    max-height: none;
    overflow-y: visible;
  }
  /* If no state class is set, still allow vertical scrolling (safe default) */
  #tableWrapper{ overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* Optional nicer vertical scrollbar on mobile browsers that show it */
  #tableWrapper::-webkit-scrollbar{ height: 10px; width: 10px; }
}

.monthly-timings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84em;
    direction: ltr;
    user-select: none;
    -webkit-user-select: none;
    table-layout: fixed; 
}

.monthly-timings-table thead th {
    background-color: #f1f1f1;
    color: #444;
    padding: 9px 6px;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.monthly-timings-table tbody td {
    padding: 7px 5px;
    border: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
    line-height: 1.4;
    font-size: 15px;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.monthly-timings-table tbody tr:nth-child(even) { background-color: #fdfdfd; }
.monthly-timings-table tbody tr:hover { background-color: #f5f8ff; }

.monthly-timings-table-wrap::-webkit-scrollbar {
    height: 10px;
}
.monthly-timings-table-wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.monthly-timings-table-wrap::-webkit-scrollbar-thumb {
    background: #c0e8cc;
    border-radius: 10px;
}
.monthly-timings-table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

#monthlyTimingsLoader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}



.dayweektext{
      background-color: #f0fdf4;
    color: #333;
    border-radius: 7px;
    padding: 2px 5px;
    border: 1px solid #16a34a;
    font-size: 10px;
}





#noticeRow{
        background-color: #fff9e7;
    border: 1px dashed #ffc582;
}




.monthly-timings-table .gregorian-col { line-height: 1.4; }
.monthly-timings-table .hijri-col {text-align: left;direction: ltr;}
.monthly-timings-table .hijri-day {
    display: inline-block;
    text-align: left;
    direction: ltr;
}






.date-input-wrap {
    position: relative;
    display: flex;
    gap: 6px;
    align-items: center;
}



.textmhejri {
color: #d35400;
  font-size: 13px;
  font-weight: 600;
  direction: ltr;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-style: italic;
}





#displayHijriFull {
  margin-bottom: 10px;
}





.tpt-gregorian-with-week{
 display: flex;
    flex-direction: row-reverse;
    justify-content: left;
    gap: 5px;
}
   


#displayWeekday {
    background-color: #f0fdf4;
    color: #333;
    border-radius: 7px;
    padding: 2px 5px;
    border: 1px solid #16a34a;
    font-size: 15px;
}

.city-name-with-namaz{
    font-weight: bold;
  font-family: inter;
  text-align: center;
  margin-top: 27px;
}
}



#monthlyTimingsTable .today-row {
    background-color: #e6f2ff !important;  
}
/* Footer */
.tpt-footer{margin-top:16px;padding-top:12px;border-top:1px solid #eaeaea;text-align:center;color:#666;font-size:12px;}


/* Upcoming countdown occasions */
.upcoming-countdown-box{
  width:100%;
  max-width:100%;
  padding:14px 16px;
  box-sizing:border-box;
  border-radius:14px;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.90));
  box-shadow: 0 12px 30px rgba(2,6,23,.12);
  border: 1px solid rgba(2,6,23,.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.upcoming-countdown-box::before{
  content:"";
  position:absolute;
  inset:0;
  /* Use the theme green */
  border-top:3px solid rgba(15,118,110,.55);
  pointer-events:none;
}
.upcoming-countdown-title{
  font-weight:900;
  font-size:14px;
  letter-spacing:.2px;
  margin-bottom:10px;
  color: rgba(2,6,23,.82);
  display:flex;
  align-items:center;
  gap:8px;
}
.upcoming-countdown-title::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(15,118,110,.70);
  box-shadow: 0 0 0 6px rgba(15,118,110,.12);
}
.upcoming-countdown-item{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:6px 0;
  border-top: 1px dashed rgba(2,6,23,.10);
}
.upcoming-countdown-item:first-child{border-top:none;padding-top:0;}
.upcoming-occasion{font-size: 15px;color: rgba(2,6,23,.88);}
.upcoming-date{white-space:nowrap;}
.upcoming-date-g{font-size:13px;opacity:.9;}
.upcoming-date-h{font-size:12px;opacity:.75;margin-left:6px;}
@media (max-width:768px){
  .upcoming-countdown-box{padding:12px 14px;}
  /* Mobile fix: allow long city/event/date strings to wrap instead of overflowing to the right */
  .upcoming-date{white-space:normal;}
  .upcoming-countdown-item{align-items:flex-start;}
  .upcoming-date-g{font-size:13px;}
  .upcoming-date-h{font-size:13px;}
}

/* Monthly timings: mobile "Daha fazla" button */
.monthly-more-btn{
  margin-top:10px;
  width:100%;
  border:none;
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
  letter-spacing:.2px;
  cursor:pointer;
  background: rgba(15,118,110,.10);
  color: rgba(2,6,23,.86);
  border: 1px dashed rgba(15,118,110,.35);
}
.monthly-more-btn:hover{filter:brightness(.98);}

/* Popular cities shortcut box */
.todayhistory-box{
  margin-top:16px;
  padding:14px 14px;
  border-radius:16px;
  border: 1px solid rgba(180,140,60,.35);
  background:
    radial-gradient(1200px 200px at 20% 0%, rgba(21,128,61,.10), transparent 55%),
    radial-gradient(900px 180px at 80% 100%, rgba(180,140,60,.10), transparent 55%),
    rgba(255,255,255,.90);
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
  position:relative;
  overflow:hidden;
}
.todayhistory-box:before{
  content:"";
  position:absolute;
  inset:-60px;
  background-image:
    repeating-linear-gradient(45deg, rgba(180,140,60,.06) 0 10px, rgba(21,128,61,.05) 10px 20px);
  opacity:.18;
  transform:rotate(2deg);
  pointer-events:none;
}
.todayhistory-header{display:flex;align-items:center;gap:10px;position:relative;}
.todayhistory-badge{
  width:34px;height:34px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  background: rgba(21,128,61,.10);
  border: 1px solid rgba(21,128,61,.20);
  color: rgba(21,128,61,.85);
  display: none;
}
.todayhistory-title{font-size:15px;font-weight:900;color:rgba(2,6,23,.84);}
.todayhistory-list{margin-top:10px;display:flex;flex-direction:column;gap:8px;position:relative;}
.todayhistory-line{
  display:block;
  position:relative;
 padding: 10px 9px 10px 9px;
  border-radius:14px;

}
.todayhistory-line:before{
  content:"✦";
  font-size:10px;
  opacity:.65;
  position:absolute;
  left: -3px;
  top: 11px;
}
.todayhistory-text{display:block;font-size: 15px;color:rgba(2,6,23,.84);}
.todayhistory-more{
  display:block;
  margin-top:6px;
  text-align:right;
  font-size:12px;
  font-weight:400;
  text-decoration:none;
  padding:0;
  border:none;
  background:none;
  color: rgba(21,128,61,.88);
}
.todayhistory-more:hover{filter:brightness(.98);}

.popular-cities-box{
  margin-top:16px;
  padding:14px 14px;
  border-radius:16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
}
.popular-cities-title{
  font-size:15px;
  font-weight:850;
  color: rgba(2,6,23,.84);
  margin-bottom:10px;
}
.popular-cities-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.city-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border: 1px dashed rgba(15,118,110,.35);
  background: rgba(15,118,110,.06);
  cursor:pointer;
  font-weight:750;
  color: rgba(2,6,23,.86);
}
.city-chip-icon{display:inline-flex;}
.city-chip:hover{filter:brightness(.98);}
@media (max-width:768px){
  .popular-cities-box{padding:12px 12px;}
  .city-chip{flex:1 1 auto;justify-content:center;}
}

.today-row {
  background: radial-gradient(600px 200px at 0% 0%, rgba(221, 234, 224, 0.18), transparent 60%), linear-gradient(180deg, rgba(15,118,110,.14), rgba(72, 134, 129, 0.04));
}
/* Extra (non-block) timings shown under the main grid (Sunset + Midnight) */
.extra-times{
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(2,6,23,.78);
}
.extra-time-item{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.12);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(2,6,23,.06);
}
.extra-time-item strong{font-weight: 800;}
.extra-time-val{font-variant-numeric: tabular-nums; font-weight: 800; margin-left: 6px;}

/* Hide secondary Hijri column when Hijri source is API */
.hijri-mode-api .monthly-timings-table th.hijri2-col,
.hijri-mode-api .monthly-timings-table td.hijri2-col {
    display: none;
}
