/* Root Variables */
:root {
  /* Dark Mode Colors (Default) */
  --bg-primary: #171a1c;
  --bg-secondary: #1e2224;
  --bg-input: #171a1c;
  --border-soft: #2b303b;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-input: #e5e7eb;
  --accent-cyan: #5dd9ff;
  --error: #ef4444;
  --success: #10b981;
  --search-bg: #131517;
}

/* Light Mode (for future use) */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-input: #ffffff;
  --border-soft: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-input: #6b7280;
  --accent-cyan: #0ea5e9;
  --error: #ef4444;
  --success: #10b981;
}

/* Custom Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
} */

input:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Dropdown Hover Fix */
.group:hover .group-hover\:opacity-100 {
  opacity: 1 !important;
}

.group:hover .group-hover\:visible {
  visibility: visible !important;
}

/* Header Overflow Fix for Dropdowns */
header {
  overflow: visible !important;
}

header > div {
  overflow: visible !important;
}

nav {
  overflow: visible !important;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #171a1c 0%, #171a1c 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background: radial-gradient(
    ellipse at top right,
    rgb(255 255 255 / 14%) 0%,
    rgb(255 255 255 / 9%) 25%,
    rgb(255 255 255 / 5%) 50%,
    #ffffff00 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Header Styles */
header {
  /* backdrop-filter: blur(10px); */
  /* background-color: rgba(23, 26, 28, 0.95); */
  transition: transform 0.3s ease-in-out;
}

header.header-hidden {
  transform: translateY(-100%);
}

/* Mobile Menu Styles */
.translate-x-full {
  transform: translateX(100%) !important;
}

.translate-x-0 {
  transform: translateX(0) !important;
}

/* Form Transitions */
.form-container {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Indicators */
.step-box {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.step-box.active {
  box-shadow: 0 0 20px rgba(93, 217, 255, 0.5);
}

.step-box.completed {
  background-color: #1e3a8a !important;
}

/* Step Content Animations */
.step-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.step-content.hidden {
  display: none !important;
}

.step-content:not(.hidden) {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  display: block;
}

/* Slide animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

.step-content.slide-in-right {
  animation: slideInRight 0.4s ease-out forwards;
}

.step-content.slide-in-left {
  animation: slideInLeft 0.4s ease-out forwards;
}

.step-content.slide-out-left {
  animation: slideOutLeft 0.3s ease-in forwards;
}

.step-content.slide-out-right {
  animation: slideOutRight 0.3s ease-in forwards;
}

/* Select Dropdown - Remove default arrow */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Input Focus Effects */
input:focus,
select:focus {
  transform: none;
}

/* Custom Select Arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Button Hover Effects */
button {
  transition: all 0.3s ease;
}

button:active {
  transform: scale(0.98);
}

/* Language Dropdown Animation */
#languageDropdown,
#mobileLanguageDropdown {
  transition: all 0.3s ease;
  transform-origin: top;
}

#languageDropdown.hidden,
#mobileLanguageDropdown.hidden {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
}

#languageDropdown:not(.hidden),
#mobileLanguageDropdown:not(.hidden) {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dashboard Image Hover Animation */
.dashboard-image-container {
  position: relative;
  overflow: hidden;
}

.dashboard-image-container img {
  transition: transform 0.6s ease, filter 0.4s ease;
}

.dashboard-image-container:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.dashboard-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(93, 217, 255, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dashboard-image-container:hover::after {
  opacity: 1;
}

/* Custom Checkbox */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
}

.custom-checkbox:checked {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.custom-checkbox:hover {
  border-color: var(--accent-cyan);
}

.custom-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(93, 217, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hidden.lg\:flex {
    display: none !important;
  }
}

@media (max-width: 768px) {
  header .flex.items-center.space-x-6 {
    gap: 1rem;
  }

  header .flex.items-center.space-x-6 span {
    display: none;
  }
}

/* Loading Spinner (for future use) */
.spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #6366f1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #2a2a2a;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 1000;
  border: 1px solid #404040;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid #5dd9ff;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

/* Password Toggle Button */
.password-toggle {
  cursor: pointer;
  user-select: none;
}

/* Input, Select, Textarea Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select,
textarea {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border-soft);
  color: var(--text-input) !important;
  border-radius: 13px !important;
  /* padding: 12px 6px 6px 6px !important; */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  background-color: var(--bg-input) !important;
  /* border: 2px solid var(--accent-cyan) !important; */
  color: var(--text-input) !important;
  outline: none !important;
  /* box-shadow: 0 0 0 3px rgba(93, 217, 255, 0.1) !important; */
}

/* Error State */
input.border-red-500,
select.border-red-500,
textarea.border-red-500 {
  border-color: var(--error) !important;
}

/* Placeholder Color */
input::placeholder,
select::placeholder,
textarea::placeholder {
  color: var(--text-secondary) !important;
  opacity: 0.6;
}

/* Focus Ring Color Override */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  /* outline: 2px solid var(--accent-cyan);
  outline-offset: 2px; */
}

/* Dark Mode Specific Styles */
.dark-scrollbar::-webkit-scrollbar {
  width: 8px;
}

/* Banner Slider Styles */
.banner-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
  display: flex;
  opacity: 1;
}

/* Swiper Custom Styles */
.bannerSwiper {
  width: 100%;
  height: 100%;
}

.bannerSwiper .swiper-button-prev,
.bannerSwiper .swiper-button-next {
  display: none;
}

.bannerSwiper .swiper-pagination {
  bottom: 20px !important;
}

.bannerSwiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.bannerSwiper .swiper-pagination-bullet-active {
  background-color: var(--accent-cyan);
  width: 32px;
  border-radius: 6px;
}

/* Product Swiper Styles - Enhanced specificity */
.newProductsSwiper .swiper-button-prev,
.newProductsSwiper .swiper-button-next,
.newProductsSwiper .new-products-prev,
.newProductsSwiper .new-products-next,
.featuredProductsSwiper .swiper-button-prev,
.featuredProductsSwiper .swiper-button-next,
.featuredProductsSwiper .featured-products-prev,
.featuredProductsSwiper .featured-products-next,
div.swiper-button-prev,
div.swiper-button-next {
  width: 48px !important;
  height: 48px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
  margin-top: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.newProductsSwiper .swiper-button-prev:after,
.newProductsSwiper .swiper-button-next:after,
.newProductsSwiper .new-products-prev:after,
.newProductsSwiper .new-products-next:after,
.featuredProductsSwiper .swiper-button-prev:after,
.featuredProductsSwiper .swiper-button-next:after,
.featuredProductsSwiper .featured-products-prev:after,
.featuredProductsSwiper .featured-products-next:after,
div.swiper-button-prev:after,
div.swiper-button-next:after {
  font-size: 20px !important;
  font-weight: bold !important;
  color: #ffffff !important;
}

.newProductsSwiper .swiper-button-prev:hover,
.newProductsSwiper .swiper-button-next:hover,
.newProductsSwiper .new-products-prev:hover,
.newProductsSwiper .new-products-next:hover,
.featuredProductsSwiper .swiper-button-prev:hover,
.featuredProductsSwiper .swiper-button-next:hover,
.featuredProductsSwiper .featured-products-prev:hover,
.featuredProductsSwiper .featured-products-next:hover,
div.swiper-button-prev:hover,
div.swiper-button-next:hover {
  background-color: var(--accent-cyan) !important;
  color: #000000 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.newProductsSwiper .swiper-button-prev:after:hover,
.newProductsSwiper .swiper-button-next:after:hover,
div.swiper-button-prev:after:hover,
div.swiper-button-next:after:hover {
  color: #000000 !important;
}

.newProductsSwiper .swiper-slide,
.featuredProductsSwiper .swiper-slide {
  height: auto;
}

/* Product Slider Scroll */
#newProducts,
#featuredProducts {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  gap: 1.5rem;
}

#newProducts::-webkit-scrollbar,
#featuredProducts::-webkit-scrollbar {
  display: none;
}

#newProducts > div,
#featuredProducts > div {
  flex: 0 0 auto;
  width: 280px;
}

@media (min-width: 768px) {
  #newProducts > div,
  #featuredProducts > div {
    width: 320px;
  }
}

.dark-scrollbar::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.dark-scrollbar::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 4px;
}

.dark-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

/* Profile Page Settings Container Responsive Border Radius */
@media (max-width: 768px) {
    .profile-settings-container {
        border-radius: 1rem !important;
    }
}

@media (min-width: 769px) {
    .profile-settings-container {
        border-radius: 1rem 1rem 0 0 !important;
    }
}
