/* desktop_confirm_modal.css */

/* --- Тело модалки: обложка слева, название справа --- */
.desktop-confirm-modal-body {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-confirm-modal-cover-wrap {
  flex: 0 0 auto;
}

.desktop-confirm-modal-cover-img {
  width: 200px;
  height: 120px;
  border-radius: 6px;
  object-fit: cover;
}

.desktop-confirm-modal-info {
  flex: 1;
  min-width: 0;
}

/* --- Название диктанта --- */
.desktop-confirm-modal-dictation-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text, #222);
  word-break: break-word;
}

/* --- Текст сообщения (отдельной строкой под обложкой+названием) --- */
.desktop-confirm-modal-message {
  font-size: 14px;
  color: var(--color-text-secondary, #555);
  margin-top: 12px;
  text-align: left;
}

#desktopConfirmModal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 100250;
}

.desktop-confirm-modal-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 640px;
  width: fit-content;
  min-width: 320px;
  max-width: calc(100% - 32px);
  padding: 20px;
}

.desktop-confirm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.desktop-confirm-modal-title {
  margin: 0;
}

.desktop-confirm-modal-buttons {
  display: flex;
  flex-wrap: nowrap;
  margin-top: 20px;
  gap: 10px;
  justify-content: flex-end;
}

.desktop-confirm-modal-buttons button {
  height: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  padding: 6px;
  white-space: nowrap;
}

.desktop-confirm-modal-buttons button i[data-lucide],
.desktop-confirm-modal-buttons button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-block;
}

#desktopLoadingModal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 100300;
}

.desktop-loading-modal-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 640px;
  width: fit-content;
  min-width: 320px;
  max-width: calc(100% - 32px);
  padding: 20px;
  text-align: center;
}

.desktop-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.desktop-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border-light);
  border-top: 4px solid var(--color-button-yellow);
  border-radius: 50%;
  animation: desktop-loading-spin 1s linear infinite;
}

.desktop-loading-text {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
}

@keyframes desktop-loading-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
