/* فونت ساحل - یکپارچه در کل سایت */
@import url('fonts/sahel/font-face.css');

:root {
  --font-family-base: "Sahel", "Tahoma", "Arial", sans-serif;
  --color-turquoise-50: #ecfeff;
  --color-turquoise-100: #cffafe;
  --color-turquoise-200: #a5f3fc;
  --color-turquoise-500: #06b6d4;
  --color-turquoise-600: #0891b2;
  --color-turquoise-700: #0e7490;
  --color-turquoise-800: #155e75;
  --color-turquoise-900: #164e63;
  --color-persian-turquoise: #008b8b;
}

html,
body,
body *,
input,
textarea,
select,
button,
a,
span,
div,
p,
h1, h2, h3, h4, h5, h6,
label {
  font-family: var(--font-family-base);
}

/* Navigation Links */
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-link:hover {
  background: var(--color-turquoise-50);
  border-color: var(--color-turquoise-200);
  color: var(--color-turquoise-800);
  transform: translateY(-1px);
}
.nav-link.active {
  background: var(--color-turquoise-600);
  border-color: var(--color-turquoise-700);
  color: #ffffff;
}

/* Alert Styles */
.success-alert {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #115e59;
}
.error-alert {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.info-alert {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #155e75;
}

/* Form Styles */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}
.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  padding: 0.75rem 1rem;
  background: #fff;
  font-size: 1rem;
  transition: all 0.15s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-turquoise-600);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}
.form-input::placeholder {
  color: #94a3b8;
}

/* Primary Button with Turquoise Theme */
.btn-turquoise {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  color: #ffffff;
  border-radius: 0.75rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-turquoise:hover {
  background: linear-gradient(135deg, #155e75 0%, #0e7490 100%);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.35);
  transform: translateY(-1px);
}

/* Card Styles */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: #cbd5e1;
}

/* Alpine.js Collapse Animation */
[x-cloak] {
  display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile Touch Improvements */
@media (max-width: 640px) {
  .form-input {
    font-size: 16px; /* Prevent iOS zoom on focus */
    padding: 1rem;
  }
  
  button, a {
    -webkit-tap-highlight-color: transparent;
  }
}

/* RTL Support */
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] .dir-ltr {
  direction: ltr;
  text-align: left;
}

/* Progress Bar Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Checkbox/Radio custom styling */
input[type="checkbox"],
input[type="radio"] {
  accent-color: #6366f1;
}

/* Has selector support for modern browsers */
@supports selector(:has(*)) {
  .has-\[\:checked\]\:border-indigo-600:has(:checked) {
    border-color: #4f46e5;
  }
  .has-\[\:checked\]\:bg-indigo-50:has(:checked) {
    background-color: #eef2ff;
  }
}

/* Modal Backdrop */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth transitions */
* {
  scroll-behavior: smooth;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Button active state */
button:active:not(:disabled),
a:active {
  transform: scale(0.98);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==========================================================================
   Accessibility & Elderly Friendly Modes (ویژه سالمندان و کم‌بینایان)
   ========================================================================== */
html.font-size-lg {
  font-size: 18px !important;
}
html.font-size-xl {
  font-size: 21px !important;
}
html.high-contrast-mode {
  filter: contrast(115%);
}
html.high-contrast-mode body {
  background-color: #ffffff !important;
  color: #000000 !important;
}
html.high-contrast-mode .card,
html.high-contrast-mode .bg-white {
  border: 2px solid #1e293b !important;
}
html.high-contrast-mode a {
  text-decoration: underline;
  font-weight: 700;
}

/* هایلایت زنده وعده اذان جاری/بعدی - تم فیروزه‌ای */
.active-prayer-pill {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px #22d3ee, 0 4px 12px rgba(8, 145, 178, 0.35) !important;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}
