.qc_voice_stt_audio_container{height: auto;}
.qc_voice_stt_audio_upload_main, .qc_voice_stt_audio_recorder{
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    height: 100%;
    align-items: center;
}

.qc_voice_stt_audio_recorder{}
.qc_voice_stt_audio_display{}
.qc_audio_or{margin: 0px 10px;}
#qc_audio_upload, #qc_voice_stt_audio_record{
    display: flex;
    align-items: center;
}
.qc_audio_recoding_details{}
.qc_voice_stt_audio_display {
    margin: 0 auto;
    position: relative;
    top: 0%;
    text-align: center;
}
.qc_voice_stt_audio_record_div .qc_voice_audio_animation h2{}
.qc_voice_stt_audio_record_div .qc_voice_audio_animation{
    text-align: center;
}
.qc_voice_stt_audio_record_div .qc_voice_audio_animation canvas{
    display:block;
}
.qc_voice_stt_audio_record_div .qc_voice_audio_animation p{}
.qc_voice_stt_audio_record_div .qc_voice_audio_animation button{}
.qc_voice_stt_audio_record_div .voice_countdown{
  /*display: none !important;*/
  font-weight: bold;
}
.qc_voice_stt_audio_template_wrapper{
    display: flex;
    justify-content: space-between;
}
.qc_audio_template_preview{

}

.qc_audio_template_settings table{}
.qc_audio_template_settings .qc_audio_call_to_action input[type=text]{
    width: 400px;
}
.qc_voice_stt_remove_btn{
    position: absolute;
    top: 30px;
    margin:0px;
    cursor: pointer;
}



.qc_voice_stt_audio_record_button {
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
    color: #ffffff;
    background-color: #0170b9;
    border-radius: 2px;
    padding-top: 15px;
    padding-right: 30px;
    padding-bottom: 15px;
    padding-left: 30px;
    font-family: inherit;
    font-weight: inherit;
    line-height: 1;
    border: 0;
    box-shadow: none;
    text-shadow: none;
    transition: 0.3s ease all;    
    text-decoration: none !important;
    font-size: 16px;
    cursor: pointer;
}
.qc_voice_stt_audio_record_button:hover {
    color: #ffffff;
    background-color: #06568b;
}


.qc_voice_record_text .qc_voice_record_text_animation{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}
.qc_voice_record_text .qc_voice_record_text_animation span {
  --d: 10px;
  display: inline-block;
  padding: 0px 0px 0px 0px;
  margin-inline: max(2px, calc(var(--d) / 5));
  width: var(--d);
  height: var(--d);
  background: #212121;
  border-radius: calc(var(--d) / 2);
  -webkit-animation: scale-up-down 300ms var(--delay) linear alternate infinite;
          animation: scale-up-down 300ms var(--delay) linear alternate infinite;
}

.qc_voice_record_text .qc_voice_record_text_animation span:nth-child(1) {
  --delay: calc(-100ms * (6 - 1));
}

.qc_voice_record_text .qc_voice_record_text_animation span:nth-child(2) {
  --delay: calc(-100ms * (6 - 2));
}

.qc_voice_record_text .qc_voice_record_text_animation span:nth-child(3) {
  --delay: calc(-100ms * (6 - 3));
}

.qc_voice_record_text .qc_voice_record_text_animation span:nth-child(4) {
  --delay: calc(-100ms * (6 - 4));
}

.qc_voice_record_text .qc_voice_record_text_animation span:nth-child(5) {
  --delay: calc(-100ms * (6 - 5));
}

@-webkit-keyframes scale-up-down {
  to {
    height: calc(var(--d) * 4);
  }
}

@keyframes scale-up-down {
  to {
    height: calc(var(--d) * 4);
  }
}


.qc_voice_stt_audio_upload_file_main {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    height: 100%;
    align-items: center;
    position: relative;
}

/*.qc_voice_stt_audio_upload_file_main .stt_audio_upload_file {
  margin: auto;
  padding: 1.5em;
  border: 2px dashed #bbb;
  background-color: #fff;
  transition: border-color 0.25s ease-in-out;
}*/
.qc_voice_stt_audio_upload_file_main .stt_audio_upload_file::file-selector-button {
  padding: 1em 1.5em;
  border-width: 0;
  border-radius: 2em;
  background-color: #174d82;
  color: #dbe6f0;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  margin-right: 1em;
}
.qc_voice_stt_audio_upload_file_main .stt_audio_upload_file:hover {
  border-color: #888;
}
.qc_voice_stt_audio_upload_file_main .stt_audio_upload_file:hover::file-selector-button {
  background-color: #1f66ad;
}


.qc_voice_pro {
    background: indianred;
    color: #fff;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 10px;
}
/*
.stt_audio_upload_file {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}*/

.stt_audio_upload_file_label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  padding: 10px 12px;
  background-color: #4245a8;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.25);
}

.stt_audio_upload_file_label span.dashicons.dashicons-format-audio {
    margin-right: 8px;
}

.qc_voice_stt-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #555;
}

/* The Spinner */
.qc_voice_stt-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db; /* Match your brand color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

/* Optional: Pulse effect for the text */
.qc_voice_stt-loading span {
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}




.qc_voice_to_speech_stt-card { background: #fff; padding: 20px; border: 1px solid #ccd0d4; max-width: 100%; margin-top: 20px; }
.qc_voice_to_speech_stt-section { padding: 15px 0; width: 100% }
.or-divider { margin: 0 15px; font-size: 1rem; font-weight: bold; color: #888; }
.is-recording { background: #d63638 !important; color: white !important; border-color: #a00 !important; }
#qc_voice_to_speech_stt-result { width: 100%; height: 250px; font-family: monospace; padding: 10px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
#recording-timer { margin-left: 10px; font-family: monospace; font-size: 16px; }

.qc_voice_to_speech_stt-section .upload-options{
  display: flex;
    justify-content: flex-start;
    align-items: center;
}

#qc_voice_to_speech_stt-result {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Tooltip/Feedback Style */
#btn-copy.copied {
    background-color: #46b450 !important; /* WordPress Green */
    color: white !important;
    border-color: #317a36 !important;
}

/* Force the spinner to be visible when we want it */
#qc_voice_to_speech_stt-loader.is-active {
    visibility: visible;
    display: inline-block;
}

/* Optional: Make it larger or center it */
#qc_voice_to_speech_stt-loader {
    margin: 0 10px;
    vertical-align: middle;
}

#qc_voice_to_speech_stt-loader.is-active {
    visibility: visible;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #2271b1; /* WordPress Blue */
    animation: spin 1s ease-in-out infinite;
}

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


.button-link-delete {
    color: #d63638 !important; /* WP Red */
    text-decoration: none;
    padding-left: 0 !important;
}

.button-link-delete:hover {
    color: #af0b0e !important;
    text-decoration: none;
}

/* Optional: Add a subtle border to the preview container for better grouping */
#audio-preview-container {
    background: #f6f7f7;
    padding: 10px;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

/* AI Rewritten Style */
#qc_voice_to_speech_stt-rewrite-result {
    background-color: #fff;
    border: 2px solid #2271b1; /* Highlight with WP Blue */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%; 
    height: 300px; 
    font-family: monospace; 
    padding: 10px; 
    border-radius: 4px; 
    margin-top: 15px;
}

.qc_voice_to_speech_stt-section.result-area h3,
#rewrite-container h3 {
    color: #2271b1;
}

.qc_voice_to_speech_stt-result-wrap{
    display: flex;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-direction: row;
}


/* Base Container */
.qc_voice_to_speech_stt-container { 
    max-width: 100%;
    margin: 0px auto; 
}

/* Desktop Navigation (Tabs) */
.qc_voice_to_speech_stt-list { display: flex; list-style: none; padding: 0 !important; margin: 0 !important; border-bottom: 2px solid #ddd; }
.qc_voice_to_speech_stt-list li { padding: 12px 24px; cursor: pointer; border: 1px solid transparent; border-bottom: none; transition: 0.3s; }
.qc_voice_to_speech_stt-list li.active { background: #fff; border-color: #ddd; border-bottom: 2px solid #fff; margin-bottom: -2px; font-weight: bold; color: #007bff; }

/* Content Area */
.qc_voice_to_speech_stt-content { display: none; padding: 20px; border: 1px solid #ddd; border-top: none; }
.qc_voice_to_speech_stt-content.active { display: block; }

/* Mobile Accordion Headers (Hidden on Desktop) */
.qc_voice_to_speech_stt-header { display: none; padding: 15px; background: #f8f9fa; border: 1px solid #ddd; cursor: pointer; margin-top: 5px; font-size: 1.1rem; }
.qc_voice_to_speech_stt-header.active { background: #007bff; color: white; }


.qc_voice_to_speech_stt-section #qc_voice_to_speech_stt-lang{
  max-width: 200px;
}
.qc_voice_to_speech_stt-section .rewrite-prompt-content{
  display:none;
  width:100%;
  padding-bottom: 15px;

}
.qc_voice_to_speech_stt-section .rewrite-prompt-content label,
.qc_voice_to_speech_stt-section .rewrite-prompt-content input{
  width:100%;

}


.qc_voice_stt_audio_container {
    position: relative;
}

.qc_voice_stt_audio_container h3 {
    margin: 0;
    padding: 0 0 12px 0;
    font-size: 18px;
    font-weight: bold;
}
.qc_voice_to_speech_stt-section.result-area h3, #rewrite-container h3 {
    color: #1e293b;
}
.qc_voice_to_speech_stt-section.result-area {
    margin: 0 !important;
}
button#btn-transcribe {
    background: #174d82;
}

div#qc_voice_to_speech_stt-1 .qc_voice_to_speech_stt-section {
    margin: 0;
    padding: 0;
    border-radius: 8px;
}
.qc_voice_to_speech_stt-content {
    border-radius: 8px;
}

.qc_voice_to_speech_stt-content {
    border: 1px solid #174d82;
    border-top: 0px solid #174d82;
    border-radius: 0 8px 8px 8px;
    background: #f9f9f9;
}

.qc_voice_to_speech_stt-section p {
    margin: 0;
    padding: 4px 0 10px 0;
    font-size: 12px;
}
.qc_voice_stt_audio_wrappers {
    background: #fff;
    padding: 20px 15px;
    border-radius: 6px;
    border: 1px solid #e3e3e3;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.qc_voice_to_speech_stt-file-content {
    display: flex;
    align-items: center;
}
.qc_voice_stt_audio_upload_file_main {
    justify-content: center;
}
select#qc_voice_to_speech_stt-lang {
  width: 100%;
  max-width: 160px;
  padding: .5em .8em;
  line-height: normal;
  padding-right: 2em;
  appearance: none;
  background-position: 98% 50%;
  border-radius: 3px;
  box-shadow: none;
}
.qc_voice_stt_audio_upload_file_main {
    background: #eee;
    padding: 10px;
}
.qc_voice_stt_audio_container button#btn-transcribe {
    background-image: linear-gradient(to right, #C3BAEF 0%, #87ABE7 100%) !important;
    padding-top: 15px;
    padding-right: 30px;
    padding-bottom: 15px;
    padding-left: 30px;
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1em;
}
.qc_voice_to_speech_stt-lan label {
    display: none;
}
.or-divider {
    color: #fff;
}
input#stt_audio_upload_file {
    color: #fff;
}

button#qc_voice_stt_youtube_subtitle_generate {
    background-image: linear-gradient(to right, #C3BAEF 0%, #87ABE7 100%) !important;
}

button#qc_voice_stt_vimeo_subtitle_generate {
    background-image: linear-gradient(to right, #C3BAEF 0%, #87ABE7 100%) !important;
}

button#btn-rewrite {
    background-image: linear-gradient(to right, #C3BAEF 0%, #87ABE7 100%) !important;
}
.qc_voice_to_speech_stt-content {
    border: 1px solid #e0c3fc;
    border-top: 1px solid #e0c3fc;
    border-radius: 0 8px 8px 8px;
    background: #f9f9f9;
    background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    background-image: linear-gradient(-225deg, #E3FDF5 0%, #FFE6FA 100%);
}




.qc_voice_stt_audio_upload_file_main {
    margin-bottom: 0;
}

  
input#qcld_youtube_video_id {
    background: #fbfbfb8c;
    border: 1px solid #00000026;
    border-radius: 6px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    width: 100%;
    padding: 8px 16px;
}

textarea#qc_voice_to_speech_stt-result {
    min-height: 140px;
    height: 140px;
}


.qc_voice_stt_audio_upload_file_main {
background: #FFFFFF;
padding: 10px;
border: 1px solid #eeeeee00;
background-image: linear-gradient(to right, #C3BAEF 0%, #87ABE7 100%);
border-radius: 8px;
box-shadow: rgb(0 0 0 / 18%) 0px 25px 20px -20px;
}

button#record-btn {
  background: #fff;
  color: #000;
  padding-top: 15px;
  padding-right: 30px;
  padding-bottom: 15px;
  padding-left: 30px;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1em;
}
.qc_voice_to_speech_stt-transcribe-section{
    text-align: center;
    border: 1px solid #eee;
    margin: 25px 0;
    border-radius: 6px;
    border-radius: 8px;
    background: #f9f9f9;
    background-image: linear-gradient(-225deg, #E3FDF5 0%, #FFE6FA 100%)palevioletred;
    background-image: linear-gradient(-225deg, #E3FDF5 0%, #FFE6FA 100%);
}

input#qcld_vimeo_video_id {
    background: #fbfbfb8c;
    border: 1px solid #00000026;
    border-radius: 6px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    width: 100%;
    padding: 8px 16px;
}
.qc_voice_to_speech_stt-section.qc_voice_to_speech_stt-transcribe-section h3 {
    margin: 0;
    padding: 0;
}
.qc_voice_to_speech_stt-section.qc_voice_to_speech_stt-transcribe-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
div#qc_voice_to_speech_stt-2 .qc_voice_to_speech_stt-section {
    padding: 0;
}


ul.qc_voice_to_speech_stt-list{
  display: inline-flex;
  background: #e9e9e9;
  padding: 6px;
    border-radius: 0 0 25px;
  gap: 0px;
}

ul.qc_voice_to_speech_stt-list li {
  border: none;
  padding: 8px 18px;
  border-radius: 25px;
  background: transparent;
  font-size: 14px;
  color: #555;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
}

ul.qc_voice_to_speech_stt-list li:hover {
  background: rgba(255, 255, 255, 0.6);
}

ul.qc_voice_to_speech_stt-list li.active {
  background: #ffffff;
  color: #000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
ul.qc_voice_to_speech_stt-list li {
    border-radius: 0 0 25px;
}
.qc_voice_to_speech_stt-list li.active {
    border-bottom: 0px solid #fff;
}


.qc_voice_to_speech_stt-list li.active {
    font-weight: normal;
}


ul.qc_voice_to_speech_stt-list li i {
    padding: 0 8px 0 0;
}
ul.qc_voice_to_speech_stt-list li:hover {
    background: rgb(255 255 255 / 0%);
}



ul.qc_voice_to_speech_stt-list {
    border-radius: 0 0 0;
    width: 100%;
}

.qc_voice_to_speech_stt-content {
    border-top: 0px solid #e0c3fc;
    border-radius: 0 0 8px 8px;
}


/* Responsive Breakpoint (e.g., 768px for tablets/phones) */
@media (max-width: 767px) {
    .qc_voice_to_speech_stt-list { display: none; } /* Hide horizontal tabs */
    .qc_voice_to_speech_stt-header { display: block; } /* Show vertical headers */
    .qc_voice_to_speech_stt-content { border: 1px solid #ddd; border-top: none; }
}
