/* shadcn/ui inspired CSS - Dark/Light Theme Support */

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 72% 51%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 0.5rem;
}

.dark {
  --background: 222.2 84% 2%;
  --foreground: 210 40% 98%;
  --card: 0 0% 18%;
  --card-foreground: 210 40% 98%;
  --popover: 0 0% 18%;
  --popover-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 0 0% 15%;
  --secondary-foreground: 210 40% 98%;
  --muted: 0 0% 15%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 0 0% 15%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 0 0% 25%;
  --input: 0 0% 25%;
  --ring: 212.7 26.8% 83.9%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--background));
  background-image: radial-gradient(circle at 20% 50%, hsl(var(--background) / 1) 0%, hsl(var(--background)) 100%);
  color: hsl(var(--foreground));
  line-height: 1.5;
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
}

.dark body {
  background-color: hsl(222.2 84% 1.5%);
  background-image: radial-gradient(circle at 20% 50%, hsl(222.2 84% 2%) 0%, hsl(222.2 84% 1%) 100%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Card */
.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: calc(var(--radius) + 0.25rem);
  border: 1px solid hsl(var(--border));
  box-shadow: 
    0 1px 3px 0 rgb(0 0 0 / 0.1), 
    0 1px 2px -1px rgb(0 0 0 / 0.1),
    0 0 0 1px hsl(var(--border) / 0.5);
  padding: 1.5rem;
  position: relative;
  z-index: 0;
}

.card-header {
  display: flex;
  flex-direction: column;
  space-y: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

.card-content {
  padding-top: 1.5rem;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  outline: none;
  padding: 0.5rem 1rem;
  line-height: 1.5rem;
  text-decoration: none;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover {
  background-color: hsl(var(--destructive) / 0.9);
}

.btn-outline {
  border: 1px solid hsl(var(--input));
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

/* Input */
.input-group {
  margin-bottom: 1.5rem;
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
  color: hsl(var(--foreground));
}

.input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  outline: none;
  color: hsl(var(--foreground));
}

.input:focus {
  outline: none;
  ring: 2px;
  ring-color: hsl(var(--ring));
  border-color: hsl(var(--ring));
}

.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

/* Animated Input - Floating Label */
.input-group-animated {
  margin-bottom: 1.5rem;
  position: relative;
}

.input-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
}

.input-animated {
  width: 100%;
  height: 3.5rem;
  padding: 1.5rem 3rem 0.5rem 0.75rem;
  font-size: 1rem;
  border: 2px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.input-animated[type="password"] {
  padding-right: 3.5rem;
}

.input-animated::placeholder {
  color: transparent;
}

.input-animated:focus {
  border-color: hsl(var(--primary));
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 3px hsl(var(--primary) / 0.1),
    0 4px 20px hsl(var(--primary) / 0.3),
    0 0 40px hsl(var(--primary) / 0.15);
  animation: inputGlow 2s ease-in-out infinite;
}

.input-animated:focus + .label-animated,
.input-animated:not(:placeholder-shown) + .label-animated,
.input-animated.has-value + .label-animated {
  transform: translateY(-0.5rem) scale(0.85);
  color: hsl(var(--primary));
  font-weight: 600;
  top: 0.5rem;
  left: 0.75rem;
  background: hsl(var(--card));
  padding: 0 0.5rem;
  margin-left: -0.5rem;
  border-radius: 4px;
}

.label-animated {
  position: absolute;
  left: 0.75rem;
  top: 1rem;
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left top;
  z-index: 10;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.label-text {
  display: inline-block;
  position: relative;
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    hsl(var(--primary)), 
    hsl(var(--primary) / 0.5),
    hsl(var(--primary))
  );
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  border-radius: 2px;
}

.input-animated:focus ~ .input-border {
  width: 100%;
  animation: borderGlow 2s ease-in-out infinite;
  box-shadow: 0 0 10px hsl(var(--primary) / 0.5);
}

.input-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--primary) / 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

.input-animated:focus ~ .input-glow {
  width: 400px;
  height: 400px;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 10px hsl(var(--primary) / 0.6);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 20px hsl(var(--primary) / 0.9), 0 0 30px hsl(var(--primary) / 0.4);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@keyframes inputGlow {
  0%, 100% {
    box-shadow: 
      0 0 0 3px hsl(var(--primary) / 0.1),
      0 4px 20px hsl(var(--primary) / 0.3),
      0 0 40px hsl(var(--primary) / 0.15);
  }
  50% {
    box-shadow: 
      0 0 0 3px hsl(var(--primary) / 0.15),
      0 4px 25px hsl(var(--primary) / 0.4),
      0 0 50px hsl(var(--primary) / 0.2);
  }
}

@keyframes inputGlow {
  0%, 100% {
    box-shadow: 
      0 0 0 3px hsl(var(--primary) / 0.1),
      0 4px 20px hsl(var(--primary) / 0.3),
      0 0 40px hsl(var(--primary) / 0.15);
  }
  50% {
    box-shadow: 
      0 0 0 3px hsl(var(--primary) / 0.15),
      0 4px 25px hsl(var(--primary) / 0.4),
      0 0 50px hsl(var(--primary) / 0.2);
  }
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
  opacity: 0.6;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.password-toggle:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
  background-color: hsl(var(--muted) / 0.5);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.eye-icon {
  font-size: 1.125rem;
  filter: grayscale(0.3);
  transition: all 0.2s;
  display: block;
}

.password-toggle.active .eye-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

/* Input Success State */
.input-animated.success {
  border-color: hsl(142 76% 36%);
}

.input-animated.success ~ .label-animated {
  color: hsl(142 76% 36%);
}

.input-animated.success ~ .input-border {
  background: linear-gradient(90deg, 
    hsl(142 76% 36%), 
    hsl(142 76% 36% / 0.5),
    hsl(142 76% 36%)
  );
}

/* Input Error State */
.input-animated.error {
  border-color: hsl(var(--destructive));
  animation: shake 0.5s ease-in-out;
}

.input-animated.error ~ .label-animated {
  color: hsl(var(--destructive));
}

.input-animated.error ~ .input-border {
  background: linear-gradient(90deg, 
    hsl(var(--destructive)), 
    hsl(var(--destructive) / 0.5),
    hsl(var(--destructive))
  );
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Floating particles effect on focus */
.input-animated:focus::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    hsl(var(--primary) / 0.1),
    transparent,
    hsl(var(--primary) / 0.1)
  );
  border-radius: calc(var(--radius) - 2px);
  z-index: -1;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  cursor: pointer;
  accent-color: hsl(var(--primary));
}

.checkbox-label {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  cursor: pointer;
}

/* Switch */
.switch-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.switch-group-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.switch-labels {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.switch-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s ease;
  user-select: none;
  cursor: pointer;
}

.switch-label-dark {
  order: 1;
}

.switch-label-light {
  order: 3;
}

.switch {
  order: 2;
}

/* Dark tema aktifken */
.dark .switch-label-dark {
  color: hsl(var(--primary));
  font-weight: 600;
}

.dark .switch-label-light {
  color: hsl(var(--muted-foreground));
}

/* Light tema aktifken */
:root:not(.dark) .switch-label-light {
  color: hsl(var(--primary));
  font-weight: 600;
}

:root:not(.dark) .switch-label-dark {
  color: hsl(var(--muted-foreground));
}

/* Progress Bar */
.progress-container {
  width: 100%;
  margin-top: 0.5rem;
}

.progress-bar-wrapper {
  position: relative;
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 1.5rem;
  background-color: hsl(var(--muted));
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  position: relative;
  border: 1px solid hsl(var(--border));
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    hsl(var(--primary)), 
    hsl(var(--primary) / 0.9),
    hsl(var(--primary) / 0.8),
    hsl(var(--primary))
  );
  background-size: 200% 100%;
  border-radius: calc(var(--radius) - 2px);
  position: relative;
  overflow: hidden;
  width: 0%;
  will-change: width;
  animation: progressShimmer 3s ease-in-out infinite;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent
  );
  animation: progressShine 2.5s ease-in-out infinite;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  z-index: 2;
  text-shadow: 0 1px 2px hsl(var(--background) / 0.5);
  pointer-events: none;
}

@keyframes progressShimmer {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    box-shadow: 0 0 10px hsl(var(--primary) / 0.3);
  }
}

@keyframes progressShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 1;
  -webkit-transition: opacity 0.5s ease-out;
  -o-transition: opacity 0.5s ease-out;
  transition: opacity 0.5s ease-out;
}

.loading-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
}

.loading-content > * {
  margin-bottom: 3rem;
}

.loading-content > *:last-child {
  margin-bottom: 0;
}

.loading-logo {
  text-align: center;
}

.loading-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--primary));
  letter-spacing: -0.025em;
  text-shadow: 0 0 20px hsl(var(--primary) / 0.5);
  animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.loading-progress-wrapper {
  width: 100%;
  position: relative;
}

.loading-progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: hsl(var(--muted));
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;
}

.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    hsl(var(--primary)), 
    hsl(var(--primary) / 0.9),
    hsl(var(--primary))
  );
  border-radius: 0.25rem;
  width: 0%;
  -webkit-transition: width 0.1s linear;
  -o-transition: width 0.1s linear;
  transition: width 0.1s linear;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.loading-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent
  );
  animation: loadingShine 1.5s ease-in-out infinite;
}

@keyframes loadingShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.loading-progress-text {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.05em;
}

.switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(var(--muted));
  transition: 0.3s;
  border-radius: 1.5rem;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.switch input:checked + .switch-slider {
  background-color: hsl(var(--primary));
}

.switch input:checked + .switch-slider:before {
  transform: translateX(1.25rem);
}

/* Alert */
.alert {
  position: relative;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  padding: 1rem;
  margin-bottom: 1rem;
}

.alert-destructive {
  border-color: hsl(var(--destructive));
  background-color: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive-foreground));
}

/* Light temada alert-destructive metni daha koyu */
:root:not(.dark) .alert-destructive {
  color: hsl(0 72% 51%);
}

.dark .alert-destructive {
  color: hsl(var(--destructive-foreground));
}

.alert-success {
  border-color: hsl(142 76% 36%);
  background-color: hsl(142 76% 36% / 0.1);
  color: hsl(142 76% 36%);
}

.alert-info {
  border-color: hsl(217 91% 60%);
  background-color: hsl(217 91% 60% / 0.1);
  color: hsl(217 91% 60%);
}

.alert-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.alert-description {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: calc(var(--radius) - 4px);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.badge-default {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-outline {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

/* Separator */
.separator {
  height: 1px;
  width: 100%;
  background-color: hsl(var(--border));
  margin: 1.5rem 0;
}

/* Layout */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: hsl(var(--background));
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.dashboard-container {
  min-height: 100vh;
  padding: 2rem 1rem;
  background-color: hsl(var(--background));
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid hsl(var(--muted));
  border-top-color: hsl(var(--primary));
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn .spinner {
  margin-right: 0.5rem;
}

/* Link */
.link {
  color: hsl(var(--primary));
  text-decoration: none;
  font-size: 0.875rem;
}

.link:hover {
  text-decoration: underline;
}

.link-muted {
  color: hsl(var(--muted-foreground));
}

/* Responsive */
@media (max-width: 640px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .card {
    padding: 1rem;
  }
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

/* Language Selector */
.language-selector {
  position: relative;
  display: inline-block;
}

.language-dropdown {
  position: relative;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: space-between;
}

.language-flag {
  font-size: 1.125rem;
  line-height: 1;
}

.language-name {
  flex: 1;
  text-align: left;
}

.language-arrow {
  font-size: 0.75rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

.language-toggle:hover .language-arrow {
  opacity: 1;
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  z-index: 50;
  overflow: hidden;
  min-width: 140px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  transition: background-color 0.2s;
  cursor: pointer;
}

.language-option:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.language-option.active {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 500;
}

.language-option .language-flag {
  font-size: 1rem;
}

