/* ExTaskScribe — Premium dark/glassmorphism theme matching the Excelligent AI portal */

:root {
  --bg-deep: #0A1325;
  --bg-card: rgba(10, 19, 37, 0.42);
  --accent: #f58e18;
  --accent-hover: #d97706;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(245, 142, 24, 0.04) 100%),
           radial-gradient(120% 180% at 0% 0%, rgba(99, 140, 255, 0.08) 0%, transparent 60%),
           rgba(10, 19, 37, 0.42);
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-deep);
}

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
}

/* Background nebulae */
.blob-1 {
  animation: pulse-blob-1 14s ease-in-out infinite;
  will-change: transform;
}
.blob-2 {
  animation: pulse-blob-2 18s ease-in-out infinite;
  will-change: transform;
}

@keyframes pulse-blob-1 {
  0%, 100% { opacity: 0.4; transform: scale(1) translate(0px, 0px); }
  50% { opacity: 0.65; transform: scale(1.08) translate(15px, -15px); }
}

@keyframes pulse-blob-2 {
  0%, 100% { opacity: 0.3; transform: scale(1.05) translate(0px, 0px); }
  50% { opacity: 0.5; transform: scale(0.95) translate(-15px, 15px); }
}

/* Glass card */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.glass-premium {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(245, 142, 24, 0.04) 100%),
               radial-gradient(120% 180% at 0% 0%, rgba(99, 140, 255, 0.08) 0%, transparent 60%),
               rgba(10, 19, 37, 0.38) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease-in-out !important;
}
.glass-premium:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(245, 142, 24, 0.06) 100%),
               radial-gradient(120% 180% at 0% 0%, rgba(99, 140, 255, 0.1) 0%, transparent 60%),
               rgba(10, 19, 37, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
}

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  font-weight: 600;
  border: 1px solid rgba(245, 142, 24, 0.35);
  box-shadow: 0 4px 20px rgba(245, 142, 24, 0.2);
  transition: all 0.3s ease-in-out;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 142, 24, 0.35);
  border-color: rgba(245, 142, 24, 0.6);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Secondary button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

/* Transcript textarea */
.transcript-input {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  transition: all 0.2s ease-in-out;
  resize: vertical;
}
.transcript-input::placeholder {
  color: var(--text-muted);
}
.transcript-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 142, 24, 0.12);
}

/* Status text states */
.status-success { color: var(--success); }
.status-error { color: var(--error); }
.status-busy { color: var(--accent); }
.status-idle { color: var(--text-secondary); }

/* Owner card */
.owner-card {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: all 0.3s ease-in-out;
}
.owner-card:hover {
  border-color: var(--border-hover);
}

.owner-header {
  background: rgba(245, 142, 24, 0.08);
  border-bottom: 1px solid rgba(245, 142, 24, 0.15);
}

/* Task row */
.task-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.task-row:last-child {
  border-bottom: none;
}

/* Tiny status dot */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.dot-deadline { background: var(--warning); }
.dot-priority { background: var(--error); }
.dot-context { background: var(--success); }

/* Section fade-in */
.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Selection color */
::selection {
  background: rgba(245, 142, 24, 0.3);
  color: white;
}
