.form-container {
    background-color: rgb(255, 255, 255);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%; /* Set width to 100% */
    max-width: 750px; /* Limit the max width */
    margin: 0 auto;
    margin-bottom: 0px;
  }

  /* Style for the input textarea */
  .input-text {
    width: 100%;
    height: 200px; /* Adjusted height */
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 20px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease-in-out;
  }

  .input-text:focus {
    border-color: #86ccda;
  }

  /* Style for the compute button */
  .compute-button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #FBC48C;
    color: #EA6C2B;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: inline-block; /* Make the button inline */
  }

    /* Spinner inside button */
    .compute-button.loading {
        position: relative;
        pointer-events: none; /* Disable button while loading */
    }

    /* 确保 spinner 旋转时位置保持稳定 */
    .compute-button.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin-top: -10px; /* 调整到水平居中 */
        margin-left: -10px; /* 调整到垂直居中 */
        border: 3px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top-color: #333;
        animation: spin 1s linear infinite;
    }

    /* Spinner keyframe */
    @keyframes spin {
    to {
        transform: rotate(360deg);
    }
    }


    /* Style for the output display */
    #result {
        margin-top: 20px;
        padding: 15px;
        display: none;
    }

    .progress-container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 10px;
        width: 100%;
    }

    .progress-label {
        font-size: 16px;
        width: 100px;
        text-align: left;
    }

    .progress {
        background-color: #f4f4f4;
        border-radius: 8px;
        flex-grow: 2; 
        margin-right: 10px;
        height: 8px;
    }

    .progress-score {
        width: 50px;
        text-align: right;
        font-size: 14px;
    }
