
/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #111;
  direction: rtl; /* Default to RTL for Arabic */
}

/* LTR support for English */
body[dir="ltr"] {
  direction: ltr;
}

/* Loader */
.preloader {
  position: fixed;
  inline-size: 100%;
  block-size: 100%;
  background: #fff;
  display: grid;
  place-items: center;
  z-index: 9999;
  color: #111;
}

.preloader-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
  color: #111;
}

.theme-dark .preloader {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #FFF;
}

/* Removed stray properties outside selectors */

.preloader-logo {
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  border-radius: 20px;
}

.spinner-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.beautiful-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 0, 0, 0.3);
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.beautiful-spinner::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  animation: spin 2s linear infinite reverse;
}

.beautiful-spinner::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top: 2px solid #000;
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
}

.loading-text {
  color: #000;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: textPulse 2s ease-in-out infinite;
  text-align: center;
  max-width: 280px;
  line-height: 1.4;
}

.theme-dark .loading-text {
  color: #fff;
}

.permission-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.permission-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-width: 200px;
}

.permission-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.permission-btn:active {
  transform: translateY(0);
}

.skip-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

.skip-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
/* Header */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  background-color: #fff;
  box-shadow: 0px 6px 12px -3px rgba(4, 97, 165, 0.1);
}
.theme-dark .header {
  background-color: #222;
  color: #FFF;
}
.theme-dark .header-icon {
    filter: invert(1);
}
.header-container {
  max-inline-size: 1290px;
  margin-inline: auto;
  padding: 0.9rem 1.6rem;
  border-radius: 0 0 0.625rem 0.625rem;
}
.header-top-line {
  padding: 0.1rem;
}
.header-top-line-next {
  padding: 0.8rem;
  height: 0.5px;
  border-bottom: 1px solid #F5F5F5;
}

.theme-dark .header-top-line-next {
  border-color: #F5F5F550;
}

.header .logo {
  max-block-size: 2.315rem;
}
@media (max-width: 1024px) {
  .header {
    display: none;
  }
}
.placeholder {
  block-size: 0.825rem;
  inline-size: 3rem;
  background-color: #F5F5F5;
  border-radius: 0.3rem;
}
.theme-dark .placeholder {
  background-color: #555;
}
.placeholder-wide {
  inline-size: 12rem;
}
/* Common Classes */
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-between {
  justify-content: space-between;
}
.flex-column {
  flex-direction: column;
}
.text-center {
  text-align: center;
}
.gap-3 {
  gap: 1rem;
}
.gap-4 {
  gap: 1.5rem;
}
.gap-5 {
  gap: 3rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes textPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes animloader {
  0% {
    left: 0;
    transform: translateX(-100%);
  }
  100% {
    left: 100%;
    transform: translateX(0%);
  }
}

@keyframes animloaderimg {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
  100% {
    transform: translateY(0);
  }
}