/* Styles for Noorplay website */

/* Base transitions */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
:root {
  --orange-gradient: linear-gradient(180deg, #ff823d 0%, #ff5b00 100%);
  --blue-gradient: linear-gradient(180deg, #00cbd0 0%, #0ca4a8 100%);
  --purple-gradient: linear-gradient(180deg, #c080f4 0%, #a059da 100%);
  --button: linear-gradient(180deg, #ffffff 0%, #e7e7e7 100%);
  --progress: linear-gradient(135deg, #ff8d4e 0%, #cf22cf 50.17%, #ff5b00 100%);
  --primary: #e77f26;
}
/* @font-face {
  font-family: "Tajawal";
  font-display: swap;
  font-weight: 400;
  src: local("Tajawal");
}

@font-face {
  font-family: "Tajawal";
  font-display: swap;
  font-weight: 500;
  src: local("Tajawal Medium");
}

@font-face {
  font-family: "Tajawal";
  font-display: swap;
  font-weight: 700;
  src: local("Tajawal Bold");
} */
/* Animations */
html[dir="rtl"] body {
  font-family: "Tajawal", sans-serif;
}
body {
  /* background: rgb(0, 0, 98); */

  /* background: url("bg-blue.jpg");
  background-size: cover; */
  /* background: linear-gradient(
    180deg,
    rgba(2, 0, 36, 1) 0%,
    rgba(9, 9, 121, 1) 61%
  ); */
  /* background: linear-gradient(180deg, #b2f9ff 0%, #d5f1fe 61%); */
  /* background: #078fcc; */
  background: url("images/gym-bg.jpg");
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
}
.formContainer {
  color: #ffffff;
}

.white-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
}
.theme-icon {
  color: #e77f26;
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.cloud-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}
a {
  color: #e77f26 !important;
}
/* Device icons hover effects */
.device-icon {
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* #responseMessage,
#pinResponseMessage, */
/* #form-title {
  color: #ffffff !important;
} */
.error {
  color: #ff5b00;
}
.success {
  color: #008404;
}
.device-icon:hover {
  transform: translateY(-5px) !important;
  filter: brightness(1.1);
}

/* Background patterns */
.dots-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: radial-gradient(var 1px, transparent 1px),
    radial-gradient(var(--primary) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

/* Form focus effects */
#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Button hover effects */
button[type="submit"] {
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(99, 102, 241, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}
.theme-btn {
  background: #e77f26;
  color: #ffffff;
  text-transform: uppercase;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .device-icons-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .dots-pattern {
    background-size: 15px 15px;
  }
}

/* Print styles */
@media print {
  .cloud-animation,
  .device-icons-container,
  .dots-pattern {
    display: none;
  }
}

/* Custom background and theme colors - removed hardcoded background */
body {
  /* Background color now controlled by theme classes */
  color: #e2e8f0;
}

/* This class is now replaced with theme-based gradients */

/* language switcher */
/* Basic dropdown wrapper */
.dropdown.lang-swticher {
  position: relative;
  display: inline-block;
  text-align: right;
}

/* Button styling */
.lang-swticher .dropdown-button {
  background-color: #ffffff; /* Tailwind 'blue-500' */
  color: #000000;
  padding: 6px 18px 6px 6px;
  font-size: 12px;
  text-align: center;
  /* border: none; */
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  min-width: 80px;
  outline: 2px solid var(--primary);
}
.w-100 {
  width: 100%;
}

/* Dropdown content */
.lang-swticher .dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* below the button */
  left: 0;
  min-width: 100%;
  background-color: white;
  border: 1px solid #e2e8f0; /* Tailwind 'gray-200' */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  text-align: center;
  overflow: hidden;
}

/* Individual language links */
.lang-swticher .dropdown-content a {
  color: #000000; /* Tailwind 'gray-800' */
  padding: 2px 12px;
  text-decoration: none;
  font-size: 13px;
  display: block;
  white-space: nowrap;
}

/* Hover effect */
.lang-swticher .dropdown-content a:hover {
  background-color: var(--primary);
  color: #ffffff !important;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.container {
  max-width: 28rem;
  margin: 0 auto;
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-reverse {
  flex-direction: row-reverse;
}

.rounded-full {
  border-radius: 9999px;
}

.bg-white {
  background-color: white;
}

.text-white {
  color: white;
}

.font-bold {
  font-weight: 700;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.p-4 {
  padding: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-gray-700 {
  color: #374151;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.transform {
  transform: translateZ(0);
}

.rotate-12 {
  transform: rotate(12deg);
}

.-rotate-12 {
  transform: rotate(-12deg);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.min-h-screen {
  min-height: 100vh;
}

.relative {
  position: relative;
}

.hidden {
  display: none;
}

.max-w-md {
  max-width: 33rem !important;
}

.down-arrow {
  display: inline-block;
  position: relative;
  width: 0;
  height: 8px;
}

.down-arrow::after {
  content: "";
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #666666;
  position: absolute;
  top: 0;
  left: 2px;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 1rem;
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
}

/* Logo container styles */
.logo-container {
  height: auto;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* legal-content */
.legal-content p {
  margin-bottom: 10px;
}

/* legal-content */
/* Prevent content shift */
.container {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* RTL support */
html[dir="rtl"] .space-x-4 > * + * {
  margin-right: 1rem;
  margin-left: 0;
}

/* Icon container styles */
.icon-container {
  width: 96px;
  height: 96px;
  margin: 0 auto;
}

.icon-container > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container svg {
  width: 48px;
  height: 48px;
}

/* Critical form styles */
#phoneInputContainer {
  display: flex;
  align-items: center;
  border: 2px solid;
  border-radius: 9999px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.phone-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  color: #374151;
}
.dialcode {
  margin-right: -2px;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.legal_text {
  color: #ffffff;
}
ul.legal_text {
  list-style-type: disc !important;
  padding-inline-start: 1.5em;
  margin-left: 0;
  display: block;
}
ul.legal_text li {
  margin: 0 !important;
  font-size: 10px;
}
.pages-content {
  background: #ffffff;
  padding: 10px;
}
.pages-content p,
strong,
ul,
h2 {
  color: #666666;
  font-weight: 200;
}
.pages-container {
  max-width: 1170px;
  width: 100%;
  margin: auto;
}
.pages-content strong {
  font-size: 14px;
  font-weight: 600;
}
.pages-content p,
ul {
  font-size: 12px;
}

@media screen and (max-width: 480px) {
  .logo-container {
    width: 118px;
  }
  #form-title {
    font-size: 13px;
  }
  .text-custom {
    font-size: 10px !important;
  }
  .dropdown.lang-swticher {
    margin-top: -3px;
  }
}
