:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --text-primary: #ffffff;
  --accent-color: #ff0000;
  --text-secondary: #8f8f8f;
  --card-bg: #1e1e1e;
  --button-bg: #3d3d3d;
  --success-color: #3cdd1c;
  --active-color: #c53636;
  --error-color: #ff4d4d;
}

::-webkit-scrollbar {
  width: 0px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  user-select: none;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.titlebar {
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  -webkit-app-region: drag;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.windows-title {
  padding-top: 40px;
  padding-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.windows-title img {
  width: 30px;
  height: 30px;
}

.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.content.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

.content.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.content:not(:has(.home-content)) {
  padding: 20px;
}

.home-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-image: url(../assets/background.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-direction: column;
}

.home-content h1 {
  background: linear-gradient(90deg, #ffffff 0%, #808080 50%, #ffffff 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 96px;
  font-weight: 600;
  margin: 10px;
  animation: fadeInSlideUp 0.8s ease-out forwards,
    gradientMove 3s linear infinite;
}

.home-content h2 {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  background: linear-gradient(90deg, #ffffff 30%, #919191 50%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.home-content h2:hover {
  border-color: rgba(255, 255, 255, 0.3);
  animation: pulseButton 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

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

.home-content h2:hover::before {
  left: 100%;
}

.option-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.option-card.loading {
  position: relative;
  opacity: 0.8;
}

.option-card.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 25%,
      rgba(255, 77, 77, 0.1) 50%,
      rgba(255, 255, 255, 0) 75%);
  background-size: 200% 200%;
  animation: shimmer 1.5s infinite;
}

.option-card.active-optimization {
  border-color: rgba(255, 0, 0, 0.3);
  background: linear-gradient(90deg, rgba(196, 41, 41, 0.116) 0%, transparent 100%);
}

.option-card.active-optimization h3 {
  color: var(--active-color) !important;
}

.option-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: 0.5s;
}

.option-card:hover::before {
  left: 100%;
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.3);
  background-color: rgba(30, 30, 30, 0.9);
}

.option-card.active-optimization:hover {
  border-color: var(--active-color);
}

.option-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.option-card:hover h3 {
  color: var(--accent-color);
}

.option-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: all 0.3s ease;
}

.option-card:hover p {
  color: var(--text-primary);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.switch-container {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.switch-container.loading .slider {
  opacity: 0.5;
}

.switch-container.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  align-self: flex-end;
  transition: all 0.3s ease;
}

.switch:hover {
  transform: scale(1.05);
}

.switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  margin: 0;
  cursor: pointer;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: 0.4s ease;
  border-radius: 22px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.switch:hover .slider:before {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

input:checked+.slider {
  background-color: var(--accent-color);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

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

input:checked:hover+.slider {
  background-color: #ff1a1a;
}

.category-group {
  border-radius: 12px;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transition: all 0.3s ease;
}

.category-group:hover {
  border-color: rgba(255, 77, 77, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.category-group:nth-child(1) {
  animation-delay: 0.2s;
}

.category-group:nth-child(2) {
  animation-delay: 0.3s;
}

.category-group:nth-child(3) {
  animation-delay: 0.4s;
}

.category-group:nth-child(4) {
  animation-delay: 0.5s;
}

.category-group:nth-child(5) {
  animation-delay: 0.6s;
}

.category-group:nth-child(6) {
  animation-delay: 0.7s;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 77, 77, 0.05);
  border-bottom: 1px solid rgba(255, 77, 77, 0.1);
}

.group-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.group-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.group-switch:hover {
  background: rgba(255, 255, 255, 0.05);
}

.group-switch label {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.group-switch:hover label {
  color: var(--text-primary);
}

.category-group .option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin: 0 auto;
  padding: 20px;
  perspective: 1000px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.settings-group button {
  background-color: var(--button-bg);
  border: none;
  border-radius: 9999px;
  padding: 10px;
  width: 300px;
  color: white;
  font-size: 20px;
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 25px;
  align-items: center;
  background: var(--bg-secondary);
  padding: 5px;
  border-radius: 8px;
}

.nav-menu button {
  font-size: 15px;
}

.nav-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  -webkit-app-region: no-drag;
  padding: 8px 16px;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-button:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.nav-button.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--accent-color);
}

.nav-button::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-button:hover::before {
  width: 80%;
}

.nav-button.active::before {
  width: 0;
}

.titlebar-controls {
  display: flex;
  gap: 8px;
  -webkit-app-region: no-drag;
  justify-self: end;
}

.titlebar-controls button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.titlebar-controls button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.titlebar-controls button img {
  transition: all 0.2s ease;
  opacity: 0.7;
}

.titlebar-controls button:hover img {
  opacity: 1;
}

#close {
  transition: all 0.2s ease;
}

#close:hover {
  background: var(--accent-color);
}

#close:hover img {
  filter: brightness(2);
}

.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  gap: 15px;
}

.notification {
  position: relative;
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 18px;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--notification-color, var(--error-color));
  transform: translateX(120%);
  animation: slideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  overflow: hidden;
}

.notification::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(var(--notification-rgb), 0.3);
  animation: progress 5s linear forwards;
}

.notification.success {
  --notification-color: var(--success-color);
  --notification-rgb: 76, 175, 80;
}

.notification.error {
  --notification-color: var(--error-color);
  --notification-rgb: 255, 77, 77;
}

.scroll-indicator {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.progress-bar {
  width: 4px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-color), #ff4d4d);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar.active::before {
  transform: translateY(0);
}

.progress-bar:hover {
  background: rgba(255, 255, 255, 0.2);
}

.progress-bar .tooltip {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.progress-bar:hover .tooltip {
  opacity: 1;
}

.progress-bar.active {
  animation: pulse-bar 2s infinite;
}

.language-selector {
  margin: 20px 0;
  width: 100%;
  text-align: center;
}

.styled-select {
  width: 200px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--card-bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="18px" height="18px"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.styled-select:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: var(--bg-secondary);
}

.styled-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-color);
}

.language-selector label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.settings-container {
  max-width: 780px;
  margin: 40px auto;
  padding: 0 20px;
}

.settings-header {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar img {
  width: 60%;
  height: 60%;
}

.user-info h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
}

.user-info p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-info p::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
}

.settings-content {
  display: grid;
  gap: 40px;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.settings-section h3 {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-item {
  margin-bottom: 20px;
}

.setting-item label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.modern-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.2s ease;
}

.modern-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
}

.modern-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.modern-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.modern-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.discord-btn {
  background: #5865F2;
  border-color: transparent;
}

.discord-btn:hover {
  background: #4752C4;
}

.report-btn {
  background: var(--accent-color);
  border-color: transparent;
}

.report-btn:hover {
  background: #c53535;
}

@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  100% {
    background-position: 200% 50%;
  }
}

@keyframes pulseButton {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes slideIn {
  from {
    transform: translateX(120%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(150%);
    opacity: 0;
  }
}

@keyframes progress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

@keyframes pulse-bar {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
  }
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

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

  to {
    background-position: -200% 0;
  }
}