/* PrimeVue Dialog 相当（dialog-bg / dialog-mask / RegisterSlideAsContentModal 準拠） */

.dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.48);
  overflow: auto;
}

.dialog-mask.is-open {
  display: flex;
}

.dialog-bg {
  position: relative;
  width: min(520px, 100%);
  margin: auto;
  background-color: var(--white);
  border-radius: 32px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.06), 4px 4px 15px rgba(0, 0, 0, 0.08);
}

.dialog-bg--confirm {
  width: min(620px, 100%);
}

.dialog-content {
  position: relative;
  padding: 24px;
}

.dialog-content--confirm {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 24px 24px 32px;
}

.dialog-close-button {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gray-4);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close-button:hover {
  color: var(--gray-2);
}

.dialog-title-center {
  margin: 0;
  padding: 24px 48px 12px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--black-2);
}

.dialog-desc-center {
  margin: 0 0 8px;
  padding: 0 32px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--gray-4);
}

.dialog-form {
  padding: 8px 30px 0;
}

.dialog-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.file-upload-subtitle--dialog {
  width: 180px;
  min-width: 180px;
  margin: 0;
  font-size: 14px;
  line-height: 16px;
  font-weight: 700;
  color: var(--gray-4);
}

.dialog-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--gray-6);
  border-radius: 8px;
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  color: var(--black-2);
  box-sizing: border-box;
}

.dialog-input:focus {
  outline: none;
  border-color: var(--green-5);
  box-shadow: 0 0 0 3px rgba(4, 199, 4, 0.12);
}

.dialog-fileupload {
  margin-top: 8px;
  padding: 28px 20px;
  border: 1px dashed var(--gray-6);
  border-radius: 12px;
  background: var(--gray-10);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dialog-fileupload:hover,
.dialog-fileupload.is-dragover {
  border-color: var(--green-5);
  background: var(--green-10);
}

.dialog-fileupload__icon {
  display: block;
  margin: 0 auto 12px;
  font-size: 48px;
  line-height: 1;
  color: var(--gray-5);
}

.dialog-fileupload__guide {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--gray-5);
}

.dialog-fileupload__guide-sub {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gray-5);
}

.dialog-fileupload__notice {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--green-2);
}

.dialog-fileupload__file-name {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gray-3);
  word-break: break-all;
}

.dialog-body {
  margin: 24px 0 0;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: var(--black-2);
}

.dialog-button {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px 8px;
}

.cancel-button,
.delete-button,
.register-button {
  min-width: 116px;
  height: 52px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cancel-button {
  background: var(--gray-5);
}

.cancel-button:hover {
  background: var(--gray-4);
}

.delete-button {
  background: var(--state-warning);
}

.delete-button:hover {
  background: #a32825;
}

.register-button {
  background: var(--state-success);
}

.register-button:hover {
  background: var(--green-4);
}

/* 動画生成モーダル（RegisterSlideAsContentModal 準拠） */

.dialog-bg--register-content {
  width: min(720px, 100%);
}

.dialog-form--register-content {
  padding-top: 16px;
}

.dialog-form--register-content .dialog-row {
  margin-top: 12px;
}

.dialog-form--register-content .dialog-row:first-child {
  margin-top: 0;
}

.dialog-row .dialog-input,
.dialog-row .dialog-select {
  flex: 1;
  min-width: 0;
}

.dialog-row .dialog-select {
  width: auto;
  font-size: 14px;
}

.dialog-row--picker .dialog-picker-btn {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 280px;
}

.dialog-picker-btn {
  justify-content: flex-start;
  font-weight: 600;
  color: var(--gray-4);
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-required {
  margin-left: 4px;
  color: var(--state-warning);
}

.dialog-input--warn,
.dialog-picker-btn--warn,
.dialog-select--warn {
  border-color: var(--state-warning);
  background-color: rgba(217, 62, 57, 0.04);
  color: var(--state-warning);
}

.dialog-select--warn {
  color: var(--state-warning);
}
