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

:root {
  --blue-500: #ef4444;
  --blue-600: #ef4444;
  --emerald-400: #34d399;
  --amber-400: #fbbf24;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #0a0a0a;
  color: white;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive Logo Image */
.logo-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .logo-image {
    max-width: 80%;
  }
}

/* Header Styles */
.header {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--zinc-900);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-content {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  color: #ef4444;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(to right, #ef4444, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.description {
  font-size: 1.125rem;
  color: var(--zinc-400);
  text-align: center;
  max-width: 42rem;
}

.stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.stat {
  color: var(--zinc-500);
}

.stat-value {
  color: var(--zinc-300);
}

.stat-value-green {
  color: var(--emerald-400);
}

/* Main Content Styles */
.main-content {
  padding: 4rem 1rem;
}

.content-wrapper {
  max-width: 42rem;
  margin: 0 auto;
}

.card {
  background-color: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(39, 39, 42, 0.5);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}

.input-group {
  position: relative;
}

.input {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(39, 39, 42, 0.5);
  color: white;
  outline: none;
}

.input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
}

.search-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ef4444;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.search-button:hover:not(:disabled) {
  background-color: #ef4444;
}

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

.user-found {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--emerald-400);
  margin-top: 1rem;
}

/* Script Selection Styles */
.script-selection {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid var(--zinc-700);
  background-color: black;
}

.checkbox-label {
  font-size: 1.125rem;
  color: var(--zinc-300);
}

.select {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(39, 39, 42, 0.5);
  color: white;
  outline: none;
}

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

.button {
  width: 100%;
  background-color: #ef4444;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button:hover:not(:disabled) {
  background-color: #ef4444;
}

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

/* Final Step Styles */
.final-step {
  text-align: center;
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--emerald-400);
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.success-description {
  color: var(--zinc-400);
  margin-bottom: 1.5rem;
}

.info-box {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(39, 39, 42, 0.5);
  margin-bottom: 1.5rem;
}

.info-group {
  margin-bottom: 1rem;
}

.info-group:last-child {
  margin-bottom: 0;
}

.info-label {
  color: var(--zinc-500);
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--zinc-300);
}

.info-value-key {
  font-size: 1.25rem;
  font-family: monospace;
  color: var(--emerald-400);
}

.info-value-time {
  font-size: 1.25rem;
  color: var(--amber-400);
}

/* Loading Overlay Styles */
.loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.loading-card {
  background-color: rgba(24, 24, 27, 0.9);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(39, 39, 42, 0.5);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 28rem;
  width: 100%;
  margin: 0 1rem;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loading-spinner {
  position: relative;
  width: 3rem;
  height: 3rem;
}

.loading-spinner i {
  position: absolute;
  width: 100%;
  height: 100%;
  color: #ef4444;
  animation: spin 2s linear infinite;
}

.loading-dot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-dot::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background-color: #ef4444;
  border-radius: 50%;
}

.loading-text {
  width: 100%;
  text-align: center;
}

.loading-message {
  font-size: 1.125rem;
  color: var(--zinc-300);
  margin-bottom: 0.75rem;
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress {
  height: 100%;
  background-color: #ef4444;
  transition: width 0.3s ease-out;
  width: 0%;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--zinc-500);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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