// Styles for the customization page

.customization-container {
  padding: 1.5rem;

  .customization-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;

    h1 {
      margin: 0;
      font-size: 1.8rem;
      color: var(--surface-900);
    }
  }

  .customization-content {
    margin-bottom: 2rem;

    .settings-section {
      background-color: var(--surface-card);
      border-radius: 8px;
      margin-bottom: 1.5rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      overflow: hidden;

      .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--surface-200);

        h2 {
          margin: 0;
          font-size: 1.3rem;
          font-weight: 600;
          color: var(--surface-900);
        }
      }

      .section-content-wrapper {
        position: relative;
      }

      .section-content {
        padding: 1.5rem;
      }
    }

    .setting-wrapper {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 2rem;

      @media (max-width: 992px) {
        grid-template-columns: 1fr;
      }

      .setting-form {
        .p-field {
          margin-bottom: 1.5rem;

          label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--surface-700);
          }

          small {
            display: block;
            margin-top: 0.25rem;
            color: var(--surface-600);
            font-size: 0.85rem;
          }
        }

        .p-formgrid {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 1rem;
          margin-bottom: 1.5rem;

          @media (max-width: 576px) {
            grid-template-columns: 1fr;
          }
        }
      }

      .setting-preview {
        .preview-card {
          background-color: var(--surface-50);
          border-radius: 8px;
          padding: 1rem;
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

          h3 {
            margin-top: 0;
            margin-bottom: 1rem;
            font-size: 1rem;
            color: var(--surface-700);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
          }

          .preview-content {
            background-color: white;
            border-radius: 6px;
            padding: 1.5rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;

            .preview-link {
              margin-top: 0.5rem;

              a {
                color: var(--primary-color);
                text-decoration: none;

                &:hover {
                  text-decoration: underline;
                }
              }
            }

            .dialog-preview {
              width: 100%;
              text-align: center;

              h4 {
                font-size: 1.2rem;
                margin-top: 0;
                margin-bottom: 1rem;
                color: var(--surface-900);
              }

              p {
                margin-bottom: 1.5rem;
                color: var(--surface-700);
              }

              .dialog-actions {
                display: flex;
                justify-content: center;
                gap: 0.75rem;
              }
            }
          }
        }
      }
    }
  }

  // VIP Dialog specific styling to match the screenshot
  .vip-dialog {
    max-width: 550px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    &-title {
      font-size: 1.5rem;
      text-align: center;
      margin-bottom: 1rem;
      color: var(--surface-900);
    }
    
    &-content {
      margin-bottom: 1.5rem;
      text-align: center;
    }
    
    &-actions {
      display: flex;
      justify-content: center;
      gap: 1rem;
      
      .p-button {
        min-width: 120px;

        &.p-button-outlined {
          background-color: white;
          color: var(--surface-700);
          border: 1px solid var(--surface-300);
        }
      }
    }
  }

  .settings-actions {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 0;
  }
  
  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    
    i {
      margin-bottom: 1rem;
      color: var(--primary-color);
    }
    
    p {
      margin-top: 1rem;
      color: var(--surface-600);
    }
  }
}

// Styles for the preview to match the screenshot
.preview-section {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  
  .preview-title {
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 1rem;
  }
  
  .preview-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .dialog-header {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .dialog-message {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #555;
  }
  
  .dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    
    .confirm-button {
      background-color: #111;
      color: white;
      border: none;
      padding: 0.5rem 1.25rem;
      border-radius: 0.25rem;
      font-weight: 500;
      cursor: pointer;
    }
    
    .cancel-button {
      background-color: white;
      color: #333;
      border: 1px solid #ccc;
      padding: 0.5rem 1.25rem;
      border-radius: 0.25rem;
      font-weight: 500;
      cursor: pointer;
    }
  }
}
