@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Bebas+Neue&display=swap');

:root {
  --cinza-azul: #565567;
  --verde-vivo: #87D150;
  --cinza-claro: #CCCCCC;
  --bg: #F6F6F4;
  --ink: #33323F;
  --card-border: #E4E4E0;
  --danger: #C0574A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  margin: 0;
}

/* LOGIN */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cinza-azul);
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.login-card h1 { font-size: 2rem; color: var(--cinza-azul); }
.login-card .subtitle { font-size: 11px; letter-spacing: 0.15em; color: #9A99A6; margin: 2px 0 20px; }
.login-logo { max-width: 220px; width: 100%; height: auto; margin-bottom: 22px; display: block; margin-left: auto; margin-right: auto; }
.login-card form { text-align: left; }
.login-card label { display: block; font-size: 12px; font-weight: 600; color: #6b6a7a; margin: 12px 0 4px; }
.login-card input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--cinza-claro); border-radius: 10px; font-size: 14px; font-family: inherit;
}
.login-card button {
  width: 100%; margin-top: 20px; background: var(--verde-vivo); color: #2B3320; border: none;
  padding: 11px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer;
}

/* TOPBAR */
.topbar {
  background: var(--cinza-azul);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar h1 { font-size: 1.6rem; line-height: 1; }
.topbar .subtitle { font-size: 10px; letter-spacing: 0.15em; opacity: 0.7; margin: 2px 0 0; text-transform: uppercase; }
.logo-chip {
  background: #fff;
  border-radius: 12px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 34px !important;
  width: auto !important;
  max-height: 34px;
  display: block;
  object-fit: contain;
}
@media (max-width: 640px) {
  .logo-img { height: 26px !important; max-height: 26px; }
  .logo-chip { padding: 5px 10px; }
}
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-label { font-size: 12px; opacity: 0.8; margin-right: 4px; }

.btn {
  border: none; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.btn-accent { background: var(--verde-vivo); color: #2B3320; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--cinza-claro); }
.btn-danger { background: var(--danger); color: #fff; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

.msg { border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.msg.erro { background: #FBE9E7; color: #8A3B2F; }
.msg.ok { background: #EAF5E4; color: #3E6B2A; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; }
.stat-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #9A99A6; margin-bottom: 4px; }
.stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; }
.stat-value.small { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 600; }
.stat-value.accent { color: #5C9A3B; }

/* SEARCH */
.search-bar { margin-bottom: 18px; }
.search-bar input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--card-border); border-radius: 12px;
  font-size: 14px; font-family: inherit; background: #fff;
}

/* BOARD */
.board {
  display: flex;
  gap: 10px;
}
.column { flex: 1 1 0; min-width: 0; }
@media (max-width: 900px) {
  .board {
    overflow-x: auto;
    padding-bottom: 12px;
  }
  .column { flex: 0 0 250px; }
}
.column-head {
  color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 9px 12px; display: flex; justify-content: space-between; align-items: center; gap: 4px;
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0% 100%);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.column-body { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.column-empty { font-size: 12px; color: #9A99A6; text-align: center; padding: 16px 0; border: 1px dashed var(--card-border); border-radius: 10px; }

/* CARD */
.card {
  background: #fff; border-radius: 12px; padding: 12px; border: 1px solid #EFEFEA;
  border-left-width: 4px; border-left-style: solid; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.card-name { font-size: 14px; font-weight: 600; }
.card-empresa { font-size: 11px; color: #9A99A6; }
.card-icons button { background: none; border: none; cursor: pointer; color: #9A99A6; font-size: 13px; padding: 2px; }
.card-icons button:hover { color: var(--ink); }
.card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pill { font-size: 10px; background: #F0F0EC; color: var(--ink); padding: 2px 8px; border-radius: 999px; }
.dots { display: flex; align-items: center; gap: 3px; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.vidas-label { font-size: 10px; color: #9A99A6; margin-left: 2px; }
.card-valor { font-size: 14px; font-weight: 700; color: #5C9A3B; margin-top: 6px; }
.card-footer {
  display: flex; justify-content: space-between; align-items: center; margin-top: 10px;
  padding-top: 8px; border-top: 1px solid #F0F0EC;
}
.card-time { font-size: 10px; color: #9A99A6; }
.card-actions { display: flex; align-items: center; gap: 8px; }
.card-actions a, .card-actions button { font-size: 11px; }
.wa-link { color: #16a34a; text-decoration: none; font-size: 15px; }
.lost-link { background: none; border: none; color: #9A99A6; cursor: pointer; font-size: 10px; }
.lost-link:hover { color: var(--danger); }
.move-btn {
  border: none; color: #fff; font-size: 10px; font-weight: 600; padding: 5px 9px; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; gap: 3px;
}

/* LOST */
.lost-toggle { margin-top: 20px; }
.link-btn { background: none; border: none; font-size: 13px; color: #6b6a7a; cursor: pointer; font-weight: 500; }
.lost-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.lost-item { background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.lost-item .name { font-size: 13px; font-weight: 500; }
.lost-item .empresa { font-size: 11px; color: #9A99A6; }
.restore-btn { font-size: 11px; background: #EFEFEA; border: none; padding: 5px 10px; border-radius: 999px; cursor: pointer; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
  z-index: 40; padding: 16px;
}
.modal-card { background: #fff; border-radius: 18px; padding: 22px; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; }
.modal-card.small { max-width: 360px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h2 { font-size: 1.4rem; }
.icon-btn { background: none; border: none; font-size: 16px; cursor: pointer; color: #9A99A6; }
.modal-card label { display: block; font-size: 12px; font-weight: 600; color: #6b6a7a; margin: 10px 0 4px; }
.modal-card input, .modal-card select, .modal-card textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--card-border); border-radius: 10px; font-size: 13px; font-family: inherit;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }

::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--cinza-claro); border-radius: 8px; }
