<!DOCTYPE html>
<html lang="ko">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>글소리 (TTS, 텍스트→MP3변환)</title>
    <link rel="stylesheet" href="/static/styles.css" />
  </head>
  <body>
    <div class="container">
      <section class="panel left">
        <div class="panel-header">입력 텍스트</div>
        <textarea id="text-input" rows="16" placeholder="텍스트를 입력하세요"></textarea>
        <div class="save-row">
          <button id="save-btn" class="primary">mp3 변환</button>
          <select id="voice-select" class="voice-select" aria-label="음성 선택">
            <option value="male">음성 #1</option>
            <option value="female">음성 #2</option>
          </select>
        </div>
        <div id="save-progress" class="progress-wrap hidden" aria-label="저장 진행률">
          <div
            id="save-progress-bar"
            class="progress-bar"
            role="progressbar"
            aria-valuemin="0"
            aria-valuemax="100"
            aria-valuenow="0"
          ></div>
        </div>
      </section>

      <section class="panel right">
        <div class="panel-header">파일리스트</div>
        <ul id="tts-list" class="tts-list"></ul>

        <div class="right-actions">
          <button id="edit-btn" class="secondary">편집</button>
          <button id="delete-btn" class="danger hidden">삭제</button>
          <button id="cancel-btn" class="secondary hidden">취소</button>
        </div>
        <a id="download-link" class="hidden" href="#" download>mp3 다운로드</a>
      </section>
    </div>

    <script src="/static/app.js"></script>
  </body>
</html>
