/* product_shell.css — reserved for future product shell styles */
/* Global Flash Messages */
.global-flash-stack {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: 100%;
  max-width: 560px;
  padding: 0 16px;
}

.global-flash {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: flash-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.global-flash.success {
  background: rgba(14, 200, 100, 0.15);
  border: 1px solid rgba(14, 200, 100, 0.35);
  color: #2ee56b;
}

.global-flash.error {
  background: rgba(229, 75, 75, 0.15);
  border: 1px solid rgba(229, 75, 75, 0.35);
  color: #ff8a8a;
}

.global-flash.info {
  background: rgba(100, 150, 255, 0.12);
  border: 1px solid rgba(100, 150, 255, 0.25);
  color: #a0b8ff;
}

.global-flash.warning {
  background: rgba(255, 180, 0, 0.12);
  border: 1px solid rgba(255, 180, 0, 0.25);
  color: #f7c948;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.app-main {
  min-height: calc(100vh - 72px);
}

.simple-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap !important;
  gap: 12px;
}

.simple-header > div:nth-of-type(1),
.simple-header > div:nth-of-type(2) {
  flex-wrap: wrap !important;
}

.simple-header a:focus-visible,
.simple-header button:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .simple-header {
    justify-content: center !important;
    padding: 12px !important;
  }

  .simple-header > img {
    width: 26px !important;
  }

  .simple-header > div:nth-of-type(1) {
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .simple-header > div:nth-of-type(2) {
    margin-left: auto;
  }
}

/* ============================================================
   Global Microinterações — Cards, Botões e Elementos Interativos
   ============================================================ */

/* Card lift: qualquer elemento com .card-interactive levanta suavemente */
.card-interactive {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: default;
}
.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
}
.card-interactive:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

/* Cursor pointer em todos os elementos clicáveis que não sejam links/botões nativos */
[role="button"],
[data-action],
[onclick],
label[for],
.plan-card,
.kpi-card[data-href] {
  cursor: pointer;
}

/* Transição suave padrão para quaisquer card/panel genérico */
.panel, .card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Highlight sutil no hover de linhas de tabela */
table tbody tr {
  transition: background 0.15s ease;
}
table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* Botões genéricos sem classe específica — garantia de cursor */
button:not(:disabled),
[type="submit"]:not(:disabled),
[type="button"]:not(:disabled) {
  cursor: pointer;
}
button:disabled,
[type="submit"]:disabled,
[type="button"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
