/* MailMorph - Futuristic UI Theme V2 */

:root {
  --bg-indigo: #123761;
  --bg-deep-blue: #1E293B;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-glow: rgba(59, 130, 246, 0.1);

  --primary-blue: #3B82F6;
  --primary-blue-light: #60A5FA;
  --primary-green: #10B981;
  --neon-blue: #0EA5E9;
  --neon-green: #22D3EE;

  --text-light: #E0E7FF;
  --text-gray: #94A3B8;

  --glow-blue: 0 0 15px rgba(59, 130, 246, 0.4);
  --glow-green: 0 0 15px rgba(16, 185, 129, 0.4);

  --radius-xl: 1.5rem;
  --border-glow: 1px solid rgba(59, 130, 246, 0.3);

  --font-family: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-light);
  background: var(--bg-indigo);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Layout Wrapper */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #60A5FA, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.15);
  color: var(--text-light);
  margin-bottom: 2rem;
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #E0E7FF;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--primary-blue-light);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover {
  border-color: var(--neon-blue);
  background: rgba(59, 130, 246, 0.05);
}

.upload-zone.dragover {
  border-color: var(--primary-green);
  background: rgba(16, 185, 129, 0.1);
}

.upload-icon {
  font-size: 3rem;
  color: var(--primary-blue-light);
  margin-bottom: 1rem;
}

/* Form Input */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #3B82F6;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.75rem;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.input-error {
    color: var(--primary-blue-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

/* Button */
.btn-future {
  background: linear-gradient(135deg, var(--primary-blue), var(--neon-blue));
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-future:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

/* Results Card */
.results-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-green);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-top: 0.25rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-gray);
  font-size: 0.9rem;
  border-top: 1px solid rgba(59, 130, 246, 0);
  margin-top: 2rem;
}

footer a {
    color: var(--primary-blue-light);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--neon-green);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .glass-card, .upload-zone {
    padding: 1.5rem;
  }
  .container {
    padding: 1rem;
  }
}
