/* Custom Dialog & Confirmation Modal Styles */
.custom-dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.custom-dialog-overlay.show {
  display: flex;
  opacity: 1;
}

.custom-dialog-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 10px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.15s ease-out;
  box-sizing: border-box;
}

.custom-dialog-overlay.show .custom-dialog-card {
  transform: scale(1);
}

.custom-dialog-header {
  background: #fff200;
  border-bottom: 2px solid #000000;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14.5px;
  color: #111111;
}

.custom-dialog-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.custom-dialog-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.custom-dialog-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.custom-dialog-close {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.1s ease, color 0.1s ease;
}

.custom-dialog-close:hover {
  background: #000000;
  color: #ffffff;
}

.custom-dialog-body {
  padding: 18px 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #222222;
  white-space: pre-line;
  word-break: break-word;
  max-height: 60vh;
  overflow-y: auto;
}

.custom-dialog-footer {
  padding: 12px 18px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.custom-dialog-btn {
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.12s ease;
  border: 1px solid transparent;
  font-family: inherit;
}

.custom-dialog-btn-cancel {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}

.custom-dialog-btn-cancel:hover {
  background: #f3f4f6;
  color: #111827;
  border-color: #9ca3af;
}

.custom-dialog-btn-confirm {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.custom-dialog-btn-confirm:hover {
  background: #000000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.custom-dialog-btn-confirm:focus,
.custom-dialog-btn-cancel:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
