/* ===== MODAL DE CONFIRMAÇÃO PADRÃO ===== */

.expedicao-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  animation: modalFadeIn 0.2s ease-out;
}

.expedicao-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.expedicao-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.expedicao-modal .modal-dialog {
  position: relative;
  background: #2D2A29; /* Tema expedição escuro */
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(241, 204, 152, 0.2); /* Dourado/sand */
}

.expedicao-modal .modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(241, 204, 152, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.expedicao-modal .modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #F1CC98; /* Sand/dourado */
}

.expedicao-modal .modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: rgba(241, 204, 152, 0.6);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.expedicao-modal .modal-close:hover {
  background: rgba(241, 204, 152, 0.1);
  color: #F1CC98;
}

.expedicao-modal .modal-body {
  padding: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9); /* Texto claro com bom contraste */
}

.expedicao-modal .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(241, 204, 152, 0.15);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.2);
}

.expedicao-modal .modal-footer .btn {
  min-width: 100px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  border: 1px solid transparent;
}

/* Primary Button (Confirm) */
.expedicao-modal .modal-btn-confirm {
  background: #F1CC98;
  color: #2D2A29;
  border-color: #F1CC98;
}

.expedicao-modal .modal-btn-confirm:hover {
  background: #eebb77;
  border-color: #eebb77;
  transform: translateY(-1px);
}

/* Secondary Button (Cancel) */
.expedicao-modal .modal-btn-cancel {
  background: transparent;
  color: #F1CC98;
  border: 1px solid rgba(241, 204, 152, 0.4);
}

.expedicao-modal .modal-btn-cancel:hover {
  background: rgba(241, 204, 152, 0.1);
  border-color: #F1CC98;
  color: white;
}

/* Modal Types - Theming */
.expedicao-modal.modal-danger .modal-title {
  color: #ef4444; /* Vermelho vibrante */
}
.expedicao-modal.modal-danger .modal-btn-confirm {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}
.expedicao-modal.modal-danger .modal-btn-confirm:hover {
  background: #dc2626;
}

.expedicao-modal.modal-warning .modal-title {
  color: #f59e0b; /* Laranja/Amarelo */
}
.expedicao-modal.modal-warning .modal-btn-confirm {
  background: #f59e0b; /* Botão de aviso */
  color: #2D2A29;
  border-color: #f59e0b;
}

.expedicao-modal.modal-success .modal-title {
  color: #10b981; /* Verde */
}
.expedicao-modal.modal-success .modal-btn-confirm {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

/* Animations */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .expedicao-modal .modal-dialog {
    max-width: 100%;
    width: 100%;
    height: auto;
    bottom: 0;
    margin: 0;
    border-radius: 12px 12px 0 0;
    position: absolute;
    animation: modalSlideUpMobile 0.3s ease-out;
  }
  
  @keyframes modalSlideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  
  .expedicao-modal .modal-footer {
    flex-direction: column-reverse; /* Stack buttons on mobile */
  }
  
  .expedicao-modal .modal-footer .btn {
    width: 100%;
  }
}
