/* Brief AI — Web UI Styles */
/* Premium dark mode with glassmorphism and micro-animations */

:root {
  --color-bg: #0a0a0f;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.07);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-active: rgba(139, 92, 246, 0.6);
  --color-text: #f0f0f5;
  --color-text-muted: rgba(240, 240, 245, 0.5);
  --color-accent: #8b5cf6;
  --color-accent-glow: rgba(139, 92, 246, 0.3);
  --color-success: #34d399;
  --color-error: #f87171;
  --color-warning: #fbbf24;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

html { height: 100%; }

body {
  min-height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background orbs */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 8s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -100px; left: -100px;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #2563eb, transparent);
  bottom: -100px; right: -50px;
  animation-delay: -4s;
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}

/* Layout */
.container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
.header { text-align: center; padding: 20px 0 8px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.logo-icon { font-size: 2rem; }

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline { color: var(--color-text-muted); font-size: 0.9rem; }

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base);
}

.card:hover { box-shadow: var(--shadow-card), var(--shadow-glow); }

/* Settings card */
.settings-card {}
.label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 10px; }

.input-row { display: flex; gap: 10px; }

.input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.hint { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 8px; min-height: 1.2em; }
.hint.success { color: var(--color-success); }

/* Drop zone */
.upload-card { display: flex; flex-direction: column; gap: 16px; }

.drop-zone {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-fast);
  overflow: hidden;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--color-accent);
  background: rgba(139, 92, 246, 0.05);
  outline: none;
}

.drop-zone.drag-over {
  border-color: var(--color-accent);
  background: rgba(139, 92, 246, 0.1);
  transform: scale(1.01);
}

.drop-icon { font-size: 2.5rem; margin-bottom: 12px; animation: pulse 2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

.drop-title { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.drop-subtitle { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.drop-formats { font-size: 0.75rem; color: var(--color-text-muted); letter-spacing: 0.03em; }

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

/* File info */
.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  animation: slide-in var(--transition-base);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.file-icon { font-size: 1.5rem; flex-shrink: 0; }
.file-details { flex: 1; min-width: 0; }
.file-name { display: block; font-weight: 500; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 0.78rem; color: var(--color-text-muted); }

/* Progress */
.progress-container { }
.progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), #60a5fa);
  border-radius: 99px;
  transition: width var(--transition-fast);
}
.progress-label { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 6px; text-align: center; }

/* Buttons */
.btn {
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 20px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #6366f1);
  color: #fff;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.55);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-icon {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}
.btn-icon:hover { color: var(--color-text); background: rgba(255,255,255,0.08); }

/* Status messages */
.status-message {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  animation: slide-in var(--transition-base);
}

.status-message.success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--color-success);
}

.status-message.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--color-error);
}

/* Footer */
.footer { text-align: center; color: var(--color-text-muted); font-size: 0.82rem; padding-top: 8px; }

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

/* Responsive */
@media (max-width: 480px) {
  .container { padding: 24px 16px 48px; }
  .card { padding: 20px; }
  .drop-zone { padding: 30px 16px; }
}
