/* ==========================================================================
   ANORAK UI COMPONENTS - OASIS THEME
   ========================================================================== */

/* Glass Card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hud);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
}

/* ==========================================================================
   1. TOP NAVIGATION / HUD HEADER
   ========================================================================== */
.anorak-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  position: sticky;
  top: 1rem;
  z-index: 100;
  border-radius: var(--radius-full);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.avatar-halo {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
  box-shadow: 0 0 15px var(--primary-glow);
  animation: float-pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes float-pulse-glow {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 12px var(--primary-glow);
  }
  100% {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 22px rgba(0, 242, 254, 0.65), 0 0 15px rgba(138, 43, 226, 0.4);
  }
}

.avatar-halo img, .avatar-halo .avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #ffffff 20%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Dual Mode Navigation Switcher */
.dual-mode-nav {
  display: flex;
  background: rgba(5, 8, 17, 0.7);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.mode-btn:hover {
  color: #fff;
}

.mode-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.15));
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

/* Action Shortcuts in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.btn-icon:hover {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-magic {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  border: none;
  color: #050811;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: all var(--transition-bounce);
}

.btn-magic:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

/* ==========================================================================
   2. INTELLIGENCE HUD BAR (Quick Stats & Passive Watcher)
   ========================================================================== */
.intelligence-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.intel-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.intel-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.intel-icon-box.purple {
  background: rgba(138, 43, 226, 0.1);
  color: #c084fc;
  border-color: rgba(138, 43, 226, 0.25);
}

.intel-icon-box.amber {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.intel-content h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.intel-content .intel-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.intel-content .intel-hint {
  font-size: 0.75rem;
  color: var(--primary-cyan);
}

/* ==========================================================================
   3. OPERATIONAL MODE (3 Projetos de Homologação)
   ========================================================================== */
.view-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.35s ease forwards;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.view-header h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Projects Grid & Google Drive Style List View */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.projects-grid.list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.project-list-row {
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr auto;
  align-items: center;
  gap: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(13, 19, 33, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  transition: all 0.2s ease;
}

.project-list-row:hover {
  background: rgba(13, 19, 33, 0.95);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  transform: translateX(4px);
}

.list-col-main .list-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@media (max-width: 1024px) {
  .project-list-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.project-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--accent-purple));
  opacity: 0.7;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Halliday Keys Indicator (Copper, Jade, Crystal) */
.halliday-keys-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.85rem;
  opacity: 0.25;
  filter: grayscale(1);
  transition: all var(--transition-bounce);
  position: relative;
}

.key-badge.active.copper {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(245, 158, 11, 0.2);
  color: var(--key-copper);
  border: 1px solid var(--key-copper);
  box-shadow: 0 0 12px var(--key-copper-glow);
}

.key-badge.active.jade {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(16, 185, 129, 0.2);
  color: var(--key-jade);
  border: 1px solid var(--key-jade);
  box-shadow: 0 0 12px var(--key-jade-glow);
}

.key-badge.active.crystal {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(56, 189, 248, 0.25);
  color: var(--key-crystal);
  border: 1px solid var(--key-crystal);
  box-shadow: 0 0 15px var(--key-crystal-glow);
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Project Progress & Phase Indicator */
.phase-progress-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.gauge-holder {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
}

.progress-bar-bg {
  height: 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--primary-glow);
  transition: width 0.4s ease;
}

/* Homologation Checklist */
.checklist-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(5, 8, 17, 0.45);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.checklist-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  background: rgba(13, 20, 36, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.check-item:hover {
  background: rgba(18, 28, 51, 0.8);
  border-color: rgba(0, 242, 254, 0.2);
}

.check-item.done {
  opacity: 0.7;
}

.check-item.done .check-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  color: transparent;
}

.check-item.done .custom-checkbox {
  background: var(--key-jade);
  border-color: var(--key-jade);
  color: #050811;
  box-shadow: 0 0 8px var(--key-jade-glow);
}

.check-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.check-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.check-timestamp {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Context Links Hub */
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.context-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.context-link-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  min-width: 58px;
  min-height: 52px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.context-link-btn svg {
  display: block;
  margin-bottom: 2px;
}

.context-link-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  border-color: rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   4. INCUBATOR MODE (Repositório de Ideias)
   ========================================================================== */
.incubator-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-btn:hover, .tag-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary-cyan);
  border-color: rgba(0, 242, 254, 0.4);
}

.ideas-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.idea-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: all var(--transition-smooth);
}

.idea-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.15);
}

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

.idea-title {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge.prioritized {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.badge.draft {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.badge.backlog {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.idea-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
  max-height: 150px;
  overflow-y: auto;
}

.idea-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.idea-tag-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.idea-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-promote {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(0, 242, 254, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-bounce);
}

.btn-promote:hover {
  background: linear-gradient(135deg, #10b981, #00f2fe);
  color: #050811;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  transform: scale(1.05);
}

/* ==========================================================================
   5. DECISION MATRIX SECTION ("Onde investir meu tempo hoje?")
   ========================================================================== */
.matrix-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .matrix-section {
    grid-template-columns: 1fr;
  }
}

.matrix-quadrant-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  min-height: 320px;
}

.matrix-quadrant {
  background: rgba(10, 15, 29, 0.6);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.matrix-quadrant.q1 { border-left: 3px solid #ef4444; }
.matrix-quadrant.q2 { border-left: 3px solid var(--primary-cyan); }
.matrix-quadrant.q3 { border-left: 3px solid #f59e0b; }
.matrix-quadrant.q4 { border-left: 3px solid #64748b; }

.quadrant-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.quadrant-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  max-height: 120px;
}

.quadrant-item {
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  color: var(--text-secondary);
}

.matrix-advisor {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

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

.advisor-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-highlight);
  font-style: italic;
  background: rgba(0, 242, 254, 0.05);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-cyan);
}

/* ==========================================================================
   6. MODALS & FORMS (Quick Capture, Promote Wizard, Configs)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.35rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
}

.modal-close:hover {
  color: #fff;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(13, 20, 36, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 12px var(--primary-glow);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-secondary {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* Voice Dictation Status in Quick Capture */
.voice-status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 242, 254, 0.05);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-sm);
}

.voice-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--primary-cyan);
}

.voice-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-cyan);
}

.voice-pulse.recording {
  background: #ef4444;
  animation: pulseRecording 1s infinite;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 0.85rem 1.25rem;
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid var(--primary-cyan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  color: #fff;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   7. GOVERNANCE & AUDIT TRAIL COMPONENTS
   ========================================================================== */
.project-responsible-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.project-responsible-row span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.responsible-select {
  background: transparent;
  border: none;
  color: var(--primary-cyan);
  font-family: var(--font-main);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.responsible-select:hover, .responsible-select:focus {
  background: rgba(255, 255, 255, 0.05);
}

.responsible-select option {
  background: var(--bg-surface);
  color: #fff;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(13, 20, 36, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}

.check-item-click-target {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  cursor: pointer;
}

.check-evidence-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 0.75rem;
}

.btn-evidence-attach {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-evidence-attach:hover {
  color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.08);
}

.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary-cyan);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.evidence-badge a {
  color: inherit;
  text-decoration: none;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.evidence-badge a:hover {
  text-decoration: underline;
}

.btn-evidence-delete {
  background: transparent;
  border: none;
  color: var(--accent-magenta);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.btn-evidence-delete:hover {
  transform: scale(1.2);
}

/* Collapsible Audit Timeline Section */
.audit-collapse-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.audit-collapse-trigger {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.audit-collapse-trigger:hover {
  color: var(--text-secondary);
}

.audit-timeline-content {
  margin-top: 0.75rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 10px;
}

.audit-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audit-timeline-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  padding-bottom: 0.25rem;
}

.audit-timeline-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.audit-user {
  color: var(--primary-blue);
  font-weight: 600;
}

.audit-timeline-action {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.audit-timeline-action strong {
  color: #fff;
}

.audit-timeline-details {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Mobile Header Adaptations */
@media (max-width: 768px) {
  .anorak-header {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
  }
  .brand-section {
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }
  .brand-info {
    align-items: center;
  }
  .dual-mode-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .dual-mode-nav .mode-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   ANIMAÇÃO DE HIGHLIGHT E NAVEGAÇÃO DE PROJETOS DA MATRIZ
   ========================================================================== */
@keyframes neonPulse {
  0% { box-shadow: 0 0 5px var(--primary-cyan), inset 0 0 5px var(--primary-cyan); }
  50% { box-shadow: 0 0 25px var(--primary-cyan), 0 0 12px #38bdf8, inset 0 0 15px var(--primary-cyan); border-color: var(--primary-cyan) !important; }
  100% { box-shadow: none; }
}

.highlight-pulse {
  animation: neonPulse 2.5s ease-in-out !important;
  border-color: var(--primary-cyan) !important;
}

.quadrant-item {
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.4rem;
}

.quadrant-item:hover {
  background: rgba(0, 242, 254, 0.12) !important;
  border-color: rgba(0, 242, 254, 0.4) !important;
  transform: translateX(4px);
}

/* ==========================================================================
   ANIMAÇÃO DE ROTAÇÃO E EFEITOS DO SQUAD A-TEAM
   ========================================================================== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spin-animation {
  animation: spin 1s linear infinite !important;
}

/* ==========================================================================
   GIT TELEMETRY & AUTO-SYNC WIDGET
   ========================================================================== */
.git-telemetry-box {
  background: rgba(13, 17, 23, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  margin: 0.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  transition: all 0.25s ease;
}

.git-telemetry-box:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(13, 17, 23, 0.9);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.git-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.git-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
}

.git-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}

.git-pulse-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.git-pulse-dot.error {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.git-pulse-dot.loading {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: neonPulse 1s infinite alternate;
}

.git-commit-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.git-commit-sha {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  text-decoration: none;
  font-weight: 600;
}

.git-commit-sha:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.git-commit-msg {
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.git-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-git-sync {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.btn-git-sync:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   DRAG & DROP - REORDENAÇÃO LIVRE (PLANO LEGEND) & PWA
   ========================================================================== */
.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: grab;
  color: var(--text-muted);
  font-size: 0.95rem;
  user-select: none;
  touch-action: none;
  transition: all 0.2s ease;
}

.drag-handle:hover {
  color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.1);
}

.drag-handle:active {
  cursor: grabbing;
}

.project-card.dragging,
.quadrant-item.dragging {
  opacity: 0.35 !important;
  transform: scale(0.97) !important;
  border: 1px dashed var(--primary-cyan) !important;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3) !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-card.drag-over-before {
  border-left: 4px solid var(--primary-cyan) !important;
  box-shadow: -4px 0 18px rgba(0, 242, 254, 0.5) !important;
}

.project-card.drag-over-after {
  border-right: 4px solid var(--primary-cyan) !important;
  box-shadow: 4px 0 18px rgba(0, 242, 254, 0.5) !important;
}

.project-list-row.drag-over-before {
  border-top: 3px solid var(--primary-cyan) !important;
  box-shadow: 0 -4px 15px rgba(0, 242, 254, 0.5) !important;
}

.project-list-row.drag-over-after {
  border-bottom: 3px solid var(--primary-cyan) !important;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.5) !important;
}

.matrix-quadrant.drag-over {
  background: rgba(0, 242, 254, 0.08) !important;
  border-color: var(--primary-cyan) !important;
  box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.2);
}

.quadrant-item.drag-over {
  border: 1px dashed var(--primary-cyan) !important;
  background: rgba(0, 242, 254, 0.15) !important;
}

/* PWA Install Banner & Mobile Safe Area */
@supports (padding-top: env(safe-area-inset-top)) {
  .anorak-header {
    padding-top: max(0.85rem, env(safe-area-inset-top));
  }
}

.btn-pwa-install {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-pwa-install:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(168, 85, 247, 0.3));
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  color: #ffffff;
}

/* Assinatura de Autoria nos Comentários do CSS */
/*
  Desenvolvido por Mario Henrique (mariozinhocs) - mariozinhocs@gmail.com
  "si vis pacem para bellum"
*/


