/* Base styles */
:root {
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-300: #86efac;
  --primary-400: #4ade80;
  --primary-500: #22c55e;
  --primary-600: #16a34a;
  --primary-700: #15803d;
  --primary-800: #166534;
  --primary-900: #14532d;
  --primary-950: #052e16;
  
  --dark-100: #d1d5db;
  --dark-200: #9ca3af;
  --dark-300: #6b7280;
  --dark-400: #4b5563;
  --dark-500: #374151;
  --dark-600: #1f2937;
  --dark-700: #111827;
  --dark-800: #0e1018;
  --dark-900: #030712;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--dark-900);
  color: white;
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-400), var(--primary-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

header p {
  color: var(--dark-300);
  font-size: 1.125rem;
}

/* Card */
.card {
  background-color: var(--dark-700);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Tabs */
.tab {
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  color: var(--dark-300);
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab:hover {
  color: white;
}

.tab.active {
  border-bottom-color: var(--primary-500);
  color: white;
}

/* Input fields */
textarea {
  width: 100%;
  min-height: 14rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--dark-600);
  border-radius: 0.5rem;
  background-color: var(--dark-800);
  color: white;
  font-size: 0.875rem;
  resize: vertical;
  transition: all 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-500);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-200);
  margin-bottom: 0.5rem;
}

/* File dropzone */
.file-drop-zone {
  border: 2px dashed var(--dark-500);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-drop-zone:hover {
  border-color: var(--primary-500);
}

.file-drop-zone.active {
  border-color: var(--primary-500);
  background-color: rgba(34, 197, 94, 0.1);
}

input[type="file"] {
  display: none;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-500);
}

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

.btn-primary:hover {
  background-color: var(--primary-700);
}

.btn-secondary {
  background-color: var(--dark-600);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--dark-500);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(34, 197, 94, 0.2);
  color: var(--primary-300);
}

/* Results */
.results-section {
  margin-top: 1.5rem;
}

.results-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-section h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-300);
  margin-bottom: 0.75rem;
}

.result-counter {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
}

#frequency-list {
  max-height: 16rem;
  overflow-y: auto;
}

/* Utilities */
.hidden {
  display: none;
}

.flex {
  display: flex;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

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

.mb-3 {
  margin-bottom: 0.75rem;
}

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

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

.mr-3 {
  margin-right: 0.75rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.p-4 {
  padding: 1rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-1 {
  padding: 0.25rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.border-b {
  border-bottom-width: 1px;
}

.border-dark-700 {
  border-color: var(--dark-700);
}

.border-dark-600 {
  border-color: var(--dark-600);
}

.rounded-lg {
  border-radius: 0.5rem;
}

.bg-dark-800 {
  background-color: var(--dark-800);
}

.text-4xl {
  font-size: 2.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

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

.text-dark-300 {
  color: var(--dark-300);
}

.text-dark-400 {
  color: var(--dark-400);
}

.text-primary-500 {
  color: var(--primary-500);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flex-1 {
  flex: 1 1 0%;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (min-width: 768px) {
  .grid {
    display: grid;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .gap-6 {
    gap: 1.5rem;
  }
  
  .md\:text-5xl {
    font-size: 3rem;
  }
} 