@import '../mixins';

.wemeet-connect-tab-content {
  .accordion {
    .wemeet-section-pannel {
      padding: 40px 20px 10px 30px;
      background: #fff;
      border-radius: 15px;
      width: 65%;
      .wemeet-renew-oauth-button{
        background-color: #003B7A;
        border: none;
        border-radius: 8px;
        color: #fff;
        cursor: pointer;
        font-size: 16px;
        padding: 13px 16px;
        float: right;
      }

      &.wemeet-zoon-connect-pannel{
        padding-bottom: 80px;
      }

    }

    margin-bottom: 20px;

    .server-auth-credentials-info, .webex-credentials-info {
      margin-bottom: 20px;

      .title {
        font-size: 20px;
        font-weight: 700;
        line-height: 0;
      }

      .description {
        font-size: 14px;
        color: #000000;

        a {
          color: #003B7A;
          text-decoration: none;
          font-weight: 500;
          font-size: 16px;
          &:hover{
             color: #0074A6;
             text-decoration: underline;
          }
          &:focus{
            outline: none;
            box-shadow:none;
          }
        }
      }
    }

    .input-container {
      margin-bottom: 40px;

      .input-field {
        display: flex;
        align-items: center;

        label {
          display: block;
          font-size: 16px;
          margin-bottom: 8px;
          width: 25%;
          font-weight: 600;
        }

        input {
          padding: 7px 10px;
          font-size: 14px;
          border: 1px solid #ddd;
          border-radius: 8px;
          width: 67%;
          &:focus{
              box-shadow: none;
              outline: none;
              border: 1px solid #997eff;
          }
        }

        .toggle-trigger {
          display: block;
          margin-left: 5px;
          color: #003B7A;
          text-decoration: none;
          font-size: 16px;

          &:focus {
            outline: none;
            box-shadow: none;
          }

          &:hover {
            text-decoration: underline;
            color:#0074A6;
          }
        }
      }
    }

  }

  #wemeet_s2sOauth-app-sdk-credentials {
    margin-top: 50px;
  }

  .wemeet-save-actions {
    text-align: left;
    .setting-save-button {
      margin-top: 20px;
    }

    .save-button {
      padding: 10px 16px;
      /* Adjusted padding for better spacing */
      font-size: 16px;
      background-color: #003B7A;
      color: #fff;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      //margin-top: 50px;

      &:hover {
        background-color: #0074A6;
      }
    }

    .save-button.saved {
      background-color: rgba(183, 183, 183, 0.5098039216);
      color: #333;
    }
  }

  .webx-btn-wrapper{
      width: 65%;
      padding-left: 50px;
      margin-bottom: 20px;
      text-align: end;
      .wemeet-connect-webex{
        padding: 10px 16px;
        font-size: 16px;
        background-color: #003B7A;
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        width: fit-content;
        &:hover{
          background-color: #0074A6;
        }
    }
  }

  @include respond-to('seventeen_hundread') {
    .accordion{
      .wemeet-section-pannel{
        width: 75%;
      }

      .webx-btn-wrapper{
        width: 75%;
      }
    }
    
  }

  @include respond-to('xlarge') {
    .accordion{
      .wemeet-section-pannel{
        width: 90%;
      }

      .webx-btn-wrapper{
        width: 90%;
      }
    }
    
  }

  @include respond-to('large') {
    .accordion{
      .input-container {
        .input-field {
          label {
            width: 35%;
          }
    
          input {
            width: 65%;
          }
        }
      }

      .textarea-field{
        width: 100%;
        label {
          width: 35%;
        }
    
        textarea {
          width: 65%;
          margin-right: 45px;
        }
    
      }
    }
  }

  @include respond-to('xsmall') {
    .accordion{
      .input-container {
        .input-field {
          display: inline-block;
          width: 100%;
          label {
            width: 100%;
          }
    
          input {
            width: 100%;
          }
          .toggle-trigger{
            margin-top: 10px;
          }
        }
      }

      .textarea-field{
        display: inline-block;
        width: 100%;
        label {
          width: 100%;
        }
    
        textarea {
          width: 100%;
        }
    
      }

      .server-auth-credentials-info, .webex-credentials-info {
        margin-bottom: 20px;
        .title {
          line-height: 25px;
        }
      }
      
    }
  }

  @include respond-to('four_hundread') {
    .accordion{
      .wemeet-section-pannel{
        width: 85%;
      }
      .webx-btn-wrapper{
        width: 85%;
      }
    }
  }

}

.wemeet-google-meet-connect-tab {
  .wemeet-section-pannel {
    background: #ffffff;
    padding: 20px;
    border-color: rgba(0, 0, 0, 0);
    width: auto;
    border-radius: 10px;
    &.additional-info-section{
      margin-bottom: 30px;
      position: relative;
    }

    &.google-meet-credentainal-pannel{
      width: auto;
    }

    .google-meet-integration {
      display: flex;
      align-items: center;
      padding: 20px;
      background-color: #ffffff;
      border-radius: 10px;
    
      .integration-content {
        // width: 50%;
        padding-right: 20px;

    
        .title{
          font-size: 2rem;
          font-weight: 500;
          margin-top: 0;
          span{
            font-weight: 700;
          }
        }
    
        h3 {
          font-size: 18px;
          font-weight: normal;
        }
    
        p {
          margin: 10px 0;
          font-size: 16px;
          line-height: 1.6;
    
          a {
            color: #007bff;
            text-decoration: none;
            &:hover {
              color: #0056b3;
            }
          }
        }
    
        .url-copy {
          margin-top: 10px;
          position: relative;
    
          input {
            flex: 1;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 8px;
            outline: none;
            width: 100%;
          }
    
          button {
            padding: 8px 16px;
            color: #003B7A;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            position: absolute;
            background: #ffff;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 14px;
            padding: 5px 12px;
            border: 1px solid #003B7A;
            font-weight: 600;
    
            &:hover {
              background-color: #003B7A;
              color: #ffff;
            }
          }
        }
      }
    
      .integration-image {
        img {
          max-width: 100%;
          height: auto;
          border-radius: 10px;
          position: absolute;
          right: 0;
          bottom: 0;
        }
      }
    }
    
    .upload-section {
      display: flex;
      justify-content: center;
      align-items: center;
      
      .drop-zone {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; // Center elements horizontally
        width: 100%;
        padding: 20px;
        background-color: #f8f9fa; // Optional background color
        border: 3px dashed #ddd;
        border-radius: 8px;
        text-align: center;

        .wemeet-round-box {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          font-size: 28px;
          background: #e9edfb;
          width: 102px;
          height: 102px;
          border-radius: 50%;
          margin-bottom: 20px;
        }

        .upload-instruction {
          font-size: 1.25rem;
          margin-bottom: 32px;
        }

        .file-upload-label {
          .button-style {
            display: inline-block;
            padding: 10px 20px;
            background-color: #003B7A;
            color: #fff;
            border-radius: 8px;
            font-weight: 600;
            font-size: 16px;
            line-height: 162%;
            cursor: pointer;
            &:hover {
              background-color: #0074A6;
            }
          }
        }

        .file-info {
          margin-top: 10px;
          color: #333;
        }

        .error-message {
          margin-top: 10px;
          color: #dc3545;
        }
      }

      .wemeet-spinner{
        margin-top: 2rem;

      }
    }
  
    .credential-status{
      text-align: center;
      padding: 30px 100px;

      .top-content{
        h3{
          color:#212327;
          font-size: 1.7rem;
        }

        p{
          color: #757c8e;
          font-size: 1rem;
        }

      }

      .middle-content{
        padding: 40px 0;
        .img-wrapper{
          border-radius: 80px;
          background: #eff1f7;
          border-radius: 80px;
          height: 70px;
          width: 70px;
          display: inline-flex;
          align-items: center;
          justify-content: center;
        }

        h3{
          font-size: 1.25rem;
          color: #3c434a;
          font-weight: 500;
        }
      }

      .bottom-content{
        display: flex;
        flex-direction: column;
        align-items: center;

      }
    }

    .wemeet-meet-connected-wrapper{
      display: flex;
      justify-content: space-between;
      padding: 20px;
      align-items: center;
      .connected-left{
        h3{
          color:#212327;
          font-size: 1.5rem;
          font-weight: 500;

        }
        p{
          color: #757c8e;
          font-size: 0.875rem;
        }

      }

      .connected-right{
        .wemeet-reset-credential-btn{
          margin-right: 10px;
        }
      }
    }

    .wemeet-consent-screen-btn{
      color: #fff;
      background: #003B7A;
      border-radius: 8px;
      cursor: pointer;
      font-size: 18px;
      padding: 10px 20px;
      border: 1px solid #003B7A;
      font-weight: 600;
      text-decoration: none;
      &:hover {
        background-color: #0074A6;
        color: #ffff;
      }

    }

    .wemeet-reset-credential-btn, .wemeet-change-account-btn{
      color: #003B7A;
      border-radius: 8px;
      cursor: pointer;
      background: #ffff;
      font-size: 18px;
      padding: 10px 20px;
      border: 1px solid #003B7A;
      font-weight: 600;
      text-decoration: none;
      margin-top: 20px;
      &:hover {
        background-color: #003B7A;
        color: #ffff;
      }
    }
  }

}
