/* Estoque Styles */
li.estoque-item {
  background: #2d3748;
  padding: 14px 18px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  li.estoque-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }

  .estoque-acoes {
    width: 100%;
    justify-content: flex-end;
  }
}

li.estoque-item:hover {
  box-shadow: 0 4px 16px rgba(56, 161, 105, 0.12);
}

.estoque-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.estoque-nome {
  font-size: 1.1rem;
  font-weight: bold;
  color: #17acaf;
}

.estoque-quantidade {
  font-size: 0.95rem;
  color: #fff;
  transition: all 0.3s ease;
}

.estoque-acoes {
  display: flex;
  gap: 8px;
}

.btn-remover,
.btn-saida {
  background: #4a5568;
  border: none;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remover:active,
.btn-saida:active {
  transform: scale(0.95);
}

.btn-remover:hover {
  background: #e53e3e;
  color: #fff;
}

.btn-saida:hover {
  background: #17acaf;
  color: #fff;
}

.icon-remover {
  font-size: 1.2rem;
  margin-right: 2px;
}

.icon-remover .fas {
  font-size: 1.2rem;
}

.icon-saida {
  font-size: 1.2rem;
  margin-right: 2px;
}

.icon-saida .fas {
  font-size: 1.2rem;
}

/* Modal Saída Produto */
.modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #232b38;
  border-radius: 12px;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px 16px;
    margin: 16px;
    max-width: calc(100vw - 32px);
    min-width: auto;
  }

  .modal-actions {
    flex-direction: column;
    width: 100%;
  }

  .modal-confirm,
  .modal-cancel {
    width: 100%;
    padding: 12px;
  }
}

.modal-title {
  font-size: 1.3rem;
  color: #17acaf;
  font-weight: bold;
  margin-bottom: 18px;
}

.modal-produto {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.modal-confirm {
  background: #17acaf;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-confirm:hover {
  background: #2f855a;
}

.modal-confirm:disabled {
  background: #4a5568;
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-cancel {
  background: #4a5568;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-cancel:hover {
  background: #e53e3e;
}

/* Estilo para notificações */
.notificacao-estoque {
  font-family: inherit;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .notificacao-estoque {
    top: 10px;
    right: 10px;
    left: 10px;
    transform: translateY(-100%);
  }
  
  .notificacao-estoque.show {
    transform: translateY(0);
  }
}

.modal-hidden {
  display: none;
}

.input-margin-bottom {
  margin-bottom: 8px;
}

/* Estados visuais para feedback */
.estoque-item.processando {
  opacity: 0.7;
  transform: scale(0.98);
  pointer-events: none;
}

.estoque-item.sucesso {
  background: #2f855a !important;
  transform: scale(1.02);
}

.estoque-item.removendo {
  opacity: 0.5;
  transform: scale(0.95);
  pointer-events: none;
}

/* Animação para novos itens */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.estoque-item.novo {
  animation: slideIn 0.3s ease;
}

/* Touch targets para mobile */
@media (max-width: 800px) {
  .btn-remover,
  .btn-saida {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
  }
}

/* SweetAlert2 Dark Theme Customization */
.swal-dark-popup {
  background: #2d3748 !important;
  border: 1px solid #4a5568 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.swal-dark-title {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  font-size: 1.4rem !important;
}

.swal-dark-content {
  color: #cbd5e0 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.swal-dark-confirm {
  background: #e53e3e !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3) !important;
}

.swal-dark-confirm:hover {
  background: #c53030 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4) !important;
}

.swal-dark-cancel {
  background: #4a5568 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: #e2e8f0 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(74, 85, 104, 0.3) !important;
}

.swal-dark-cancel:hover {
  background: #2d3748 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.4) !important;
}

/* SweetAlert2 Icon customization */
.swal2-icon.swal2-warning {
  border-color: #f6ad55 !important;
  color: #f6ad55 !important;
}

.swal2-icon.swal2-success {
  border-color: #68d391 !important;
  color: #68d391 !important;
}

/* Toast notification styles */
.swal2-toast.swal-dark-popup {
  background: #2d3748 !important;
  color: #e2e8f0 !important;
  border: 1px solid #4a5568 !important;
}

/* Mobile responsiveness for SweetAlert2 */
@media (max-width: 480px) {
  .swal-dark-popup {
    margin: 16px !important;
    max-width: calc(100vw - 32px) !important;
  }
  
  .swal-dark-confirm,
  .swal-dark-cancel {
    padding: 14px 20px !important;
    font-size: 1rem !important;
    min-height: 48px !important;
  }
}