/* Base + tema laranja */
:root {
  --app-orange: #f57c00;
  --app-orange-dark: #e65100;
  --app-orange-light: #ffb74d;
  --app-orange-bg: #fff8f0;
}

html {
  overflow-y: auto !important;
}

body {
  margin: 0;
}

#app {
  width: 100%;
}

.bg-app {
  background-color: var(--app-orange-bg) !important;
}

.app-logo {
  flex-shrink: 0;
}

.app-logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.drawer-brand {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
}

.drawer-nav .v-list-item--active {
  font-weight: 600;
}

.app-topbar {
  border-bottom: 1px solid rgba(230, 81, 0, 0.12) !important;
}

/* Conteúdo principal */
.app-main .v-container {
  max-width: 1200px;
}

/* Tabela de usuários no celular */
.venues-table .text-break {
  word-break: break-all;
}

.menu-json {
  max-height: 55vh;
  overflow: auto;
  font-size: 0.75rem;
  line-height: 1.4;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 600px) {
  .venues-table .v-data-table__th,
  .venues-table .v-data-table__td {
    padding-inline: 8px !important;
    font-size: 0.8rem;
  }

  .users-table .v-data-table__th,
  .users-table .v-data-table__td {
    padding-inline: 8px !important;
    font-size: 0.8rem;
  }

  .users-card-title {
    flex-direction: column;
    align-items: stretch !important;
  }

  .users-card-title .v-btn {
    width: 100%;
    margin-top: 8px;
  }

  .alert-actions-stack .v-alert__append {
    margin-inline-start: 0 !important;
    margin-top: 12px;
    width: 100%;
  }

  .alert-actions-stack .v-alert__append .v-btn {
    width: 100%;
  }
}

/* Formulários: fluxo vertical (CDN) */
.v-form.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-form.form-stack .v-input {
  flex: none;
  width: 100%;
}

.v-form.form-stack .v-btn {
  flex: none;
  width: 100%;
  margin-top: 8px;
}

/* Toasts — importação Ditti em background */
.import-bg-toasts {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.import-bg-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #323232;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.import-bg-toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.import-bg-toast--success { background: #2e7d32; }
.import-bg-toast--error { background: #c62828; }
.import-bg-toast--warning { background: #ef6c00; }
.import-bg-toast--info { background: #1565c0; }

.import-bg-toast__icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.import-bg-toast__text { flex: 1; }
.import-bg-toast__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 0 0 0 4px;
}
