/* ===== MODAL ROOT ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  z-index: 1055;
}

/* Bootstrap JS toggles this */
.modal.show {
  display: block;
}

/* ===== DIALOG ===== */
.modal-dialog {
  position: relative;
  width: auto;
  max-width: 500px;
  margin: 4rem auto;
  pointer-events: none;
}

/* ===== CONTENT ===== */
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  animation: modalFade .25s ease;
}

/* ===== HEADER / BODY / FOOTER ===== */
.modal-header,
.modal-body,
.modal-footer {
  padding: 1rem;
}

.modal-header {
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 18px;
}

.modal-footer {
  border-top: 1px solid #eee;
}

/* ===== BACKDROP ===== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 1050;
}

/* Bootstrap adds this */
.modal-backdrop.show {
  opacity: 1;
}

/* ===== ANIMATION ===== */
@keyframes modalFade {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}
/* Tab container */
.tab-content {
  margin-top: 1rem;
}

/* Hidden by default */
.tab-pane {
  display: none;
}

/* Visible tab */
.tab-pane.active {
  display: block;
}

/* Optional fade animation */
.fade {
  opacity: 0;
  transition: opacity .15s linear;
}

.fade.show {
  opacity: 1;
}