:root {
  --primary: #D63031;
  --secondary: #FF7675;
  --accent: #FDCB6E;
  --background: #1A0D0D;
  --surface: #2d1b1b;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --radius: 12px;
  --transition: 0.3s ease;
  --glass-bg: rgba(45, 27, 27, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  flex: 1;
}

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

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--text-muted);
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--secondary);
}

textarea, input[type="text"], select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

textarea:focus, input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.file-drop-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem;
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
}

.file-drop-area:hover, .file-drop-area.drag-over {
  border-color: var(--primary);
  background: rgba(214, 48, 49, 0.1);
}

.file-msg {
  color: var(--text-muted);
}

.file-input {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.tabs {
  display: flex;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  font-weight: 500;
}

.tab-btn.active {
  background: var(--primary);
  color: var(--text);
}

.output-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.hash-output {
  font-family: 'Fira Code', monospace;
  word-break: break-all;
  padding-right: 3rem; /* Space for copy button */
}

.copy-btn {
  position: absolute;
  right: 0.5rem;
  top: 2rem; /* Adjusted for label height */
  background: transparent;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.comparison-section {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.match-indicator {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.match-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.match-fail {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hidden {
  display: none;
}

/* Algorithm select styling */
.algo-select {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .container {
    padding: 1rem;
  }
}
