.modal {
  display: none; /* Controlado por JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 1000;
  /* Tailwind */
  @apply tw-flex tw-items-center tw-justify-center;
}

.modal-content {
  background: white;
  border-radius: 24px; /* Cantos 2xl */
  padding: 0;
  max-width: 768px; /* Aumentado um pouco para modais */
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  /* Tailwind */
  @apply tw-shadow-2xl tw-transform tw-transition-all tw-duration-300 tw-ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  /* Tailwind */
  @apply tw-border-b tw-border-gray-200 tw-p-6;
}

.modal-header h2 {
  margin: 0;
  color: #333;
  /* Tailwind */
  @apply tw-text-2xl tw-font-bold tw-text-gray-800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  /* Tailwind */
  @apply tw-text-gray-500 hover:tw-text-gray-700 tw-transition-colors tw-duration-200;
}

.modal-close:hover {
  color: #333;
}

/* Formulário */
#form-locacao {
  padding: 30px;
  /* Tailwind */
  @apply tw-p-6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  /* Tailwind */
  @apply tw-grid tw-grid-cols-1 md:tw-grid-cols-2 tw-gap-4;
}

.form-group {
  display: flex;
  flex-direction: column;
  /* Tailwind */
  @apply tw-mb-4;
}

.form-group.full-width {
  grid-column: 1 / -1;
  /* Tailwind */
  @apply md:tw-col-span-2;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
  /* Tailwind */
  @apply tw-block tw-text-gray-700 tw-text-sm tw-font-medium tw-mb-2;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  /* Tailwind */
  @apply tw-w-full tw-p-2.5 tw-border tw-border-gray-300 tw-rounded-lg tw-text-gray-800 focus:tw-ring-blue-500 focus:tw-border-blue-500 tw-transition-all tw-duration-200;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 30px;
  border-top: 1px solid #eee;
  margin-top: 20px;
  /* Tailwind */
  @apply tw-flex tw-justify-end tw-gap-3 tw-p-6 tw-border-t tw-border-gray-200 tw-mt-6;
}

.btn-cancelar,
.btn-salvar {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  /* Tailwind */
  @apply tw-px-5 tw-py-2.5 tw-rounded-lg tw-font-semibold tw-text-base tw-shadow-sm tw-transition-all tw-duration-300;
}

.btn-cancelar {
  background: #6c757d;
  color: white;
  /* Tailwind */
  @apply tw-bg-gray-500 hover:tw-bg-gray-600 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-gray-400 focus:tw-ring-opacity-75;
}

.btn-cancelar:hover {
  background: #5a6268;
}

.btn-salvar {
  background: #007bff;
  color: white;
  /* Tailwind */
  @apply tw-bg-blue-600 hover:tw-bg-blue-700 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-blue-500 focus:tw-ring-opacity-75;
}

.btn-salvar:hover {
  background: #0056b3;
}

/* Detalhes da Locação (Modal de Visualização) */
.detalhes-locacao {
  padding: 30px;
  /* Tailwind */
  @apply tw-p-6 tw-grid tw-grid-cols-1 md:tw-grid-cols-2 tw-gap-4;
}

.detalhe-grupo {
  margin-bottom: 20px;
  /* Tailwind */
  @apply tw-mb-4;
}

.detalhe-grupo h3 {
  margin-bottom: 5px;
  color: #333;
  font-size: 16px;
  /* Tailwind */
  @apply tw-text-lg tw-font-semibold tw-text-gray-700 tw-mb-1;
}

.detalhe-grupo p {
  margin: 0;
  color: #666;
  /* Tailwind */
  @apply tw-text-gray-800;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  /* Tailwind */
  @apply tw-px-2.5 tw-py-1 tw-rounded-full tw-text-xs tw-font-semibold;
}

.status-ativa {
  background: #d4edda;
  color: #155724;
  /* Tailwind */
  @apply tw-bg-green-100 tw-text-green-800;
}

.status-vencida {
  background: #f8d7da;
  color: #721c24;
  /* Tailwind */
  @apply tw-bg-red-100 tw-text-red-800;
}

.status-finalizada {
  background: #d1ecf1;
  color: #0c5460;
  /* Tailwind */
  @apply tw-bg-gray-100 tw-text-gray-800;
}

.btn-acao {
  background: none;
  border: none;
  padding: 5px;
  margin: 0 2px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
  /* Tailwind */
  @apply tw-p-2 tw-rounded-md hover:tw-bg-gray-100 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-gray-300 focus:tw-ring-opacity-50 tw-transition-colors tw-duration-200;
}

.btn-visualizar {
  color: #007bff;
  /* Tailwind */
  @apply tw-text-blue-600 hover:tw-text-blue-800;
}

.btn-visualizar:hover {
  background: #e3f2fd;
}

.btn-editar {
  color: #28a745;
  /* Tailwind */
  @apply tw-text-green-600 hover:tw-text-green-800;
}

.btn-editar:hover {
  background: #e8f5e8;
}

.btn-excluir {
  color: #dc3545;
  /* Tailwind */
  @apply tw-text-red-600 hover:tw-text-red-800;
}

.btn-excluir:hover {
  background: #fdeaea;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
