body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 2em;
    max-width: 800px;
    margin: auto;
    background-color: #f5f8fa;
    color: #2c3e50;
  }
  
  header {
    text-align: center;
    margin-bottom: 2em;
  }
  
  header img {
    height: 50px;
  }
  
  header h2 {
    font-weight: 400;
    margin: 0.5em 0;
    color: #2c3e50;
  }
  
  header p {
    color: #4f6070;
    font-size: 1em;
  }
  
  #upload-area {
    border: 2px dashed #00a1df;
    background-color: #fff;
    padding: 2em;
    text-align: center;
    margin-top: 1em;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  
  #upload-area.dragover {
    border-color: #0077b6;
    background: #f0fbff;
  }
  
  #powered-ai {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75em;
    font-style: italic;
    color: #00a1df;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  #upload-icon {
    height: 80px;
    margin-bottom: 1em;
    opacity: 0.95;
  }
  
  .step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
    color: #555;
    font-size: 0.95em;
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .step-list li {
    margin-bottom: 0.5em;
  }
  
  #file-label {
    cursor: pointer;
    color: #0077b6;
    display: inline-block;
    padding: 0.75em 1.5em;
    background: #e6f7fb;
    border-radius: 5px;
    margin-top: 1em;
    font-weight: 500;
  }
  
  #file-label:hover {
    background-color: #d1f0fa;
  }
  
  .drag-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
  }
  
  .format-note {
    font-size: 0.85em;
    color: #999;
  }
  
  #filename-display {
    display: none;
    margin-top: 1em;
    padding: 0.6em 1em;
    border: 1px solid #d0eaf5;
    background-color: #eaf8fd;
    color: #0077b6;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.95em;
    max-width: 90%;
    word-break: break-word;
  }
  
  
  #status {
    margin-top: 1em;
    font-size: 1em;
    color: #333;
  }
  
  #loading-spinner {
    display: none;
    margin-top: 1em;
  }
  
  #loading-spinner span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background: #00a1df;
    border-radius: 50%;
    animation: bounce 1s infinite ease-in-out both;
  }
  
  #loading-spinner span:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  #loading-spinner span:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
  }
  
  .footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5em;
    font-size: 0.8em;
    flex-wrap: wrap;
    color: #666;
  }
  
  .footer-bar a {
    color: #0077b6;
    text-decoration: underline;
  }
  
  #transcribe-button {
    background-color: #00a1df;
    color: white;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
  }
  
  #transcribe-button:hover {
    background-color: #0077b6;
  }
  
  #tabs {
    margin-top: 2em;
    display: none;
    position: relative;
  }

  .tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0;
    
  }
  
  .tab-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 0;

  }
  
  .tab-buttons button {
    background-color: #eaf8fd;
    border: 1px solid #d0eaf5;
    border-bottom: none;
    padding: 0.6em 1.2em;
    cursor: pointer;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    color: #0077b6;
    transition: background-color 0.2s ease;
  }
  
  .tab-buttons button:hover {
    background-color: #d1f0fa;
  }
  
  .tab-buttons button.active {
    background-color: #ffffff;
    border-bottom: 1px solid #ffffff;
  }
  
  
  .tab {
    display: none;
    padding: 1.0em;
    background: #ffffff;
    border-radius: 0 0 8px 8px; /* bottom corners only */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-top: none; /* aligns with tab buttons */
    margin-top: 0;
  }
  
  .tab.active {
    display: block;
  }
  
  .copy-buttons {
    display: flex;
    gap: 0.5em;
    margin-top: 0; /* remove any extra margin */
  }

    .copy-buttons button {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    padding: 0.1em;
    color: #0077b6;
    transition: color 0.2s ease;
    }

    .copy-buttons button:hover {
    color: #005f87;
    transform: scale(1.1);
    transition: transform 0.2s ease;
    }
  
  @media (max-width: 768px) {
    body {
      padding: 1em;
    }
  
    #upload-area {
      padding: 1.5em;
    }
  
    .upload-steps {
      font-size: 0.9em;
    }
  
    .footer-bar {
      flex-direction: column;
      align-items: center;
      gap: 1em;
      text-align: center;
    }
  
    #transcribe-button {
      width: 100%;
      max-width: 200px;
    }
  }
  
  #drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85); /* translucent white */
    color: #0077b6;
    font-size: 1.2em;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
  }
  
  
  #upload-area.dragover {
    border-color: #0077b6;
    background: #f0fbff;
  }

  #error-message {
    display: none;
    margin-top: 1em;
    padding: 0.6em 1em;
    border: 1px solid #ffcccc;
    background-color: #ffecec;
    color: #cc0000;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.95em;
    max-width: 90%;
    word-break: break-word;
  }
  
  #status {
    margin-top: 1em;
    font-size: 0.9em;                /* Slightly smaller, matches drag note */
    color: #4f6070;                  /* Softer than pure black */
    padding: 0.5em 1em;
    border-radius: 6px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  #status.show {
    display: block;
    opacity: 1;
  }
  
  #progress-bar {
    width: 100%;
    background-color: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1em;
    height: 12px;
    display: none;
  }
  
  #progress-fill {
    height: 100%;
    width: 0%;
    background-color: #00a1df;
    transition: width 0.3s ease;
  }
  
  #transcribe-button:disabled,
  #transcribe-button.disabled {
    background-color: #b3dff1;
    cursor: not-allowed;
    opacity: 0.6;
}

#html h1 {
    font-size: 1.6em;
    margin-top: 0.6em;
    margin-bottom: 0.4em;
    line-height: 1.4;
    font-weight: bold;
    color: #2c3e50;
  }
  
  #html h2 {
    font-size: 1.3em;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
    line-height: 1.3;
    font-weight: bold;
    color: #2c3e50;
  }
  
  #html p {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    line-height: 1.6;
    font-size: 1em;
    color: #2c3e50;
  }
  
  #html ul,
  #html ol {
    padding-left: 1.4em;
    margin-top: 0.0em;
    margin-bottom: 0.3em;
  }
  
  #html li {
    margin-bottom: 0.3em;
    line-height: 1.5;
    font-size: 1em;
    color: #2c3e50;
  }
  

    
  #html {
    white-space: normal;
  }
  



