/* Estilo para as mensagens de sucesso */
.alert-success {
  background-color: #2e8b57;
  color: #c3e6cb;
  border: 1px solid #c3e6cb;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

/* Estilo para as mensagens de erro */
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

/* Garantir layout em coluna e ocupar altura total */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #f2f2f2 !important;
}

.container {
  flex: 1;
}

.login-container {
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.navbar-nav {
  margin-left: auto;
}

/* Redução dos espaços */
.main-wrapper {
  flex: 1 0 auto;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 0 !important;
  background-color: #e6e6e6;
}

.container-fluid.px-md-5.py-3 {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin-bottom: 0 !important;
}

/* Cards laterais ajustados */
.card-like-box {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  width: 100%;
  margin: 0 10px;
}

.card-like-box-dash {
  background-color: #fff;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-height: calc(50vh);
  width: 100%;
  margin-bottom: 0 !important;
}

/* Ajuste responsivo - Tela pequena */
@media (max-width: 768px) {
  .card-like-box {
    padding: 1.5rem;
    margin: 10px 0;
  }
}

/* Ajuste para telas médias */
@media (min-width: 768px) {
  .card-like-box {
    padding: 2rem;
    margin: 0 15px;
    width: calc(100% - 30px);
  }
}

body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: 0 !important;
}

.badge {
  font-size: 0.75rem;
  padding: 0.35em 0.6em;
  border-radius: 0.35rem;
}

.img {
  max-width: 100%;
  height: auto;
  display: block;
}

.table th {
  text-align: left !important;
}

.btn-danger-huawei {
  background-color: #e85454;
  color: #fff;
  border: none;
}

.btn-danger-huawei:hover {
  background-color: #cc4444;
  color: #fff;
}

.card-like-box-dash {
  width: 200px;
  height: 200px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card {
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  background-color: #e9ecef;
}

.card a {
  text-decoration: none;
  color: inherit;
}

.disabled-card {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(60%);
  transition: 0.3s;
}

.disabled-card:hover {
  transform: none;
  box-shadow: none;
}

.disabled-link {
  cursor: default;
  text-decoration: none;
}

.dropdown-menu-toogle-left {
  top: 100% !important;
  left: -140px !important;
}

.header-image-spacing {
  padding-top: 5px;
  padding-bottom: 5px;
}

@media (min-width: 768px) {
  .header-image-spacing {
    padding-top: 15px;
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }
}

.badge.bg-success {
  font-size: 0.9em;
  padding: 6px;
}

.card-title {
  font-weight: bold;
}

.badge-evento {
  background-color: #198754;
  color: white;
}

.card-like-box-user {
  background-color: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  padding: 16px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .card-like-box-user {
    padding: 12px;
    margin-bottom: 15px;
  }

  table {
    font-size: 11px;
  }

  .table-responsive {
    overflow-x: auto;
  }

  #fig_vendas,
  #fig_mapa {
    width: 100% !important;
    height: auto !important;
  }
}

.produtos-container {
  position: relative;
  padding-top: 50px;
}

.img-white-filter {
  filter: brightness(0) invert(1);
}

.step-icon img {
  width: 30px;
  height: auto;
  filter: brightness(0) invert(1);
}

.linha-horizontal {
  position: absolute;
  top: 73px;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.icone-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.icone-produto {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.icone-produto.ativo {
  background: linear-gradient(to bottom, #2c3eae, #4e73df);
  transform: scale(1.1);
}

.card-wrapper {
  position: relative;
  z-index: 2;
}

.disabled-card {
  opacity: 0.4;
  pointer-events: none;
}

.disabled-link {
  pointer-events: none;
}

.card {
  border-radius: 20px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
