/* ============================================
   hermes.io - Collaboration Hub
   Pink & Black - Areti Style
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #050507;
  --bg-secondary: #0a0a0e;
  --bg-card: rgba(12, 12, 18, 0.75);
  --bg-card-hover: rgba(18, 18, 26, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.025);
  --border: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.08);
  --text-primary: #f2f0f4;
  --text-secondary: #9690a0;
  --text-muted: #504a5e;
  --accent: #e84393;
  --accent-light: #fd79a8;
  --accent-dim: rgba(232, 67, 147, 0.1);
  --accent-glow: rgba(232, 67, 147, 0.25);
  --red: #ff6b6b;
  --green: #00cec9;
  --blue: #a29bfe;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

/* --- Login Page --- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-primary);
  overflow: hidden;
}

.login-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  z-index: 1;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.login-logo {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-icon {
  margin-bottom: 1rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.logo-text, .logo-text-sm {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--accent);
}

.logo-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.input-group input {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

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

.input-group input::placeholder {
  color: var(--text-muted);
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-login:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-login:active {
  transform: translateY(0);
}

/* Login particles background */
.login-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232, 67, 147, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(253, 121, 168, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(162, 155, 254, 0.03) 0%, transparent 50%);
}

/* --- App Page Layout --- */
.app-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* --- Sidebar --- */
.sidebar {
  width: 300px;
  min-width: 300px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 53px);
  position: sticky;
  top: 53px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-count {
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.sidebar-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--text-primary);
}

.sidebar-search input::placeholder {
  color: var(--text-muted);
}

.sidebar-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.sidebar-list::-webkit-scrollbar {
  width: 4px;
}

.sidebar-list::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-list::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 2px;
}

.sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  transition: background var(--transition);
  border-left: 2px solid transparent;
}

.sidebar-item:hover {
  background: var(--bg-glass);
}

.sidebar-item.active {
  background: var(--accent-dim);
  border-left-color: var(--accent);
}

.sidebar-item-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: #050507;
  flex-shrink: 0;
  margin-top: 1px;
}

.sidebar-item-content {
  flex: 1;
  min-width: 0;
}

.sidebar-item-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sidebar-item-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.125rem;
}

.sidebar-item-user {
  font-size: 0.625rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-item-priority {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-item-priority.p-high { background: var(--red); }
.sidebar-item-priority.p-medium { background: var(--accent); }
.sidebar-item-priority.p-low { background: var(--green); }

.sidebar-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #050507;
  border: none;
  cursor: pointer;
  z-index: 50;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* --- Header --- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text-sm {
  font-size: 1.125rem;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0a0a0f;
  flex-shrink: 0;
}

.user-name-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-icon.spinning svg {
  animation: spin 0.6s ease;
}

.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.btn-ghost:hover {
  color: var(--red);
}

/* --- Main Content --- */
.app-main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- Input Section --- */
.input-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.input-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.input-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.input-tab:hover {
  color: var(--text-secondary);
}

.input-tab.active {
  color: var(--accent);
}

.input-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* --- Voice Input --- */
.voice-input {
  padding: 1.5rem;
}

.waveform-container {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.waveform-container canvas {
  width: 100%;
  height: 100%;
}

.recording-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.timer {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 100px;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn-record {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
}

.btn-record:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 20px var(--accent-glow);
}

.record-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transition: all var(--transition);
}

.btn-record:hover .record-dot {
  transform: scale(1.1);
}

.btn-stop {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  animation: pulse-red 1.5s ease-in-out infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

.btn-stop:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* --- Text Input --- */
.text-input {
  padding: 1.5rem;
}

.text-input textarea {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.text-input textarea::placeholder {
  color: var(--text-muted);
}

.text-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.text-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-send {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-send:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* --- Feed Section --- */
.feed-section {
  flex: 1;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feed-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.dynamic-filters {
  display: contents;
}

.filter-tab {
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.filter-tab.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* --- Feed Entries --- */
.feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color var(--transition), background var(--transition);
}

.entry-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.entry-card.entry-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 0 20px var(--accent-glow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.entry-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.entry-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a0a0f;
  flex-shrink: 0;
}

.entry-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.entry-user {
  font-size: 0.875rem;
  font-weight: 600;
}

.entry-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.entry-badges {
  display: flex;
  gap: 0.375rem;
  flex-shrink: 0;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-voice {
  background: rgba(162, 155, 254, 0.1);
  color: var(--blue);
  border: 1px solid rgba(162, 155, 254, 0.2);
}

.badge-text {
  background: rgba(0, 206, 201, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 206, 201, 0.2);
}

.priority-low {
  background: rgba(0, 206, 201, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 206, 201, 0.2);
}

.priority-medium {
  background: rgba(232, 67, 147, 0.1);
  color: var(--accent);
  border: 1px solid rgba(232, 67, 147, 0.2);
}

.priority-high {
  background: rgba(255, 107, 107, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

/* --- Feature Request Section --- */
.entry-feature {
  background: var(--accent-dim);
  border: 1px solid rgba(232, 67, 147, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.feature-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 0.375rem;
}

.clickup-link {
  color: var(--text-muted);
  flex-shrink: 0;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.clickup-link:hover {
  color: var(--accent);
  background: rgba(232, 67, 147, 0.08);
}

.entry-status {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
  text-transform: capitalize;
}

.feature-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Custom Audio Player --- */
.audio-player {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #050507;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.audio-play-btn:hover {
  background: var(--accent-light);
  transform: scale(1.05);
}

.audio-progress-wrap {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.audio-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
}

.audio-time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 75px;
  text-align: right;
}

/* --- Entry Footer (toggle + delete) --- */
.entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.entry-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.entry-delete-btn:hover {
  color: var(--red);
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.08);
}

.entry-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Toggle Details --- */
.entry-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.entry-toggle:hover {
  color: var(--text-secondary);
}

.entry-toggle svg {
  transition: transform var(--transition);
}

.entry-toggle.expanded svg {
  transform: rotate(180deg);
}

.entry-details {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  max-height: 300px;
  opacity: 1;
  margin-top: 0.5rem;
}

.entry-details.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.entry-source-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0.75rem;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-icon {
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.empty-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* --- Processing Overlay --- */
.processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

.processing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.processing-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--accent-light);
}

/* --- Toast Notifications --- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  z-index: 400;
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 90vw;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: rgba(0, 206, 201, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 206, 201, 0.3);
}

.toast-error {
  background: rgba(255, 107, 107, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.toast-info {
  background: rgba(162, 155, 254, 0.15);
  color: var(--blue);
  border: 1px solid rgba(162, 155, 254, 0.3);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 53px;
    bottom: 0;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .app-main {
    padding: 1rem;
  }

  .app-header {
    padding: 0.75rem 1rem;
  }

  .user-name-text {
    display: none;
  }

  .recording-controls {
    gap: 1rem;
  }

  .timer {
    font-size: 1.25rem;
  }

  .entry-header {
    flex-wrap: wrap;
  }

  .entry-badges {
    width: 100%;
    margin-top: 0.25rem;
    margin-left: calc(36px + 0.75rem);
  }

  .feed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }
}
