* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6900ff;
  --primary-dark: #4442ff;
  --success-color: #10b981;
  --moozk-pink: #f5449b;
  --moozk-yellow: #ffcd3a;
  --moozk-blue: #99e7ff;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --text-primary: #0c0c0d;
  --text-secondary: #999999;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family:
    "Lato",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  animation: fadeInDown 0.6s ease;
}

.subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  animation: fadeInUp 0.6s ease;
}

.main-content {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.8s ease;
  color: var(--text-primary);
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 1.25rem;
}

.stats {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text-secondary);
  font-weight: 500;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--danger-color);
  margin-bottom: 1.5rem;
  animation: shake 0.5s ease;
}

.hidden {
  display: none !important;
}

.restaurantes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  animation: fadeInUp 0.6s ease;
}

.restaurante-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.restaurante-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: var(--transition);
}

.restaurante-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.restaurante-card:hover::before {
  transform: scaleY(1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.info-label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 80px;
}

.info-value {
  color: var(--text-primary);
  flex: 1;
}

.card-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1rem 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer {
  text-align: center;
  margin-top: 3rem;
  color: white;
  opacity: 0.9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .header h1 {
    font-size: 2rem;
  }

  .restaurantes-grid {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Estilos do Sistema de Busca */
.search-container {
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.5rem;
  color: var(--text-primary);
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.btn-search {
  padding: 0.625rem 1.25rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-search:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-search:active {
  transform: translateY(0);
}

.btn-clear {
  padding: 0.5rem;
  background: var(--danger-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-clear:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.search-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  animation: fadeIn 0.3s ease;
}

.search-info strong {
  color: var(--primary-color);
  font-weight: 600;
}

@media (max-width: 768px) {
  .search-box {
    flex-wrap: wrap;
  }

  .search-input {
    min-width: 100%;
    order: -1;
  }

  .btn-search {
    flex: 1;
  }
}

/* Estilos do Formulário */
.controls-left {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-success {
  background: var(--success-color);
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--text-secondary);
  color: white;
}

.btn-secondary:hover {
  background: #475569;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 6px;
  flex: 1;
}

.btn-edit {
  background: var(--warning-color);
  color: white;
}

.btn-edit:hover {
  background: #d97706;
}

.btn-delete {
  background: var(--danger-color);
  color: white;
}

.btn-delete:hover {
  background: #dc2626;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.modal-message {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Formulário */
.form-header {
  margin-bottom: 2rem;
}

.form-restaurante {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-large {
  grid-column: 1 / -1;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.required {
  color: var(--danger-color);
}

.form-input {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:invalid {
  border-color: var(--danger-color);
}

.form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 2px solid var(--border-color);
}

.success-message {
  background: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--success-color);
  margin-bottom: 1.5rem;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-left {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Acrescentando novo style para o evento soft-delete */
/* Badges de Status */
.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
}

.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
}

/* Estilo visual para cards inativos */
.card-restaurante.inativo {
  opacity: 0.7;
  background-color: #f9f9f9;
  border: 1px dashed #ccc;
}

.card-restaurante.inativo .card-header h3 {
  color: #666;
  text-decoration: line-through;
}

/* Ajuste do Select na barra de busca */
select.search-input {
  cursor: pointer;
  background-color: white;
}
/* ========================================
   ESTILOS ESPECÍFICOS PARA EVENTOS
   ======================================== */

/* Select de Filtro de Status */
.select-filter {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  background: white;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  min-width: 200px;
}

.select-filter:hover {
  border-color: var(--primary);
}

.select-filter:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Botão de Status em Card */
.btn-info {
  background-color: #0ea5e9;
  color: white;
}

.btn-info:hover {
  background-color: #0284c7;
}

/* Botão de Opção de Status no Modal */
.btn-status-option {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: white;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-status-option:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(5px);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Ajuste do layout dos controles quando há select */
.controls-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Responsividade para filtros */
@media (max-width: 768px) {
  .select-filter {
    width: 100%;
    min-width: auto;
  }

  .controls-right {
    width: 100%;
  }

  .search-box {
    width: 100%;
  }
}
/* ========================================
   ESTILOS ESPECÍFICOS PARA FORM EVENTO
   ======================================== */

/* Ajustes para campos de data e hora */
.form-input[type="date"],
.form-input[type="time"] {
  cursor: pointer;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator,
.form-input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.5);
}

.form-input[type="date"]:focus::-webkit-calendar-picker-indicator,
.form-input[type="time"]:focus::-webkit-calendar-picker-indicator {
  filter: invert(0.3);
}

/* Select com ícone */
.form-input select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

/* Textarea com melhor estilo */
textarea.form-input {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  line-height: 1.5;
}

/* Small text helper */
.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Status badge no select (modo leitura) */
select.form-input:disabled {
  background-color: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Validação visual de campos */
.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--danger-color);
}

.form-input:valid:not(:placeholder-shown) {
  border-color: var(--success-color);
}

/* Ícones nos botões do form */
.btn-icon {
  display: inline-block;
  font-size: 1.1em;
}

/* Animação no submit */
.btn[type="submit"]:active {
  transform: scale(0.98);
}

/* Responsividade adicional para formulários */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group-large {
    grid-column: 1;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ========================================
   CONTROLE DE QUANTIDADE DE COUVERTS
   ======================================== */

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quantity-input {
  width: 70px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 0.5rem;
  background: white;
}

.quantity-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-quantity {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-quantity:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.btn-quantity:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-quantity:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .quantity-control {
    justify-content: center;
  }

  .btn-quantity {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .quantity-input {
    width: 60px;
    font-size: 1.25rem;
  }
}

/* ========================================
   LAYOUT DE CONTROLES EM LINHA
   ======================================== */

.controls-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.controls-filters {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-row a,
  .controls-row button {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   BARRA DE ESTATÍSTICAS
   ======================================== */

.stats-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stats-bar strong {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .stats-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ========================================
   TABELA DE EVENTOS (GRID/LISTAGEM)
   ======================================== */

.table-container {
  overflow-x: auto;
  animation: fadeInUp 0.6s ease;
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.events-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.events-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.events-table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.events-table tbody tr:last-child {
  border-bottom: none;
}

.events-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.08);
}

.events-table tbody td {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  vertical-align: middle;
}

.td-name {
  font-weight: 600;
  max-width: 300px;
}

.td-date {
  white-space: nowrap;
}

.td-status {
  white-space: nowrap;
}

.td-local {
  max-width: 200px;
}

.td-actions {
  white-space: nowrap;
  display: flex;
  gap: 0.5rem;
}

.badge-table {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .events-table {
    font-size: 0.85rem;
  }

  .events-table thead th,
  .events-table tbody td {
    padding: 0.75rem;
  }

  .td-actions {
    flex-direction: column;
    gap: 0.25rem;
  }

  .td-actions .btn-small {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   MODAL QR CODE
   ======================================== */

.qrcode-modal {
  text-align: center;
  max-width: 400px;
}

.qrcode-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: white;
  border-radius: 12px;
}

.qrcode-container canvas,
.qrcode-container img {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.qrcode-evento-nome {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.qrcode-evento-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-qrcode {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  padding: 0.5rem 0.75rem;
}

.btn-qrcode:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  transform: translateY(-1px);
}

/* ========================================
   ALERTA — EVENTO ENCERRADO / CANCELADO
   ======================================== */

.alert-evento-bloqueado {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid var(--danger-color);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: slideDown 0.4s ease;
}

.alert-evento-bloqueado .alert-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.alert-evento-bloqueado strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #7f1d1d;
}

/* Botões desabilitados por evento encerrado/cancelado */
#btnGerarPix:disabled,
#btnGerarLink:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
  transform: none !important;
  box-shadow: none !important;
}

/* Print styles for QR Code */
@media print {
  body * {
    visibility: hidden;
  }

  #printArea,
  #printArea * {
    visibility: visible;
  }

  #printArea {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 2rem;
  }

  #printArea canvas,
  #printArea img {
    max-width: 300px;
    margin-bottom: 1rem;
  }

  #printArea h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  #printArea p {
    font-size: 1rem;
    color: #333;
  }
}
