*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0f1117;
  --bg2: #161b27;
  --bg3: #1e2535;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #e8eaf0;
  --text2: #8892a4;
  --text3: #4a5568;
  --accent: #3b82f6;
  --accent2: #1d4ed8;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --radius: 10px;
  --radius-lg: 16px;
}
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; font-size: 14px; }
#app { display: flex; min-height: 100vh; }

.sidebar { width: 220px; background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px 0; position: fixed; top: 0; left: 0; height: 100vh; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.logo-icon { width: 36px; height: 36px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: #fff; flex-shrink: 0; }
.logo-title { font-size: 15px; font-weight: 600; color: var(--text); }
.logo-sub { font-size: 10px; color: var(--text3); font-family: 'DM Mono', monospace; }
.sidebar-nav { flex: 1; padding: 0 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); color: var(--text2); cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.15s; text-decoration: none; }
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(59,130,246,0.15); color: var(--accent); }
.nav-icon { font-size: 15px; width: 18px; text-align: center; }
.sidebar-footer { padding: 16px 20px 0; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text2); }
.health-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text3); transition: background 0.3s; }
.health-dot.ok { background: var(--green); }
.health-dot.err { background: var(--red); }

.main { margin-left: 220px; flex: 1; padding: 32px; min-height: 100vh; }
.page { display: none; }
.page.active { display: block; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.page-header h1 { font-size: 22px; font-weight: 600; color: var(--text); }
.page-sub { font-size: 13px; color: var(--text2); margin-top: 3px; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; }

.btn-primary { background: var(--accent); color: #fff; border: none; padding: 9px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.15s; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); padding: 7px 14px; border-radius: var(--radius); font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-danger { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); padding: 5px 12px; border-radius: 6px; font-size: 11px; cursor: pointer; font-family: 'DM Sans', sans-serif; }

select, input, textarea { background: var(--bg3); color: var(--text); border: 1px solid var(--border2); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; font-family: 'DM Sans', sans-serif; outline: none; transition: border 0.15s; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); }
select option { background: var(--bg2); }
textarea { resize: vertical; min-height: 80px; }

.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.metric-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.metric-label { font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.metric-value { font-size: 28px; font-weight: 600; line-height: 1; }
.metric-value.blue { color: var(--accent); }
.metric-value.green { color: var(--green); }
.metric-value.amber { color: var(--amber); }
.metric-value.purple { color: var(--purple); }
.metric-sub { font-size: 11px; color: var(--text3); margin-top: 6px; }

.roadmap-container { display: flex; flex-direction: column; gap: 20px; }
.roadmap-project { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.roadmap-project-header { padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.roadmap-project-name { font-size: 15px; font-weight: 600; flex: 1; }
.roadmap-project-client { font-size: 12px; color: var(--text2); }
.roadmap-sprints { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.sprint-row { display: flex; align-items: center; gap: 14px; }
.sprint-label { width: 140px; flex-shrink: 0; }
.sprint-name { font-size: 12px; font-weight: 500; color: var(--text); }
.sprint-dates { font-size: 10px; color: var(--text3); font-family: 'DM Mono', monospace; }
.sprint-track { flex: 1; height: 32px; background: var(--bg3); border-radius: 6px; position: relative; overflow: hidden; border: 1px solid var(--border); }
.sprint-bar { height: 100%; border-radius: 5px; display: flex; align-items: center; padding: 0 10px; font-size: 11px; font-weight: 500; color: #fff; position: absolute; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: width 0.6s ease; }
.sprint-meta { width: 100px; flex-shrink: 0; text-align: right; }
.sprint-hours { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--text2); }
.sprint-activities { font-size: 10px; color: var(--text3); }
.timeline-header { padding: 8px 20px 4px; display: flex; align-items: center; gap: 14px; }
.timeline-spacer { width: 140px; flex-shrink: 0; }
.timeline-months { flex: 1; display: flex; position: relative; height: 20px; }
.timeline-month { font-size: 10px; color: var(--text3); font-family: 'DM Mono', monospace; position: absolute; }
.sprint-goal { font-size: 10px; color: var(--text2); margin-top: 2px; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.project-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; transition: border-color 0.15s; }
.project-card:hover { border-color: var(--border2); }
.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.project-card-name { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.project-card-client { font-size: 12px; color: var(--text2); margin-top: 3px; }
.project-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.project-stats { display: flex; gap: 16px; }
.project-stat { font-size: 11px; color: var(--text3); }
.project-stat span { color: var(--text2); font-weight: 500; font-family: 'DM Mono', monospace; }
.progress-bar { height: 4px; background: var(--bg3); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width 0.5s; }

.sprint-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 12px; }
.sprint-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sprint-card-name { font-size: 14px; font-weight: 600; }
.sprint-card-project { font-size: 11px; color: var(--text3); margin-top: 2px; }
.sprint-card-goal { font-size: 12px; color: var(--text2); margin: 8px 0; padding: 8px 12px; background: var(--bg3); border-radius: 6px; border-left: 3px solid var(--accent); }
.sprint-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text3); }

.activity-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 14px; transition: border-color 0.15s; }
.activity-item:hover { border-color: var(--border2); }
.activity-phase-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.activity-name { flex: 1; font-size: 13px; font-weight: 500; }
.activity-meta { font-size: 11px; color: var(--text3); margin-top: 2px; }
.activity-hours { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text2); white-space: nowrap; }
.activity-actions { display: flex; gap: 6px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.member-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.member-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: #fff; margin-bottom: 12px; }
.member-name { font-size: 15px; font-weight: 600; }
.member-role { font-size: 12px; color: var(--text2); margin-top: 2px; }
.member-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.member-stat { background: var(--bg3); border-radius: 6px; padding: 8px 10px; }
.member-stat-label { font-size: 10px; color: var(--text3); }
.member-stat-value { font-size: 15px; font-weight: 600; font-family: 'DM Mono', monospace; color: var(--text); margin-top: 2px; }

.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.badge-network { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-security { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-sdwan { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-cloud { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-hybrid { background: rgba(139,92,246,0.15); color: #a78bfa; }
.badge-planejado { background: rgba(100,116,139,0.15); color: #94a3b8; }
.badge-em-andamento { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-concluido { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-pausado { background: rgba(239,68,68,0.12); color: #f87171; }
.badge-pendente { background: rgba(100,116,139,0.12); color: #94a3b8; }
.badge-alto { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-medio { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-baixo { background: rgba(16,185,129,0.15); color: #34d399; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); }
.modal-overlay.hidden { display: none; }
.modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 28px; width: 540px; max-width: 95vw; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h2 { font-size: 17px; font-weight: 600; }
.modal-close { background: transparent; border: none; color: var(--text2); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { background: var(--bg3); color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 11px; font-weight: 500; color: var(--text2); text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state-icon { font-size: 36px; margin-bottom: 12px; }
.empty-state-text { font-size: 14px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--bg3); border: 1px solid var(--border2); color: var(--text); padding: 12px 20px; border-radius: var(--radius); font-size: 13px; z-index: 2000; transition: opacity 0.3s; }
.toast.hidden { display: none; }
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error { border-color: var(--red); color: var(--red); }

.actions-row { display: flex; gap: 6px; }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
