/* custom-confirm.bootstrap.css
   Projetado para Bootstrap 4.1.3 (incluir depois do bootstrap.css)
*/

/* Overlay / backdrop - fade behavior semelhante ao bootstrap modal-backdrop.fade */
.cc-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s linear;
}

/* show exibe */
.cc-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* centralização vertical (quando presente) */
.cc-overlay.cc-centered {
  align-items: center; /* já central por default */
}

/* Dialog container (similar a .modal-dialog) */
.cc-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  pointer-events: none; /* passa os cliques para .cc-box */
}

/* tamanhos */
.cc-dialog.cc-sm .cc-box,
.cc-sm .cc-box { max-width: 300px; }
.cc-dialog.cc-md .cc-box,
.cc-md .cc-box { max-width: 500px; }
.cc-dialog.cc-lg .cc-box,
.cc-lg .cc-box { max-width: 800px; }

/* Caixa do modal (estilo similar a .modal-content) */
.cc-box {
  pointer-events: auto;
  position: relative;
  width: 100%;
  background-color: #fff;
  border-radius: .3rem;
  padding: 1.25rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  transform: scale(.97);
  transition: transform .15s ease-out;
  font-family: inherit;
}

/* entrada da caixa quando overlay tem .show */
.cc-overlay.show .cc-box { transform: scale(1); }

/* Título parecido com modal-title */
.cc-title {
  margin: 0 0 .5rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #212529;
}

/* Mensagem */
.cc-message {
  margin-bottom: 1rem;
  color: #495057;
  font-size: 1rem;
  line-height: 1.4;
}

/* Ações alinhadas como modal-footer */
.cc-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}

/* Estilos básicos dos botões (mas deixamos a maior parte para classes do Bootstrap 'btn') */
.cc-btn {
  min-width: 80px;
  font-weight: 500;
}

/* Fechar (X) similar ao modal .close */
.cc-close {
  position: absolute;
  right: .5rem;
  top: .25rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
}
.cc-close:hover { color: #343a40; }

/* Acessibilidade: foco visível (segue padrão bootstrap outline) */
.cc-btn:focus, .cc-close:focus { outline: 3px solid rgba(0,123,255,.25); outline-offset: 2px; }

/* Pequeno ajuste visual para btn-outline quando usado dentro deste componente
   (os estilos principais do outline vêm do bootstrap) */
.cc-btn.btn { padding: .375rem .75rem; border-radius: .25rem; }

/* Responsividade: menos padding em telas pequenas */
@media (max-width: 420px) {
  .cc-box { padding: .9rem; }
  .cc-actions { gap: .35rem; }
  .cc-btn { min-width: 64px; font-size: .95rem; }
}
