
:root {
  --primary-color: #ff6b35;       /* Hacktoberfest Orange */
  --secondary-color: #0081b4;     /* Blue */
  --accent-color: #ff8c42;        /* Light Orange */
  --success-color: #7ed321;       /* Green */
  --warning-color: #f5a623;       /* Yellow */
  --error-color: #d0021b;         /* Red */

  --bg-primary: #0f0f23;          /* Dark Background */
  --bg-secondary: #1a1a2e;        /* Card Background */
  --text-primary: #ffffff;        /* White Text */
  --text-secondary: #b8b8d1;      /* Light Gray Text */
  --text-muted: #8b8ba7;          /* Muted Text */

  --font-primary: 'Poppins', sans-serif;

  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);

  --gradient-primary: linear-gradient(90deg, #ff6b35, #0081b4);
}


body {
  margin: 0;
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}


.tool-container {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 2rem;
}

.tool-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tool-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.tool-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}


.back-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-button:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


.input-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.input-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

select {
  background: var(--bg-primary);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


#codeInput {
  width: 100%;
  min-height: 200px;
  resize: vertical;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.preview {
  border-radius: var(--radius-lg);
  background: #14213a;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}


@media (max-width: 768px) {
  .tool-container {
    padding: 1rem;
  }
  .back-button {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
  }
}

 