/*
Theme Name: Salatify Astra Child
Theme URI: http://localhost:8080/apps.salatify
Description: Astra Child Theme for Salatify — Forced Google & Firebase Login connected with the Salatify Android APK (com.mjlabs.salatify), powered by Vuexy Bootstrap 5 Admin GUI and Worldwide Islamic Date Scraper.
Author: MJ Labs (Salatify)
Template: astra
Version: 2.0.0
Text Domain: astra-child
*/

:root {
  --salatify-primary: #0D3D2A;
  --salatify-primary-dark: #0A2E1F;
  --salatify-emerald: #1B7552;
  --salatify-vuexy-primary: #286348;
  --salatify-vuexy-subtle: #E8F0EA;
  --salatify-gold: #D4AF37;
  --salatify-success: #28C76F;
  --salatify-danger: #EA5455;
  --salatify-warning: #FF9F43;
  --salatify-info: #00CFE8;
  --salatify-bg: #F6F7F4;
  --salatify-card-bg: #FFFFFF;
  --salatify-border: #D9DFD8;
  --salatify-splash-bg: #080E18;
  --bs-primary: #1B7552;
  --bs-primary-rgb: 27, 117, 82;
}

[data-bs-theme="dark"] {
  --salatify-bg: #151A17;
  --salatify-card-bg: #1E2621;
  --salatify-border: #2D3831;
  --salatify-vuexy-subtle: rgba(27, 117, 82, 0.2);
}

body.salatify-vuexy-body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--salatify-bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Override Vuexy Primary Accent to Salatify Emerald */
.btn-primary {
  background-color: var(--salatify-emerald) !important;
  border-color: var(--salatify-emerald) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--salatify-primary) !important;
  border-color: var(--salatify-primary) !important;
}
.text-primary {
  color: var(--salatify-emerald) !important;
}
.bg-label-primary {
  background-color: var(--salatify-vuexy-subtle) !important;
  color: var(--salatify-emerald) !important;
}
.bg-primary {
  background-color: var(--salatify-emerald) !important;
}
.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) {
  background: linear-gradient(72.47deg, #0D3D2A 22.16%, #1B7552 76.47%) !important;
  box-shadow: 0px 2px 6px 0px rgba(27, 117, 82, 0.48) !important;
  color: #fff !important;
}
.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) i,
.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) div {
  color: #fff !important;
}

/* Login Cover Styling (Matches Android LoginActivity + Vuexy Auth Cover) */
.salatify-auth-cover-left {
  position: relative;
  overflow: hidden;
  background-color: var(--salatify-splash-bg);
  min-height: 100vh;
}
.salatify-auth-cover-left img.mosque-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.88);
}
.salatify-auth-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 24, 0.35) 0%,
    rgba(13, 61, 42, 0.55) 55%,
    rgba(8, 14, 24, 0.94) 100%
  );
}
.salatify-auth-overlay-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

/* Google Sign-In Pill Button matching Android APK activity_login.xml */
.btn-google-apk {
  height: 52px;
  border-radius: 26px !important;
  background-color: #ffffff !important;
  color: #1F1F1F !important;
  border: 1px solid #747775 !important;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}
.btn-google-apk:hover {
  background-color: #f8f9fa !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 61, 42, 0.16);
}
.btn-facebook-apk {
  height: 50px;
  border-radius: 25px !important;
  background-color: #0866FF !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s ease;
}
.btn-facebook-apk:hover {
  background-color: #0652cc !important;
  color: #ffffff !important;
}

/* Dashboard Hero Prayer Banner (matches FirstFragment.kt) */
.salatify-hero-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  color: #fff;
  background-color: var(--salatify-primary);
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(13, 61, 42, 0.22);
}
.salatify-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 46, 31, 0.88) 0%, rgba(13, 61, 42, 0.68) 55%, rgba(8, 14, 24, 0.45) 100%);
}
.salatify-hero-banner > * {
  position: relative;
  z-index: 1;
}

/* Prayer Timing Cards */
.prayer-time-card {
  border: 1px solid var(--salatify-border);
  border-radius: 12px;
  transition: all 0.2s ease;
  background: var(--salatify-card-bg);
}
.prayer-time-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 61, 42, 0.1);
}
.prayer-time-card.active-prayer {
  border: 2px solid var(--salatify-emerald);
  background: var(--salatify-vuexy-subtle);
}

/* Qaza Month Status Pills & Matrix */
.qaza-month-cell {
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.qaza-month-cell:hover {
  transform: scale(1.05);
}
.qaza-status-COMPLETE {
  background-color: rgba(40, 199, 111, 0.18);
  color: #1f9d57;
  border-color: rgba(40, 199, 111, 0.4);
}
.qaza-status-PARTIAL {
  background-color: rgba(255, 159, 67, 0.18);
  color: #d97706;
  border-color: rgba(255, 159, 67, 0.4);
}
.qaza-status-INCOMPLETE {
  background-color: rgba(234, 84, 85, 0.14);
  color: #ea5455;
  border-color: rgba(234, 84, 85, 0.35);
}
.qaza-status-EMPTY {
  background-color: rgba(128, 131, 144, 0.1);
  color: #808390;
}

/* Qaza Daily Checkboxes */
.qaza-check-input {
  width: 1.35rem;
  height: 1.35rem;
  cursor: pointer;
}
.qaza-check-input:checked {
  background-color: #28C76F !important;
  border-color: #28C76F !important;
}

/* Arabic Typography */
.arabic-verse {
  font-family: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;
  font-size: 1.65rem;
  line-height: 2.3;
  direction: rtl;
}

/* Qibla Compass Visual */
.qibla-compass-dial {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 6px solid var(--salatify-emerald);
  background: radial-gradient(circle, var(--salatify-vuexy-subtle) 0%, var(--salatify-card-bg) 75%);
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 24px rgba(13, 61, 42, 0.15), 0 8px 24px rgba(13, 61, 42, 0.12);
}
.qibla-needle {
  width: 8px;
  height: 170px;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.qibla-needle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 85px solid var(--salatify-emerald);
}
.qibla-needle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -6px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 85px solid #cbd5e1;
}

/* View Section visibility */
.salatify-view-section {
  display: none;
}
.salatify-view-section.active {
  display: block;
  animation: salatifyFadeIn 0.22s ease-out;
}
@keyframes salatifyFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

