/* /styles/settings.css */
/* This file contains custom styles that enhance the Tailwind CSS framework. */

/* === Base & Background === */
body {
  font-family: "Inter", sans-serif;
}

.gradient-bg {
  background: linear-gradient(-45deg, #0f0f23, #1a1a2e, #16213e, #0f3460);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

.particle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: #06b6d4;
  border-radius: 50%;
  animation: float 25s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* === UI Components & Cards === */
.settings-card {
  transition: all 0.3s ease;
  background: linear-gradient(
    135deg,
    rgba(31, 41, 55, 0.8),
    rgba(17, 24, 39, 0.9)
  );
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.settings-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(6, 182, 212, 0.1);
}

.camera-item {
  background: linear-gradient(
    135deg,
    rgba(55, 65, 81, 0.6),
    rgba(31, 41, 55, 0.8)
  );
  border: 1px solid rgba(75, 85, 99, 0.3);
  transition: all 0.3s ease;
}

.camera-item:hover {
  background: linear-gradient(
    135deg,
    rgba(55, 65, 81, 0.8),
    rgba(31, 41, 55, 1)
  );
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(4px);
}

.modal-overlay {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.toast-notification {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* === Navigation === */
.nav-link.active {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.nav-link:not(.active):hover {
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
}

/* === Forms & Inputs === */
.enhanced-input {
  background: rgba(55, 65, 81, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.5);
  transition: all 0.3s ease;
}

.enhanced-input:focus {
  background: rgba(55, 65, 81, 1);
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
  outline: none;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #374151, #4b5563);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background: #ffffff;
}

/* === Buttons === */
.btn-primary,
.btn-secondary,
.btn-danger {
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: linear-gradient(135deg, #374151, #4b5563);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #4b5563, #6b7280);
}
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}

/* === Animations === */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}
.fade-in-delay-2 {
  animation-delay: 0.2s;
}
.fade-in-delay-3 {
  animation-delay: 0.3s;
}
