/* Projetos - ajustes locais (não afeta navbar/footer) */

.projetos-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: var(--text);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #1f2636;
  padding-bottom: 0.75rem;
}
.page-header .muted { color: var(--muted); margin: 0; }
.eyebrow {
  color: #66fcf1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin: 0 0 0.5rem 0;
}
.actions { display: flex; align-items: center; }
#btnNovoProjeto {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: #2e8bff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(46, 139, 255, 0.25);
}
#btnNovoProjeto:hover { background: #1f6ed4; }

.tabs,
.status-filtros {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.tab-button,
.status-button {
  flex: 1;
  padding: 12px 10px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  background: #111827;
  color: #dce7ff;
  box-shadow: inset 0 0 0 1px #1f2636;
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.tab-button.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}
.status-button.active {
  background: #0ea5e9;
  color: #04111f;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
}
.status-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(231, 76, 60, 0.35);
}

.projeto-card {
  background: #0f172a;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid #1f2937;
  overflow: hidden;
  color: #eaf2ff;
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
  position: relative;
}
.projeto-header {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(120deg, #0f172a, #0b1322 70%);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.projeto-header:hover { background: #182033; }
.projeto-codigo {
  font-weight: 800;
  min-width: 88px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8d363, #f2b23c);
  color: #1b1307;
  border: 1px solid rgba(255, 210, 90, 0.9);
  box-shadow:
    0 0 0 2px rgba(248, 211, 99, 0.25),
    0 10px 30px rgba(248, 211, 99, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.6);
}
.projeto-nome { flex: 1; font-weight: 700; }
.projeto-tipo { font-size: 0.9rem; color: #cbd7ef; }
.status-badge { padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.edit-btn,
.delete-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  color: #fff;
}
.edit-btn { background: #2e8bff; }
.delete-btn { background: #e74c3c; }

.projeto-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 16px;
}
.projeto-card.open .projeto-body {
  padding: 12px 16px 16px 16px;
  max-height: 2000px;
}

h3 {
  margin-top: 10px;
  margin-bottom: 8px;
  color: #f4f7ff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.status-select,
.tabela select,
.tabela input[type="date"] {
  background: #0c1424;
  color: #eaf2ff;
  border: 1px solid #24304a;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  width: 100%;
  box-sizing: border-box;
}
.tabela input[type="date"] {
  width: 100%;
}
.tabela input[type="text"] {
  width: 100%;
  background: transparent;
  border: none;
  color: #eaf2ff;
}
.email-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.copy-btn {
  background: #2e8bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(46,139,255,0.2);
  white-space: nowrap;
}
.copy-btn:hover { background: #1f6ed4; }

.tabela {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 0.95rem;
  background: #0c1324;
  border: 1px solid #1d2434;
  border-radius: 10px;
  overflow: hidden;
  table-layout: fixed;
}
.tabela th,
.tabela td {
  border: 1px solid #1d2434;
  padding: 6px 8px;
  color: #eaf2ff;
  vertical-align: middle;
  word-break: break-word;
}
.tabela th {
  background: #111a2b;
  color: #f6f9ff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.obs-texto {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #1f2636;
  background: #0a101f;
  color: #e6edf6;
  padding: 8px;
  resize: vertical;
  min-height: 110px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.mini-btn {
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  border: none;
  background: #1f2636;
  color: #c9d7f0;
  cursor: pointer;
  font-size: 0.85rem;
}
.mini-btn:hover { background: #2a3349; }

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.save-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: #1fb5a8;
  color: #0a101f;
  cursor: pointer;
  font-weight: 700;
}
.save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.card-message { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 768px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .tabs, .status-filtros { flex-direction: column; }
  .status-button { flex: 1 1 auto; }
  .projeto-header { flex-wrap: wrap; }
  .card-actions { flex-direction: column; align-items: flex-start; }
  .projetos-wrapper { padding: 1.25rem 0.75rem 2rem; }
}

.proj-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.proj-modal.hidden { display: none; }
.proj-modal__content {
  background: #0f172a;
  border: 1px solid #1f2636;
  border-radius: 12px;
  padding: 18px;
  width: min(420px, 92vw);
  color: #e6edf6;
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}
.proj-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.proj-modal__close {
  background: transparent;
  border: none;
  color: #9fb0c7;
  font-size: 1.4rem;
  cursor: pointer;
}
.proj-modal__body { display: flex; flex-direction: column; gap: 10px; }
.proj-field { display: flex; flex-direction: column; gap: 4px; }
.proj-field span { font-weight: 600; color: #c9d7f0; font-size: 0.95rem; }
.proj-field input,
.proj-field select {
  background: #0c1424;
  border: 1px solid #1f2636;
  border-radius: 8px;
  color: #e6edf6;
  padding: 8px 10px;
}
.proj-modal__footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.btn-cancel,
.btn-save {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn-cancel { background: #1f2636; color: #c9d7f0; }
.btn-save { background: #2e8bff; color: #fff; }
.proj-modal__msg { min-height: 18px; font-size: 0.9rem; color: #e6edf6; }
