/* Component Specific Styles for Sentinel AI */

/* Semi-circular & Radial Gauge */
.gauge-container {
  position: relative;
  width: 180px;
  height: 90px;
  overflow: hidden;
  margin: 0 auto;
}

.gauge-body {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #e2e8f0;
  position: relative;
}

.dark .gauge-body {
  background: #334155;
}

.gauge-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#10b981 0% 72%, #f59e0b 72% 88%, #ef4444 88% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  transform: rotate(0deg);
  transition: transform 1s ease-out;
}

.gauge-cover {
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 50px;
}

.dark .gauge-cover {
  background: #0f172a;
}

/* Terminal & Log Streamer */
.terminal-window {
  background-color: #090d16;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.terminal-line {
  line-height: 1.6;
  font-size: 0.825rem;
  word-break: break-all;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #38bdf8;
  vertical-align: middle;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Kanban Board Styling */
.kanban-column {
  min-height: calc(100vh - 280px);
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}

.kanban-card {
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.kanban-drop-zone.drag-over {
  background-color: rgba(59, 130, 246, 0.1);
  border: 2px dashed #3b82f6;
}

/* Badges & Indicators */
.badge-critical {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-high {
  background-color: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-medium {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-low {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-ai {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Data Flow Diagram SVG connector styling */
.dfd-connection-line {
  stroke-dasharray: 6;
  animation: flowDash 20s linear infinite;
}

@keyframes flowDash {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Risk Heatmap Matrix Grid Cells */
.heatmap-cell {
  transition: transform 0.15s ease, filter 0.15s ease;
}
.heatmap-cell:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
  z-index: 10;
}

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

.toast {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* AI Copilot Drawer Transition */
.copilot-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.copilot-drawer.closed {
  transform: translateX(100%);
}
