/* ======================================================
   RESET
====================================================== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0b0c14;
  color: #ffffff;
}

/* ======================================================
   SIDEBAR
====================================================== */
.sidebar {
  width: 240px;
  background: #0e0f1c;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1f2238;
}

.sidebar h2 {
  margin: 0 0 28px;
  font-size: 17px;
  font-weight: 600;
  color: #e6e4ff;
}

.sidebar nav a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  color: #b8bbd9;
  text-decoration: none;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}

.sidebar nav a:hover {
  background: #1a1d35;
  color: #ffffff;
}

.sidebar .user {
  margin-top: auto;
  font-size: 13px;
  color: #9ea3c8;
}

/* ======================================================
   MAIN CONTENT
====================================================== */
.content {
  flex: 1;
  padding: 40px;
  background: radial-gradient(
    circle at top left,
    #14162a 0%,
    #0b0c14 65%
  );
}

/* ======================================================
   TITLES
====================================================== */
h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 600;
}

h2 {
  margin: 30px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #e6e4ff;
  letter-spacing: .04em;
}

#assets-panel {
  width: 320px;
  overflow-y: auto;
  border-right: 1px solid #333;
  padding: 10px;
}

#assets-filters {
  position: sticky;
  top: 0;
  background: #0f1430; /* mesmo fundo do painel */
  z-index: 10;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
}

/* ======================================================
   BUTTONS
====================================================== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: #6d6afc;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, box-shadow .1s ease;
}

.btn:hover {
  background: #7e7bff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(109,106,252,.25);
}

.btn.small {
  padding: 6px 12px;
  font-size: 13px;
}

/* ======================================================
   FORMS (INPUTS CONFORTÁVEIS)
====================================================== */
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid #2b2f52;
  background: #22263f;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #9fa3c8;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #6d6afc;
  box-shadow: 0 0 0 1px rgba(109,106,252,.35);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* ======================================================
   CARDS / LISTS
====================================================== */
.skill-row {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  gap: 20px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #14162a;
  border-radius: 14px;
  border: 1px solid #2b2f52;
  align-items: center;
}

.skill-row strong {
  font-size: 15px;
  color: #ffffff;
}

.skill-row small {
  color: #b8bbd9;
}

/* ======================================================
   SKILL EDITOR BLOCKS
====================================================== */
.skill {
  background: #1a1d35;
  border: 1px solid #2b2f52;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}

.skill input,
.skill textarea,
.skill select {
  background: #22263f;
}

.skill-import textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ======================================================
   LOGIN
====================================================== */
.login-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at center,
    #14162a 0%,
    #0b0c14 70%
  );
}

.login-box {
  width: 100%;
  max-width: 420px;
  padding: 36px 38px;
  background: #14162a;
  border-radius: 18px;
  border: 1px solid #2b2f52;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.login-box h1 {
  margin: 0 0 26px;
  text-align: center;
  font-size: 22px;
  color: #ffffff;
}

.login-box button {
  width: 100%;
}

#map-root {
  display: flex;
  height: calc(100vh - 40px);
}

#assets-panel {
  width: 320px;
  flex-shrink: 0; /* 🔒 nunca encolhe */
  overflow-y: auto;
  border-right: 1px solid #333;
}

#map-canvas {
  flex: 1;
  position: relative;
  overflow: hidden; /* 🔒 nada passa por cima */
  background: #2c2c2c;
}
