/* Ashara Mubaraka 1448H — dark navy + gold theme */
:root {
  --ashara-navy: #1a1a2e;
  --ashara-navy-mid: #16213e;
  --ashara-navy-deep: #0f3460;
  --ashara-gold: #f5c542;
  --ashara-gold-hover: #ffd75f;
  --ashara-text: #ffffff;
  --ashara-muted: #c8d0e0;
  --ashara-glass: rgba(255, 255, 255, 0.1);
  --ashara-glass-border: rgba(255, 255, 255, 0.2);
}

body.ashara-body {
  background: linear-gradient(135deg, var(--ashara-navy), var(--ashara-navy-mid), var(--ashara-navy-deep));
  min-height: 100vh;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--ashara-text);
}

@keyframes ashara-portal-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* LA Jamaat Events portal background — https://events.lajamaat.com/ */
body.ashara-body-form,
body.ashara-body.ashara-login-wrap {
  padding: 2rem 0;
  color: #1e293b;
  background: linear-gradient(130deg, #f0e7ff, #e0f7fa, #fdf2f8, #ecfdf5);
  background-size: 220% 220%;
  animation: ashara-portal-gradient 20s ease infinite;
}

.ashara-bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("https://events.lajamaat.com/assets/photo-footer-complex.png");
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply;
  z-index: 0;
}

body.ashara-body-form .container,
body.ashara-login-wrap .ashara-login-card {
  position: relative;
  z-index: 1;
}

body.ashara-body-form .ashara-card,
body.ashara-login-wrap .ashara-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 28px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.ashara-body-form .ashara-card-header,
body.ashara-login-wrap .ashara-card-header {
  background: linear-gradient(135deg, var(--ashara-navy), var(--ashara-navy-mid), var(--ashara-navy-deep));
  border-bottom: 3px solid var(--ashara-gold);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 575.98px) {
  body.ashara-body-form,
  body.ashara-body.ashara-login-wrap {
    padding: 0.75rem 0 1rem;
  }

  body.ashara-body-form .ashara-card-header,
  body.ashara-login-wrap .ashara-card-header {
    padding: 1.15rem 1rem 1rem;
  }

  body.ashara-body-form .ashara-page-title,
  body.ashara-login-wrap .ashara-page-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  body.ashara-body-form .ashara-subtitle,
  body.ashara-login-wrap .ashara-subtitle {
    font-size: 0.85rem;
    margin-top: 0.55rem;
  }
}

body.ashara-body-form .ashara-card-header h1,
body.ashara-login-wrap .ashara-card-header h1 {
  color: #fff;
}

body.ashara-body-form .ashara-subtitle,
body.ashara-login-wrap .ashara-subtitle {
  color: var(--ashara-muted);
  margin-top: 0.85rem;
}

.ashara-page-title {
  margin-bottom: 0;
}

.ashara-title-ashara {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ashara-gold);
  opacity: 0.92;
}

.ashara-title-relay {
  display: block;
  margin: 0.55rem 0 0.35rem;
  font-size: clamp(1.45rem, 5.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.ashara-title-sub {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(245, 197, 66, 0.95);
  letter-spacing: 0.02em;
}

body.ashara-body-form .ashara-form-label,
body.ashara-login-wrap .ashara-form-label {
  color: #1e293b;
  text-shadow: none;
}

body.ashara-body-form .form-control,
body.ashara-body-form .form-select,
body.ashara-login-wrap .form-control {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #1e293b;
}

body.ashara-body-form .form-select option {
  background: #fff;
  color: #1e293b;
}

body.ashara-body-form .form-control::placeholder,
body.ashara-login-wrap .form-control::placeholder {
  color: #94a3b8;
}

body.ashara-body-form .form-control:focus,
body.ashara-login-wrap .form-control:focus {
  background: #fff;
  border-color: var(--ashara-gold);
  box-shadow: 0 0 0 0.2rem rgba(245, 197, 66, 0.35);
  color: #1e293b;
}

body.ashara-body-form .ashara-section-day {
  background: rgba(254, 243, 199, 0.55);
  border: 1px solid rgba(245, 197, 66, 0.45);
}

body.ashara-body-form .ashara-section-night {
  background: rgba(224, 231, 255, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

body.ashara-body-form .ashara-section-day .form-check-label,
body.ashara-body-form .ashara-section-night .form-check-label {
  color: #1e293b;
}

body.ashara-body-form .ashara-lookup-status {
  color: #64748b;
}

.ashara-card {
  background: var(--ashara-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ashara-glass-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.ashara-card-header {
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--ashara-glass-border);
  background: rgba(0, 0, 0, 0.15);
}

.ashara-card-header h1,
.ashara-card-header h3 {
  color: var(--ashara-gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ashara-card-header p,
.ashara-subtitle {
  color: var(--ashara-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.ashara-form-label {
  color: var(--ashara-text);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.ashara-form-label.required::after {
  content: " *";
  color: #ff8a8a;
}

.ashara-form-control,
.ashara-body .form-control,
.ashara-body .form-select {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--ashara-text);
  border-radius: 10px;
}

.ashara-form-control::placeholder,
.ashara-body .form-control::placeholder {
  color: #b8c4d8;
}

.ashara-body .form-control:focus,
.ashara-body .form-select:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--ashara-gold);
  box-shadow: 0 0 8px 2px rgba(245, 197, 66, 0.35);
  color: var(--ashara-text);
}

.ashara-section-day {
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.ashara-section-night {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.ashara-section-day .form-check-label,
.ashara-section-night .form-check-label {
  color: var(--ashara-text);
}

.ashara-btn {
  background: var(--ashara-gold);
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  transition: 0.25s ease;
}

.ashara-btn:hover {
  background: var(--ashara-gold-hover);
  color: #000;
  transform: scale(1.02);
}

.ashara-lookup-status {
  font-size: 0.875rem;
  min-height: 1.25rem;
  color: var(--ashara-muted);
}

.ashara-navbar {
  background: linear-gradient(135deg, var(--ashara-navy), var(--ashara-navy-deep)) !important;
  border-bottom: 2px solid var(--ashara-gold);
}

.ashara-navbar .navbar-brand {
  color: var(--ashara-gold) !important;
}

.ashara-navbar .nav-link {
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.ashara-navbar .nav-link.active {
  background: rgba(245, 197, 66, 0.16);
  color: var(--ashara-gold) !important;
}

.ashara-dashboard {
  background: linear-gradient(160deg, #eef1f8 0%, #e8ecf4 100%);
  min-height: 100vh;
}

.ashara-stat-card {
  border: none;
  border-radius: 0.85rem;
  box-shadow: 0 0.25rem 0.75rem rgba(26, 26, 46, 0.1);
}

.ashara-stat-total {
  background: linear-gradient(135deg, var(--ashara-navy-mid), var(--ashara-navy-deep));
  color: #fff;
}

.ashara-stat-total .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.ashara-stat-day {
  background: linear-gradient(135deg, #fff8e6, #fff3cc);
  border-left: 4px solid var(--ashara-gold);
}

.ashara-stat-night {
  background: linear-gradient(135deg, #e8edf5, #dce4f0);
  border-left: 4px solid var(--ashara-navy-deep);
}

.ashara-stat-users {
  background: linear-gradient(135deg, #f0f4fa, #e6ecf6);
  border-left: 4px solid var(--ashara-navy-mid);
}

.ashara-table-card .card-header {
  background: var(--ashara-navy);
  color: var(--ashara-gold);
}

.ashara-table-card .nav-tabs {
  border-bottom: none;
}

.ashara-table-card .nav-link {
  color: rgba(255, 255, 255, 0.7);
  border: none;
}

.ashara-table-card .nav-link.active {
  background: transparent;
  color: var(--ashara-gold);
  font-weight: 600;
  border-bottom: 2px solid var(--ashara-gold);
}

.ashara-table-card .table thead {
  background: var(--ashara-navy-mid);
  color: #fff;
}

.ashara-badge-yes {
  background: #2d6a4f;
}

.ashara-badge-no {
  background: #8b4557;
}

.ashara-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.ashara-login-card {
  width: 100%;
  max-width: 400px;
}
