/* =======================
   ESTÚDIO 741 - DASHBOARD V2
   ======================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --accent: #d5a021;
  --bg1: #0b132b;
  --bg2: #1c2541;
  --text: #ffffff;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ===== ANIMAÇÃO DE FUNDO ===== */
body {
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 1s ease;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== CABEÇALHO ===== */
.header {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo h1 {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ffd77d, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== MENU ===== */
.menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu li {
  cursor: pointer;
  position: relative;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #bbb;
}

.menu li.active {
  color: var(--accent);
}

.menu li.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.menu li:hover {
  color: var(--text);
}

/* ===== CONTEÚDO PRINCIPAL ===== */
main {
  flex: 1;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: stretch;
  transition: all 0.6s ease;
}

.project-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1300px;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== COLUNAS ===== */
.column {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  max-height: 70vh;
  position: relative;
  transition: all 0.3s ease;
}

.column::-webkit-scrollbar {
  width: 6px;
}
.column::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 5px;
}

/* ===== TÍTULOS DAS COLUNAS ===== */
h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
}

h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  opacity: 0.9;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

/* ===== CHECKLIST ===== */
ul.tasks {
  list-style: none;
  padding: 0;
}

ul.tasks li {
  background: rgba(255,255,255,0.07);
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  transition: 0.3s ease;
}

ul.tasks li:hover {
  background: rgba(255,255,255,0.12);
}

ul.tasks li input {
  margin-right: 10px;
  accent-color: var(--accent);
  transform: scale(1.2);
  transition: 0.3s ease;
}

ul.tasks li input:checked + span {
  text-decoration: line-through;
  color: #ccc;
}

/* ===== BARRA DE PROGRESSO ===== */
.progress {
  height: 6px;
  width: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.progress-inner {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}

/* ===== BOTÕES ===== */
.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2rem;
  gap: 0.5rem;
}

button {
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.encerrar {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 15px var(--accent);
}
.encerrar:hover { transform: scale(1.05); }

.limpar {
  background: #d63031;
  color: #fff;
}
.limpar:hover { transform: scale(1.05); background: #a92020; }

/* ===== BLOCO DE DADOS TÉCNICOS ===== */
.data-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  white-space: pre-wrap;
  font-size: 0.85rem;
  line-height: 1.4;
  border-left: 3px solid var(--accent);
}

.copy-btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.copy-btn:hover { transform: scale(1.05); }

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.modal.hidden { display: none; }

.modal-content {
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2rem 3rem;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  animation: zoomIn 0.4s ease;
  border: 1px solid rgba(255,255,255,0.2);
}
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

#closeModal {
  background: var(--accent);
  color: #000;
  margin-top: 1rem;
}

/* ===== RODAPÉ ===== */
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #ddd;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== TEMAS DINÂMICOS POR PROJETO ===== */
body.inflexao {
  --accent: #d5a021;
  --bg1: #0b132b;
  --bg2: #1c2541;
}

body.sensocomum {
  --accent: #b30000;
  --bg1: #000000;
  --bg2: #400000;
}

body.codigodojogo {
  --accent: #c9a43e;
  --bg1: #000000;
  --bg2: #1e1e1e;
}

body.evolua {
  --accent: #00ffcc;
  --bg1: #0077ff;
  --bg2: #00a86b;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 900px) {
  .project-container {
    grid-template-columns: 1fr;
  }
}
