:root {
  --bg-main: #0b1220;
  --bg-card: #111a2e;
  --primary: #2f80ff;
  --primary-hover: #1f6ae1;
  --accent: #00d4ff;
  --text-main: #e6eaf2;
  --text-muted: #9aa4bf;
}

* {
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
}

/* ===== LAYOUT ===== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 240px;
  background: #0f172a;
  padding: 20px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 30px;
}

.menu a {
  display: block;
  padding: 12px;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
}

.menu a:hover {
  background: rgba(47, 128, 255, 0.1);
  color: var(--text-main);
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== TOPBAR ===== */
.topbar {
  background: #0f172a;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
}

.balance {
  font-weight: 600;
}

.logout {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ===== CONTENT ===== */
.content {
  padding: 30px;
}

.card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ===== BUTTON ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* ===== TOP NAVBAR (SITE PUBLICO) ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.nav-left {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.nav-center a {
  margin: 0 15px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-center a:hover {
  color: var(--text-main);
}

.nav-right a {
  margin-left: 15px;
  text-decoration: none;
}

.btn-outline {
  padding: 10px 16px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: var(--primary);
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-solid {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal {
  background: #0f172a;
  padding: 30px;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  position: relative;
}

.modal h2 {
  margin-top: 0;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.modal input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: none;
}

.full {
  width: 100%;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
}

.logo-site {
  height: 80px;   /* tamanho ideal para navbar */
  width: auto;
}
