@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary-color: #2b5c8f;
  --primary-light: #467cb4;
  --primary-dark: #1a3c61;
  --accent-color: #d4a373;
  --accent-light: #e6ccb2;
  --text-dark: #202b38;
  --text-light: #ffffff;
  --text-muted: #627285;
  --bg-gradient: linear-gradient(135deg, #f0f4f8 0%, #e2ebf0 50%, #f6f0f8 100%);
  --surface-glass: rgba(255, 255, 255, 0.85);
  --surface-glass-dark: rgba(26, 42, 62, 0.95);
  --border-glass: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 4px 6px rgba(164, 189, 214, 0.15);
  --shadow-md: 0 10px 25px rgba(164, 189, 214, 0.25);
  --shadow-lg: 0 20px 40px rgba(164, 189, 214, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --success-color: #4a8f6d;
  --danger-color: #b85461;

  /* Form & Component Variables */
  --title-color: var(--primary-dark);
  --input-bg: #ffffff;
  --input-color: var(--text-dark);
  --input-border: rgba(98, 114, 133, 0.2);
  --modal-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.65);
}

html.dark-theme {
  --primary-color: #72a5db;
  --primary-light: #8ec3f8;
  --primary-dark: #1e3a5f;
  --accent-color: #e6b88a;
  --accent-light: #f5dcb3;
  --text-dark: #eef2f6;
  --text-light: #121820;
  --text-muted: #9bb0c9;
  --bg-gradient: linear-gradient(135deg, #0e1620 0%, #152232 50%, #1a1e2b 100%);
  --surface-glass: rgba(26, 38, 54, 0.75);
  --surface-glass-dark: rgba(10, 15, 25, 0.95);
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);

  /* Dark Theme Form & Component Overrides */
  --title-color: #ffffff;
  --input-bg: rgba(26, 38, 54, 0.85);
  --input-color: var(--text-dark);
  --input-border: rgba(255, 255, 255, 0.1);
  --modal-bg: #152232;
  --header-bg: rgba(14, 22, 32, 0.85);
}


/* Theme Toggle Button Styles */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: rgba(43, 92, 143, 0.15);
  transform: rotate(30deg);
}

html.dark-theme .theme-toggle-btn:hover {
  background: rgba(114, 165, 219, 0.15);
}

.theme-toggle-btn svg {
  transition: var(--transition-smooth);
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.3);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo svg {
  fill: var(--primary-color);
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
  background: #cbd8e5;
  color: #8fa0b3;
  border: 1px solid #cbd8e5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-light);
}

.btn-secondary:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--text-light);
}

.btn-outline:hover {
  background: white;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger-color);
  color: var(--text-light);
}

.btn-danger:hover {
  background: #a04652;
  transform: translateY(-2px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 20px;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1fba57;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-facebook {
  background: #1877F2;
  color: white;
}

.btn-facebook:hover {
  background: #145dbf;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  background: var(--surface-glass);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.user-trigger img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
}

.user-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  width: 200px;
  background: var(--modal-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-glass);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  z-index: 101;
}

.user-dropdown.show {
  display: flex;
}

.user-dropdown a, .user-dropdown button {
  text-align: left;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
}

.user-dropdown a:hover, .user-dropdown button:hover {
  background: rgba(114, 165, 219, 0.15);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* Main Section Card */
.glass-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Categories Section */
.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--title-color);
  margin-bottom: 2rem;
  text-align: center;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.chip {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-dark);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.chip:hover, .chip.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* Prayers Grid */
.prayers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-bottom: 4rem;
}

.prayer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.prayer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.prayer-category-tag {
  background: rgba(43, 92, 143, 0.1);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.fav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  padding: 0.2rem;
}

.fav-btn:hover, .fav-btn.active {
  color: #e63946;
  transform: scale(1.2);
}

.prayer-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--title-color);
  margin-bottom: 0.8rem;
}


.prayer-card-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Badge Marquee */
.badge-marquee-container {
  margin: 4rem 0;
  overflow: hidden;
}

.marquee-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.badge-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem 0;
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: white;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  margin-right: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.02);
}

.marquee-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

.marquee-name {
  font-weight: 600;
  color: var(--primary-dark);
}

.marquee-points {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 700;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 3rem 0;
  margin-top: 5rem;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-copyright {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 42, 62, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: var(--modal-bg);
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: modalEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-glass);
}

@keyframes modalEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--title-color);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--input-bg);
  color: var(--input-color);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(43, 92, 143, 0.15);
}

.form-error {
  color: var(--danger-color);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.form-footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

/* Custom Checkbox grid for Favorite Category Selector */
.categories-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.category-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f4f8;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.category-checkbox-label:hover {
  background: #e2ebf5;
}

.category-checkbox-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.category-checkbox-label.checked {
  background: rgba(43, 92, 143, 0.1);
  border-color: var(--primary-color);
}

/* Welcome Overlay / Maintenance Page */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--surface-glass-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 2rem;
  text-align: center;
}

.fullscreen-overlay h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.fullscreen-overlay p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* USER DASHBOARD PAGE STYLES */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media(min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.dashboard-section {
  margin-bottom: 2rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header-row h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--title-color);
}

/* Search Bar */
.search-container {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  border-radius: 30px;
  border: 1px solid var(--input-border);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  font-family: var(--font-sans);
  background: var(--input-bg);
  color: var(--input-color);
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Sidebar Info Card */
.profile-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-light);
  font-family: var(--font-serif);
  font-weight: bold;
  border: 3px solid var(--modal-bg);
  box-shadow: var(--shadow-md);
}

.points-display {
  background: rgba(212, 163, 115, 0.1);
  color: var(--title-color);
  border: 1px solid var(--accent-color);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}

.badge-display {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: -0.5rem;
}

/* Progress toward badges */
.progress-container {
  width: 100%;
  margin: 1.5rem 0;
  text-align: left;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
  width: 0%;
  transition: width 0.8s ease;
}

.badge-locks {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  width: 100%;
}

.lock-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.02);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

/* Tabs for Profile / Password Settings */
.tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.tab.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Message List */
.msg-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg-item {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  padding: 1rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition-smooth);
}

.msg-item.unread {
  border-left: 4px solid var(--primary-color);
  background: rgba(43, 92, 143, 0.05);
}

html.dark-theme .msg-item.unread {
  background: rgba(114, 165, 219, 0.05);
}

.msg-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.msg-sender {
  font-weight: 600;
  color: var(--primary-color);
}

.msg-date {
  color: var(--text-muted);
}

.msg-subject {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.msg-body {
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.9;
}

.msg-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-weight: bold;
}

/* PRAYER PLAYER PAGE STYLES */
.player-container {
  max-width: 700px;
  margin: 3rem auto;
  text-align: center;
}

.player-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  position: relative;
  margin-bottom: 2rem;
}

.slide-text {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.5;
  color: var(--title-color);
  margin-bottom: 2rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideFadeIn 0.5s ease-out;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.player-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
}

.player-timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.countdown-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 4px solid var(--accent-light);
  border-top-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color);
  transition: transform 0.2s;
}

.countdown-ring.active {
  animation: spinRing 1s linear infinite;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.slide-indicators {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dee2e6;
  transition: var(--transition-smooth);
}

.indicator-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

.indicator-dot.completed {
  background: var(--primary-light);
}

/* Success Celebration in Player */
.celebration-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem;
  animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.celebration-icon {
  font-size: 4rem;
}

/* ADMIN PANEL STYLES */
.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media(min-width: 800px) {
  .admin-layout {
    grid-template-columns: 240px 1fr;
  }
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.2rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: var(--primary-color);
  color: white;
}

.admin-content-panel {
  display: none;
}

.admin-content-panel.active {
  display: block;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.admin-table th, .admin-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-table th {
  background: rgba(0,0,0,0.02);
  font-weight: 600;
}

.admin-table tr:hover {
  background: rgba(0,0,0,0.01);
}

.badge-role {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.75rem;
}

.badge-role.admin {
  background: #fff3cd;
  color: #856404;
}

.badge-role.user {
  background: #e2e3e5;
  color: #383d41;
}

.badge-status {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.75rem;
}

.badge-status.active {
  background: #d4edda;
  color: #155724;
}

.badge-status.suspended {
  background: #f8d7da;
  color: #721c24;
}

/* Slides management interface in admin */
.slides-builder {
  border: 1px solid #dee2e6;
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: #f8f9fa;
  margin-bottom: 1rem;
}

.slide-builder-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  background: white;
  padding: 0.8rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.slide-number {
  background: var(--primary-light);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 6px;
}

.slide-builder-text {
  flex-grow: 1;
}

/* Toast Messages */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 10000;
  display: none;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.3s ease-out;
}

.toast.show {
  display: flex;
}

.toast.success {
  background: var(--success-color);
}

.toast.error {
  background: var(--danger-color);
}

@keyframes slideIn {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* WYSIWYG / Editor styling */
.editor-textarea {
  min-height: 200px;
  font-family: monospace;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .header-container {
    height: auto;
    padding: 1rem 0;
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .prayers-grid {
    grid-template-columns: 1fr;
  }
  .categories-select-grid {
    grid-template-columns: 1fr;
  }
}

/* OTP/PIN multi-box input styles */
.pin-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.6rem 0;
}

.pin-box {
  width: 52px;
  height: 52px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  transition: var(--transition-smooth);
  color: var(--input-color);
}

.pin-box:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(43, 92, 143, 0.2);
  background: rgba(114, 165, 219, 0.05);
  transform: scale(1.05);
}

.read-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(74, 143, 109, 0.1);
  color: #4a8f6d;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Dark Mode specific overrides */
html.dark-theme .badge-marquee {
  background: rgba(255, 255, 255, 0.03);
}
html.dark-theme .marquee-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
}
html.dark-theme .prayer-category-tag {
  background: rgba(114, 165, 219, 0.15);
  color: var(--primary-light);
}


