/* ========================== */
/* FONTES E RESET            */
/* ========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================== */
/* ESTILO GLOBAL             */
/* ========================== */
body, html {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f6f8;
}

/* ========================== */
/* TELA DE LOGIN             */
/* ========================== */
body.login-body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #1a2a6c, #b21f1f, #fdbb2d);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s;
}

.login-box:hover {
  transform: scale(1.01);
}

.login-box img {
  margin-bottom: 15px;
}

.login-box p.subtitulo {
  color: #444;
  font-size: 14px;
  margin-bottom: 25px;
}

.login-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.login-box input:focus {
  border-color: #1a2a6c;
  outline: none;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: #1a2a6c;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 5px;
  transition: background 0.3s;
}

.btn-login:hover {
  background: #2b3990;
}

.ou {
  margin: 20px 0;
  font-size: 13px;
  color: #999;
  position: relative;
}

.ou::before,
.ou::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ccc;
}

.ou::before { left: 0; }
.ou::after { right: 0; }

.btn-shopee {
  display: inline-block;
  background: #ee4d2d;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-shopee:hover {
  background: #d03f23;
}

footer {
  margin-top: 25px;
  font-size: 12px;
  color: #888;
}

.subtitulo {
  color: #444;
  font-size: 14px;
  margin-bottom: 25px;
}

.destaque-lucro {
  font-weight: bold;
  color: #ee4d2d;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.85; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* ========================== */
/* DASHBOARD PRINCIPAL       */
/* ========================== */
.dashboard-container {
  display: flex;
  height: 100vh;
}

/* ==== SIDEBAR ==== */
.sidebar {
  width: 230px;
  background-color: #1e1e2f;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.sidebar-logo {
  width: 100%;
  margin-bottom: 30px;
  filter: brightness(0) invert(1);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-nav a {
  color: #ccc;
  text-decoration: none;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  display: block;
  transition: 0.3s;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background-color: #2d2d44;
  color: #fff;
}

/* ==== DROPDOWN MENU ==== */
.sidebar-nav .dropdown {
  position: relative;
}

.sidebar-nav .dropdown-toggle {
  display: block;
  padding: 10px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-nav .dropdown-content {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #2a2a2a;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.sidebar-nav .dropdown-content a {
  display: block;
  padding: 10px;
  color: #fff;
  text-decoration: none;
}

.sidebar-nav .dropdown-content a:hover {
  background-color: #444;
}

.sidebar-nav .dropdown:hover .dropdown-content {
  display: block;
}

/* ==== MAIN CONTENT ==== */
.main-content {
  flex: 1;
  background-color: #f5f5f5;
  overflow-y: auto;
}

.topbar {
  background-color: white;
  padding: 10px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-logo img {
  height: 40px;
}

.bemvindo {
  font-size: 14px;
  color: #666;
}

/* ==== DASHBOARD CARDS ==== */
.dashboard {
  padding: 30px;
}

.titulo-dashboard {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px #ccc;
  transition: 0.3s;
}

.card:hover {
  transform: scale(1.02);
}

.card h3 {
  margin: 0;
  font-size: 18px;
  
}

.card p {
  font-size: 16px;
  margin-top: 10px;
  color: #333;
}

.destaque .valor-venda {
  font-size: 24px;
  font-weight: bold;
  color: #2f9ad6;
}

.destaque .data-venda {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #777;
}

.em-breve {
  opacity: 0.6;
}

.lucro-box {
  margin-top: 15px;
  padding: 10px;
  background-color: #e6fff3;
  border-left: 5px solid #2f9ad6;
  border-radius: 8px;
}

.lucro-box h4 {
  margin: 0;
  font-size: 16px;
  color: #2f9ad6;
}

.valor-lucro {
  font-size: 20px;
  font-weight: bold;
  color: #2f9ad6;
  margin-top: 5px;
}

/* ========================== */
/* INTEGRAÇÃO DE PLATAFORMAS */
/* ========================== */
.integracao {
  padding: 30px;
  background-color: #f9fbfe;
}

.integracao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-cadastrar {
  padding: 10px 18px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.btn-cadastrar:hover {
  background-color: #0056b3;
}

.plataformas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.plataforma-card {
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.plataforma-card:hover {
  transform: scale(1.05);
}

.plataforma-card img {
  max-width: 70px;
  margin-bottom: 10px;
}

/* ========================== */
/* MODAL DE CONEXÃO          */
/* ========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #fff;
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  border-radius: 15px;
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.btn-conectar {
  margin-top: 20px;
  background: #2f9ad6;
  color: #fff;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

.btn-conectar:hover {
  background: #2f9ad6;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 22px;
  cursor: pointer;
}
