/**
 * Bangladesh Prayer Times - Stylesheet
 * Author: Al Amin Ahmad
 */

:root {
  --bpt-primary: #047857;
  --bpt-primary-dark: #064e3b;
  --bpt-gold: #d97706;
  --bpt-gold-light: #fef3c7;
  --bpt-bg: #ffffff;
  --bpt-text: #1e293b;
  --bpt-muted: #64748b;
  --bpt-border: #e2e8f0;
  --bpt-highlight: #ecfdf5;
}

.bpt-widget-container {
  background: var(--bpt-bg);
  border: 1px solid var(--bpt-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  font-family: 'Hind Siliguri', 'Segoe UI', system-ui, sans-serif;
  color: var(--bpt-text);
  width: 100%;
  max-width: 100%;
  min-height: 250px;
  height: auto;
  box-sizing: border-box;
  margin: 0 auto 20px auto;
}

.bpt-header {
  background: linear-gradient(135deg, var(--bpt-primary-dark) 0%, var(--bpt-primary) 100%);
  color: #ffffff;
  padding: 16px 18px;
}

.bpt-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.bpt-widget-container .bpt-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff !important;
}

.bpt-location-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.bpt-cd-bar,
.bpt-countdown-banner {
  background: #f0fdf4;
  border-bottom: 1px solid var(--bpt-border);
  padding: 6px 8px;
  text-align: center;
}

.bpt-cd-single,
.bpt-countdown-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 3px;
  white-space: nowrap;
  font-size: clamp(10px, 2.5vw, 11.5px);
  line-height: 1.25;
  overflow-x: auto;
  scrollbar-width: none;
}

.bpt-cd-single::-webkit-scrollbar,
.bpt-countdown-inline::-webkit-scrollbar {
  display: none;
}

.bpt-cd-title {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: inherit;
  color: var(--bpt-muted);
  margin: 0;
}

.bpt-cd-title strong {
  color: var(--bpt-primary);
  font-weight: 700;
}

.bpt-next-prayer-time {
  font-weight: 700;
  color: var(--bpt-text);
  font-variant-numeric: tabular-nums;
}

.bpt-cd-units {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
}

.bpt-cd-unit {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 2px;
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 4px;
  padding: 1px 4px;
  min-width: auto;
}

.bpt-cd-val {
  font-size: inherit;
  font-weight: 700;
  color: var(--bpt-primary);
  font-variant-numeric: tabular-nums;
}

.bpt-cd-lbl {
  font-size: 0.92em;
  color: var(--bpt-muted);
}

.bpt-cd-colon {
  font-size: inherit;
  font-weight: 700;
  color: var(--bpt-primary);
}

.bpt-prayers-list {
  padding: 8px 12px;
}

.bpt-prayer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.bpt-prayer-row:hover {
  background: #f8fafc;
}

.bpt-prayer-row.bpt-active-next {
  background: var(--bpt-highlight);
  border-left: 3px solid var(--bpt-primary);
  font-weight: 600;
}

.bpt-prayer-row.bpt-active-now {
  background: #fef3c7;
  border-left: 3px solid var(--bpt-gold);
  font-weight: 700;
}

.bpt-prayer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bpt-prayer-icon {
  font-size: 15px;
}

.bpt-prayer-name {
  font-size: 14px;
}

.bpt-prayer-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--bpt-text);
}

.bpt-additional-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #f8fafc;
  border-top: 1px solid var(--bpt-border);
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
}

.bpt-add-item {
  display: flex;
  flex-direction: column;
}

.bpt-add-label {
  color: var(--bpt-muted);
  font-size: 11px;
}

.bpt-add-val {
  font-weight: 700;
  color: var(--bpt-text);
  margin-top: 2px;
}

.bpt-add-item.highlight-iftar .bpt-add-val {
  color: var(--bpt-primary);
}

.bpt-widget-footer {
  padding: 8px 12px;
  background: #ffffff;
  border-top: 1px solid var(--bpt-border);
  font-size: 10px;
  color: var(--bpt-muted);
  text-align: center;
}
