.dialog-container {
  width: 650px;
  max-width: 90vw;
  background-color: var(--color-nodes-sidepanel-bg);
  border-radius: 12px;
  border: 1px solid var(--color-divider-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;

  .dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--color-divider-subtle);

    .dialog-title {
      margin: 0;
      font-size: 1.125rem;
      font-weight: 600;
      color: #fff;
    }

    .close-button {
      background: none;
      border: none;
      color: #fff;
      cursor: pointer;
      padding: 0.25rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      opacity: 0.8;

      &:hover {
        opacity: 1;
        transform: scale(1.1);
      }
    }
  }

  .dialog-content {
    padding: 1rem;
    overflow-y: auto;
    max-height: 70vh;
    flex: 1;

    .form-group {
      margin-bottom: 1rem;
      position: relative;
      width: 100%;

      .label-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
      }

      label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: #aaa;
      }

      input {
        width: 100%;
        background-color: var(--color-nodes-input-bg);
        border: 1px solid var(--color-divider-subtle);
        border-radius: 6px;
        padding: 0.5rem 0.75rem;
        color: #fff;
        font-size: 0.875rem;
        outline: none;
        transition: border-color 0.2s ease;

        &.invalid {
          border-color: #ff4444;
        }

        &:focus {
          border-color: var(--active-color);
        }

        &::placeholder {
          color: rgba(255, 255, 255, 0.3);
        }
      }

      .error-message {
        font-size: 0.75rem;
        color: #ff4444;
        margin-top: 0.25rem;
        display: block;
      }

      .custom-dropdown {
        position: relative;
        width: 100%;

        &.disabled {
          opacity: 0.7;
          pointer-events: none;
        }

        app-embedding-model-selector {
          width: 100%;
        }
      }
    }

    .progress-bar {
      margin-top: 1rem;
      height: 8px;
      background-color: var(--color-divider-subtle);
      border-radius: 6px;
      overflow: hidden;
      position: relative;

      .progress-fill {
        height: 100%;
        background-color: var(--active-color);
        transition: width 0.3s ease;
      }

      .progress-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 0.75rem;
        color: #fff;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
      }
    }
  }

  .dialog-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid var(--color-divider-subtle);
    gap: 1rem;

    .spinner {
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      border-top-color: white;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }
  }
}
