/* ========================================================
   1. Dashboard / Overview View Styles
   ======================================================== */
.overview-greeting-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.greeting-text-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.greeting-prompt-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-xl);
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

.greeting-prompt-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.25);
}

.greeting-prompt-bar input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #ffffff;
  box-shadow: none;
  padding: 6px 0;
}

.suggested-prompts-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.suggested-prompt-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-full);
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.suggested-prompt-chip:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Metric Cards Grid */
.metrics-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.metric-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dashboard 2-column layout */
.dashboard-columns-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-header-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Goal Cards in Dashboard */
.goals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-fast);
}

.goal-card:hover {
  border-color: var(--border-medium);
}

.goal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.goal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

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

/* ========================================================
   2. Project Management Styles
   ======================================================== */
.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.projects-list-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.project-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.project-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

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

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========================================================
   3. Task Management Styles
   ======================================================== */
.task-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.task-item-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.task-item-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 2px;
  transition: all var(--transition-fast);
  background: transparent;
  flex-shrink: 0;
}

.task-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.task-title-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
  flex: 1;
}

.task-title-text.completed {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* List view row */
.task-list-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-fast);
}
.task-list-row:hover {
  border-color: var(--border-medium);
}

/* ========================================================
   4. Goal-to-Task Experience Styles
   ======================================================== */
.goal-planner-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.goal-hero-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proposed-task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-fast);
}

.proposed-task-card:hover {
  border-color: var(--border-medium);
}

/* ========================================================
   5. Memory Management Styles
   ======================================================== */
.memory-categories-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.category-chip {
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.category-chip.active {
  background: var(--primary-dim);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--primary-light);
  font-weight: 600;
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.memory-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.memory-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* ========================================================
   6. Workflows & Approvals Styles
   ======================================================== */
.workflows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 24px;
}

.workflow-steps-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.workflow-step-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workflow-step-node::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  border: 2px solid var(--bg-card);
}

.workflow-step-node.succeeded::before {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.workflow-step-node.running::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.workflow-step-node.failed::before {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}
.workflow-step-node.blocked::before {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

/* Approvals Card */
.approval-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 4px solid var(--warning);
}

.approval-card.approved {
  border-left-color: var(--success);
}
.approval-card.rejected {
  border-left-color: var(--danger);
}

.consequence-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--border-radius-md);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #fde68a;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ========================================================
   7. Verification Table Styles
   ======================================================== */
.verification-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.verification-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.verification-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.verification-table tr:last-child td {
  border-bottom: none;
}

.verification-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .metrics-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-columns-grid {
    grid-template-columns: 1fr;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .metrics-summary-grid {
    grid-template-columns: 1fr;
  }
  .chat-suggestions-grid {
    grid-template-columns: 1fr;
  }
}
