/* Estilos para modais */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  animation: slideIn 0.3s ease;
}

.modal-header {
  padding: 1.5rem 2rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  margin: 0;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.modal-body {
  padding: 0 2rem 1.5rem 2rem;
}

.modal-body p {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.5;
}

.modal-warning {
  color: var(--warning-color);
  font-weight: 500;
  font-size: 0.9rem;
  background: rgba(255, 193, 7, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 4px solid var(--warning-color);
}

.modal-info {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

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

.modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

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

.cancel-btn:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

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

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

/* Responsividade para modais */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-header,
  .modal-body,
  .modal-actions {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

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

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