* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial;
}

body {
  background: #0f172a;
  color: #fff;
}

/* =========================
   LAYOUT
========================= */
.layout {
  display: flex;
  min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  width: 230px;
  background: #020617;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
}

/* LOGO */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.logo img {
  width: 80px;
  transition: 0.3s;
}

.logo img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px #00ffc3)
          drop-shadow(0 0 20px #00ffc3);
}

/* MENU */
.sidebar nav a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  color: #bbb;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
}

.sidebar nav a:hover {
  background: #00ffc3;
  color: #000;
}

/* LOGOUT */
.logout {
  margin-top: auto;
  color: #ff4d4d;
  font-size: 13px;
}

/* =========================
   MAIN
========================= */
.main {
  flex: 1;
  padding: 30px;
}

/* =========================
   CARDS
========================= */
.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* =========================
   BOTÕES
========================= */
button {
  background: linear-gradient(135deg, #00ffc3, #00a98f);
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  color: #000;
  font-weight: bold;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #00ffc3;
}

/* =========================
   INPUTS
========================= */
input, select {
  padding: 10px;
  border-radius: 6px;
  border: none;
}

/* =========================
   TIMER
========================= */
.timer {
  font-size: 56px;
  margin: 15px 0;
  color: #00ffc3;
}

/* =========================
   FLASHCARDS
========================= */
.card-flip {
  width: 340px;
  height: 200px;
  margin: 30px auto;
  perspective: 1000px;
  cursor: pointer;
}

.inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: 0.6s;
  transform-style: preserve-3d;
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  padding: 20px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
}

.front {
  background: #1e293b;
}

.back {
  transform: rotateY(180deg);
  background: #00ffc3;
  color: #000;
}

/* =========================
   LOGIN MODERNO
========================= */
.login-body {
  height: 100vh;
  background: radial-gradient(circle at top, #0f172a, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 18px;
  text-align: center;
  width: 340px;
  box-shadow: 0 0 40px rgba(0,255,195,0.15);
}

.login-logo {
  width: 80px;
  margin-bottom: 15px;
}

.login-box input {
  width: 100%;
  margin-bottom: 12px;
}

.login-box button {
  width: 100%;
}

/* =========================
   HOME
========================= */
.grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
}

.destaque button {
  width: 100%;
  margin-top: 10px;
}

/* =========================
   KANBAN (FINAL LIMPO)
========================= */
.kanban {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.coluna {
  flex: 1;
  background: #020617;
  padding: 15px;
  border-radius: 12px;
  min-height: 300px;
  transition: 0.2s;
}

.coluna:hover {
  box-shadow: 0 0 15px rgba(0,255,195,0.1);
}

.coluna h3 {
  margin-bottom: 10px;
  font-size: 14px;
  color: #aaa;
}

/* TASK */
.task {
  background: #1e293b;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: grab;
  transition: 0.2s;
}

.task:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0,255,195,0.2);
}

.task:active {
  cursor: grabbing;
}

/* BADGE */
.badge {
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 5px;
}

/* PRIORIDADE */
.low { background: #334155; }
.medium { background: #facc15; color:#000; }
.high { background: #ef4444; }

/* DONE */
.done .task {
  opacity: 0.5;
  transform: scale(0.98);
}

/* =========================
   XP POPUP
========================= */
#xpPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  background: #00ffc3;
  color: #000;
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 24px;
  font-weight: bold;
  opacity: 0;
  z-index: 9999;
  transition: 0.3s;
}

#xpPopup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}
/* =========================
   KANBAN PRO
========================= */

.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 20px;
}

/* COLUNA */
.coluna {
  background: #020617;
  padding: 15px;
  border-radius: 14px;
  min-height: 400px;

  display: flex;
  flex-direction: column;
}

.coluna h3 {
  margin-bottom: 15px;
  font-size: 15px;
  color: #00ffc3;
}

/* ADD TASK */
.add-task {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.add-task input {
  flex: 1;
  background: #1e293b;
  color: #fff;
}

.add-task button {
  width: 40px;
  padding: 0;
}

/* LISTA */
.tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* TASK */
.task {
  background: #1e293b;
  padding: 12px;
  border-radius: 10px;
  cursor: grab;
  transition: 0.2s;
}

.task:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(0,255,195,0.2);
}

/* DONE */
.done .task {
  opacity: 0.6;
  text-decoration: line-through;
}
.lista {
  margin-top: 10px;
}

.task-card {
  background: #1e293b;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.task-card .acoes {
  margin-top: 8px;
  display: flex;
  gap: 5px;
}

.task-card button {
  font-size: 11px;
  padding: 5px 8px;
}
.foco-layout {
  display: flex;
  gap: 20px;
}

.foco-left {
  width: 30%;
}

.foco-right {
  flex: 1;
}

iframe {
  width: 100%;
  height: 400px;
  border: none;
}

textarea {
  width: 100%;
  height: 100px;
  margin-top: 10px;
  border-radius: 6px;
  border: none;
  padding: 10px;
}