html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Vazirmatn Font for Persian */
body, html {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .container-fluid {
  flex: 1 0 auto;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Footer Styles */
.footer {
  padding: 24px 0;
  background: #f8f9fa;
}

/* Footer Logo */
.footer-logo {
  margin-bottom: 16px;
}

.footer-logo-img {
  max-width: 120px;
  height: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logo-img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Footer Mission Statement */
.footer-mission {
  margin-bottom: 16px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(29, 161, 242, 0.08) 0%, rgba(26, 26, 46, 0.05) 100%);
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-mission p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #2c3e50;
}

.footer-mission a {
  color: #1da1f2;
  text-decoration: none;
  font-weight: 500;
}

.footer-mission a:hover {
  text-decoration: underline;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-brand {
  font-weight: 500;
  color: #1a1a2e;
}

.footer-divider {
  color: #c1c9d0;
}

.footer-cookie {
  color: #5a6c7d;
}

/* Footer Network Info */
.footer-network-info {
  margin: 16px auto;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.06) 0%, rgba(200, 35, 51, 0.04) 100%);
  border: 1px solid rgba(220, 53, 69, 0.15);
  border-radius: 8px;
  max-width: 700px;
}

.footer-network-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #5a6c7d;
  text-align: justify;
}

.footer-network-info a {
  color: #dc3545;
  text-decoration: none;
  font-weight: 500;
}

.footer-network-info a:hover {
  text-decoration: underline;
}

html[dir="ltr"] .footer-network-info p {
  direction: ltr;
}

html[dir="rtl"] .footer-network-info p {
  direction: rtl;
}

/* Language Switcher */
.language-switcher-container {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
}

html[dir="rtl"] .language-switcher-container {
  left: auto;
  right: 16px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  border: 1px solid #e8ecef;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.lang-btn:active {
  transform: translateY(0);
}

.lang-icon {
  font-size: 18px;
}

.lang-text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* RTL/LTR Support */
html[dir="ltr"] body {
  direction: ltr;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="ltr"] .footer-cookie {
  direction: ltr;
}

html[dir="rtl"] .footer-cookie {
  direction: rtl;
}

/* Footer Memorial */
.footer-memorial {
  margin-top: 8px;
  font-size: 12px;
  color: #6c757d;
}

.footer-memorial a {
  color: #1da1f2;
  text-decoration: none;
}

.footer-memorial a:hover {
  text-decoration: underline;
}