/* ==========================================================================
   ORBIFY LIFE — PROJETOS & METAS SYSTEM
   Minimalist, Clean Apple/Notion Bento Project Cards & Modal
   Unificado: Projetos por Etapas e Metas Numéricas no mesmo padrão
   ========================================================================== */

.projects-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  min-height: calc(100vh - 60px);
  background: var(--bg-deep, #0a0b0e);
  color: var(--text-main, #f5f5f5);
  box-sizing: border-box;
}

body.dashboard-theme-white .projects-wrapper {
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* ==========================================================================
   1. EMPTY STATE (CENTRAL "+" BUTTON)
   ========================================================================== */
.projects-empty-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: auto;
}

.btn-create-project-central {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(165, 255, 143, 0.12);
  border: 1.5px solid rgba(165, 255, 143, 0.35);
  color: var(--color-life, #a5ff8f);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 28px rgba(165, 255, 143, 0.1);
  outline: none;
}

.btn-create-project-central:hover {
  background: var(--color-life, #a5ff8f);
  border-color: var(--color-life, #a5ff8f);
  color: #0a0b0e;
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(165, 255, 143, 0.35);
}

.btn-create-project-central:active {
  transform: scale(0.96);
}

.projects-empty-label {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-secondary, #94a3b8);
  margin-top: 1rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

body.dashboard-theme-white .btn-create-project-central {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

body.dashboard-theme-white .btn-create-project-central:hover {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(21, 128, 61, 0.25);
}

body.dashboard-theme-white .projects-empty-label {
  color: #64748b;
}

/* ==========================================================================
   2. PROJETOS HEADER TOOLBAR
   ========================================================================== */
.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

body.dashboard-theme-white .projects-toolbar {
  background: rgb(252 252 252 / 93%);
  border-color: rgba(0, 0, 0, 0.06);
}

.projects-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.projects-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.projects-toolbar-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin: 0;
}

body.dashboard-theme-white .projects-toolbar-title {
  color: #0f172a;
}

.projects-count-pill {
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

body.dashboard-theme-white .projects-count-pill {
  background: #f1f5f9;
  color: #64748b;
}

/* Filter pills (Todos / Em Andamento / Concluídos) */
.projects-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

body.dashboard-theme-white .projects-filter-pills {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.projects-filter-btn {
  font-size: 0.76rem;
  font-weight: 400;
  padding: 0.3rem 0.65rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.projects-filter-btn:hover {
  color: var(--text-bright);
}

.projects-filter-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
  font-weight: 400;
}

body.dashboard-theme-white .projects-filter-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.projects-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-new-project {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 400;
  background: rgba(165, 255, 143, 0.16);
  border: 1px solid rgba(165, 255, 143, 0.35);
  color: var(--color-life, #a5ff8f);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-new-project:hover {
  background: rgba(165, 255, 143, 0.25);
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .btn-new-project {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}

body.dashboard-theme-white .btn-new-project:hover {
  background: #166534;
}

/* ==========================================================================
   3. PROJETOS GRID & CARDS
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.project-card {
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s ease, transform 0.18s ease;
  position: relative;
  overflow: hidden;
  max-height: 380px;
  box-sizing: border-box;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

body.dashboard-theme-white .project-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

body.dashboard-theme-white .project-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
}

/* Color Accent Top Bar */
.project-card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

/* Card Header */
.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-card-badges-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.project-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 400;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 400;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

body.dashboard-theme-white .project-type-badge {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.btn-card-action {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.8rem;
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
}

body.dashboard-theme-white .btn-card-action:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-card-action.delete-btn:hover {
  color: #ef4444;
}

/* Title and Date */
.project-card-title {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-bright);
  letter-spacing: -0.015em;
  margin: 0;
  word-break: break-word;
  line-height: 1.35;
}

body.dashboard-theme-white .project-card-title {
  color: #0f172a;
}

.project-date-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

body.dashboard-theme-white .project-date-row {
  color: #64748b;
}

/* Progress bar & Metrics */
.project-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

body.dashboard-theme-white .project-progress-text-row {
  color: #64748b;
}

.project-progress-percent {
  font-weight: 400;
  color: var(--text-bright);
}

body.dashboard-theme-white .project-progress-percent {
  color: #0f172a;
}

.project-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body.dashboard-theme-white .project-progress-track {
  background: #f1f5f9;
}

.project-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Completed Project Badge */
.project-completed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  width: fit-content;
}

body.dashboard-theme-white .project-completed-pill {
  background: rgba(21, 128, 61, 0.1);
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.25);
}

/* Steps List inside Card */
.project-steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-height: 0;
}

.project-steps-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
  flex: 1;
  min-height: 0;
  max-height: 185px;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.project-steps-scroll::-webkit-scrollbar {
  width: 4px;
}

.project-steps-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.project-steps-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transition: background 0.15s ease;
}

.project-steps-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

body.dashboard-theme-white .project-steps-scroll {
  scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

body.dashboard-theme-white .project-steps-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
}

body.dashboard-theme-white .project-steps-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.38);
}

.project-step-empty-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.5rem 0.25rem;
}

.project-step-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.project-step-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.dashboard-theme-white .project-step-row {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.04);
}

body.dashboard-theme-white .project-step-row:hover {
  background: #f1f5f9;
}

.project-step-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--text-muted);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-size: 0.68rem;
  color: transparent;
  padding: 0;
}

.project-step-row.completed .project-step-checkbox,
.project-step-checkbox.checked {
  color: #000000;
  border-color: currentColor;
}

.project-step-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.35;
  flex: 1;
  word-break: break-word;
  transition: all 0.15s ease;
}

body.dashboard-theme-white .project-step-text {
  color: #1e293b;
}

.project-step-row.completed .project-step-text,
.project-step-text.completed {
  text-decoration: line-through;
  opacity: 0.55;
  color: var(--text-muted);
}

.btn-delete-step {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.project-step-row:hover .btn-delete-step {
  opacity: 1;
}

.btn-delete-step:hover {
  color: #ef4444;
}

/* Quick Add Step Input in Card */
.project-quick-step-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.project-quick-step-input {
  flex: 1;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.project-quick-step-input:focus {
  border-color: var(--color-life, #a5ff8f);
  background: rgba(255, 255, 255, 0.05);
}

body.dashboard-theme-white .project-quick-step-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.dashboard-theme-white .project-quick-step-input:focus {
  border-color: #15803d;
  background: #ffffff;
}

.btn-project-quick-add {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.75rem;
  padding: 0;
}

.btn-project-quick-add:hover {
  background: rgba(165, 255, 143, 0.2);
  color: var(--color-life, #a5ff8f);
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .btn-project-quick-add {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

body.dashboard-theme-white .btn-project-quick-add:hover {
  background: rgba(21, 128, 61, 0.15);
  color: #15803d;
  border-color: #15803d;
}

/* Numeric Target / Goal Controls in Card */
.project-target-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

body.dashboard-theme-white .project-target-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.project-target-current-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.project-target-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.dashboard-theme-white .project-target-label {
  color: #64748b;
}

.project-target-values {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-bright);
}

body.dashboard-theme-white .project-target-values {
  color: #0f172a;
}

.project-target-goal-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

body.dashboard-theme-white .project-target-goal-text {
  color: #64748b;
}

.project-target-buttons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-target-adjust {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-target-adjust:hover {
  background: rgba(165, 255, 143, 0.2);
  color: var(--color-life, #a5ff8f);
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .btn-target-adjust {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.dashboard-theme-white .btn-target-adjust:hover {
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
  border-color: #15803d;
}

.btn-target-edit-num {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-target-edit-num:hover {
  color: var(--text-bright);
  border-color: var(--border-hover);
}

body.dashboard-theme-white .btn-target-edit-num {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

/* Card Notes Preview (if any) */
.project-notes-preview {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--border-subtle);
  padding: 0.35rem 0.65rem;
  border-radius: 0 6px 6px 0;
  line-height: 1.4;
  word-break: break-word;
}

body.dashboard-theme-white .project-notes-preview {
  background: #f8fafc;
  color: #64748b;
  border-left-color: #cbd5e1;
}

/* ==========================================================================
   4. MODAL: NOVO / EDITAR PROJETO
   ========================================================================== */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.project-modal-backdrop.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.project-modal-card {
  background: var(--bg-surface, #121318);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

body.dashboard-theme-white .project-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.project-modal-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin: 0;
}

body.dashboard-theme-white .project-modal-title {
  color: #0f172a;
}

.btn-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.95rem;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
}

.project-modal-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.project-modal-input:focus {
  border-color: var(--color-life, #a5ff8f);
  background: rgba(255, 255, 255, 0.06);
}

body.dashboard-theme-white .project-modal-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.dashboard-theme-white .project-modal-input:focus {
  border-color: #15803d;
  background: #ffffff;
}

/* Segmented Type Switcher (Por Etapas vs Meta Numérica) */
.project-type-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

body.dashboard-theme-white .project-type-segmented {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.btn-type-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-type-tab:hover {
  color: var(--text-bright);
}

.btn-type-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-bright);
  font-weight: 400;
}

body.dashboard-theme-white .btn-type-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Category preset pills */
.category-preset-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.category-pill-btn {
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.category-pill-btn:hover {
  background: rgba(165, 255, 143, 0.15);
  border-color: rgba(165, 255, 143, 0.3);
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .category-pill-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

body.dashboard-theme-white .category-pill-btn:hover {
  background: rgba(21, 128, 61, 0.12);
  border-color: rgba(21, 128, 61, 0.3);
  color: #15803d;
}

/* Color Circles Picker */
.color-picker-circles-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
}

.color-circle-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.65rem;
  padding: 0;
}

.color-circle-btn:hover {
  transform: scale(1.15);
}

.color-circle-btn.selected {
  transform: scale(1.2);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

body.dashboard-theme-white .color-circle-btn.selected {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

/* Modal Steps Builder */
.modal-steps-builder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-builder-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.builder-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

body.dashboard-theme-white .builder-item-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.builder-item-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-bright);
}

body.dashboard-theme-white .builder-item-text {
  color: #0f172a;
}

.btn-remove-builder-item {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.btn-remove-builder-item:hover {
  color: #ef4444;
}

.builder-add-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.builder-add-input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.builder-add-input:focus {
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .builder-add-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-builder-add {
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-builder-add:hover {
  background: rgba(165, 255, 143, 0.2);
  color: var(--color-life, #a5ff8f);
  border-color: var(--color-life, #a5ff8f);
}

/* Modal Actions */
.project-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-modal-cancel {
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
}

body.dashboard-theme-white .btn-modal-cancel {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.btn-modal-submit {
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  background: var(--color-life, #a5ff8f);
  border: 1px solid var(--color-life, #a5ff8f);
  color: #0a0b0e;
  font-size: 0.84rem;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}

.btn-modal-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

body.dashboard-theme-white .btn-modal-submit {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
}

body.dashboard-theme-white .btn-modal-submit:hover {
  background: #166534;
}

/* ==========================================================================
   5. COLLABORATION (CONVIDAR USUÁRIOS PARA PROJETOS & METAS)
   ========================================================================== */
.project-shared-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 400;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38bdf8;
  width: fit-content;
  letter-spacing: 0.01em;
}

.project-shared-badge.shared-with-me {
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.28);
  color: #c084fc;
}

body.dashboard-theme-white .project-shared-badge {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0284c7;
}

body.dashboard-theme-white .project-shared-badge.shared-with-me {
  background: #f3e8ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}

.btn-card-action.collab-btn {
  color: var(--text-muted);
  position: relative;
}

.btn-card-action.collab-btn:hover {
  color: var(--color-life, #a5ff8f);
  background: rgba(165, 255, 143, 0.15);
}

body.dashboard-theme-white .btn-card-action.collab-btn:hover {
  color: #15803d;
  background: rgba(21, 128, 61, 0.12);
}

.collab-count-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--color-life, #a5ff8f);
  color: #0a0b0e;
  font-size: 0.58rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  border: 1.5px solid #141518;
}

body.dashboard-theme-white .collab-count-dot {
  background: #15803d;
  color: #ffffff;
  border-color: #ffffff;
}

.collab-invite-box {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.dashboard-theme-white .collab-invite-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.collab-members-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.collab-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
}

.collab-member-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

body.dashboard-theme-white .collab-member-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.collab-member-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collab-member-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  display: block;
}

body.dashboard-theme-white .collab-member-avatar-img {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.collab-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface, #121318);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
}

body.dashboard-theme-white .collab-avatar-badge {
  background: #ffffff;
  border-color: #facc15;
}

.collab-member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(165, 255, 143, 0.15);
  color: var(--color-life, #a5ff8f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 400;
  flex-shrink: 0;
  text-transform: uppercase;
  border: 1px solid rgba(165, 255, 143, 0.3);
}

.collab-member-avatar.other {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

body.dashboard-theme-white .collab-member-avatar {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

body.dashboard-theme-white .collab-member-avatar.other {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #7dd3fc;
}

.collab-member-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.collab-member-name {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dashboard-theme-white .collab-member-name {
  color: #0f172a;
}

.collab-member-email {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collab-member-role-badge {
  font-size: 0.66rem;
  font-weight: 400;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.collab-member-role-badge.owner {
  background: rgba(165, 255, 143, 0.15);
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .collab-member-role-badge.owner {
  color: #143000 !important;
  background: rgba(191, 249, 80, 0.35) !important;
  border: 1px solid rgba(60, 110, 15, 0.45) !important;
  font-weight: 500 !important;
}

.collab-member-role-badge.collab {
  background: rgba(165, 255, 143, 0.15);
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .collab-member-role-badge.collab {
  color: #143000 !important;
  background: rgba(191, 249, 80, 0.35) !important;
  border: 1px solid rgba(60, 110, 15, 0.45) !important;
  font-weight: 500 !important;
}

.btn-remove-collab {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.btn-remove-collab:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .projects-wrapper {
    padding: 0.85rem 1rem;
  }

  .projects-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.85rem 0.5rem;
    align-items: center;
    padding: 0.85rem 1rem;
  }

  .projects-toolbar-left {
    display: contents;
  }

  .projects-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    grid-column: 1;
    grid-row: 1;
  }

  .projects-toolbar-right {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
  }

  .btn-new-project {
    padding: 0.42rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .projects-filter-pills {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    width: 100%;
    gap: 0.25rem;
    box-sizing: border-box;
  }

  .projects-filter-btn {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}