* {
  box-sizing: border-box;
}


body {
  margin: 0;
  background-color: #f8f9fa; /* fundo claro, como o da imagem */
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  top: 60px; /* abaixo do topbar */
  left: 0;
  width: 250px;
  height: calc(100% - 60px); /* altura ajustada */
  background-color: #ffffff;
  border-right: 1px solid #e3e6f0;
  padding-top: 20px;
  z-index: 999;
  overflow-y: auto;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

.sidebar h5 img {
  margin-bottom: 20px;
}

.sidebar a {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #495057;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  border-left: 4px solid transparent;
}

.sidebar a:hover {
  background-color: #f1f3f5;
  color: #1e31ad;
  border-left: 4px solid #1e31ad;
  font-weight: 600;
}

.sidebar a.active {
  background-color: #e9f0ff;
  color: #1e31ad;
  border-left: 4px solid #1e31ad;
  font-weight: 600;
}

.accordion-button {
  font-size: 14px;
  background-color: #ffffff !important;
  color: #495057;
  padding: 10px 20px;
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  color: #1e31ad;
  background-color: #f1f3f5 !important;
}
.accordion-button:focus {
  box-shadow: none;
}

.accordion-body a {
  font-size: 14px;
  color: #495057;
  padding-left: 30px;
  font-weight: 500;
  transition: 0.2s ease;
}

.accordion-body a:hover {
  color: #1e31ad;
  font-weight: 600;
}

/* === MAIN === */
.main {
  margin-left: 250px;
  padding: 40px;
  padding-top: 80px; /* compensar o topbar */
}

/* === DASHBOARD CARDS === */
.card-dashboard {
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  padding: 20px;
  background-color: #fff;
}

.card-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #444;
}

.card-value {
  font-size: 32px;
  font-weight: bold;
  margin-top: 10px;
}

.text-success {
  color: #28a745 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-muted {
  color: #6c757d !important;
}

/* === BOTÃO TOGGLE (mobile) === */
.toggle-sidebar-btn {
  display: none;
}

/* === LOGIN === */
.login-body {
  background: linear-gradient(to bottom right, #020f63, #1e31ad);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background-color: #FFF;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  width: 100%;
}

.login-box label {
  font-size: small;
}

.login-box img {
  margin-bottom: 20px;
}

.login-box h2 {
  font-weight: 600;
  color: #222;
}

.brand {
  font-size: 28px;
  font-weight: bold;
  color: #1d3f36;
  margin-bottom: 10px;
}

.form-control:focus {
  box-shadow: none;
  border-color: #1d3f36; 
}

.btn-login {
  background-color: #1e31ad;
  border: none;
}

.btn-login:hover {
  background-color: #d85904;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 60px;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e9f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.page-title {
  font-weight: 600;
  font-size: 18px;
}

.cursor-pointer {
  cursor: pointer;
}

.topbar img {
  height: 36px;
  object-fit: contain;
}
.vr {
  width: 1px;
  height: 24px;
  background-color: #dee2e6;
}

.card { padding: 2rem; background: white; border-radius: 8px; box-shadow: 0 0 8px rgba(0,0,0,0.05); }

.div_canva {
  height: 300px;
}

.div_canva canvas {
  display: block;
  width: 100% !important;
  height: 300px !important;
}


.margin_bottom20 {

  margin-bottom: 20px;
}

.bi-camera-reels:hover{
  color: #1e31ad;
}

.form-select {
  font-size: 14px;
}



/* === RESPONSIVO === */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding: 20px;
  }

  .toggle-sidebar-btn {
    display: block;
    position: fixed;
    top: 10px;
    left: 15px;
    z-index: 1100;
    background: #074f98;
    border: none;
    color: #fff;
    padding: 6px 12px;
    font-size: 20px;
    border-radius: 4px;
  }

  .container-fluid {
    margin-top: 60px;
  }

  .page-title {

    display: none;

  }

  i {
    display: none;
  }

}
