/* src/public/css/audio-base64.css … 「音声→Base64変換」「Base64→音声復元」の見た目（2つのツールで共通）
   💡 ボタン・メッセージ・詳細オプションは、共通の calc-common.css・money.css を使います。ダークモードは theme-dark.css の末尾 */

/* ファイルを選ぶ枠（ドラッグ＆ドロップもできる） */
.ab-drop {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    background: #f8fafc;
    transition: border-color 0.2s, background-color 0.2s;
}
.ab-drop.is-dragover { border-color: #f39c12; background: #fdf6e2; }
.ab-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e3c72;
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
}
.ab-upload-btn:hover { background: #2a5298; }
.ab-drop:focus-within .ab-upload-btn { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ab-drop-tip { margin: 12px 0 0; font-size: 0.85rem; color: #475569; }

/* ファイル・結果の情報（名前・形式・大きさ など） */
.ab-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin: 14px 0;
}
.ab-info > div {
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
.ab-info dt { font-size: 0.75rem; color: #475569; }
.ab-info dd { margin: 2px 0 0; font-weight: bold; color: #1e293b; overflow-wrap: anywhere; }

.ab-options { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ab-options .input-group { flex: 1 1 220px; min-width: 0; margin-bottom: 8px; }

/* Base64 のテキスト欄 */
.ab-label-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.ab-label-row label { margin-bottom: 0 !important; }
.ab-mini { padding: 5px 10px; font-size: 0.8rem; }
.ab-code {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    resize: vertical;
    word-break: break-all;
}
.ab-code[readonly] { background: #f8fafc; }
.ab-hint { margin: 6px 0 0; min-height: 1.2em; font-size: 0.8rem; color: #475569; }

.ab-copied { min-height: 1.2em; margin: 8px 0 0; font-size: 0.85rem; color: #15803d; font-weight: bold; }
.mc-message.is-error { color: #b91c1c; }

.ab-sub-title { margin: 22px 0 4px; font-size: 1rem; color: #1e3c72; }
.ab-player { display: block; width: 100%; max-width: 100%; margin: 8px 0; }
.ab-play-error { color: #b45309; }
.ab-download { width: auto; padding-left: 22px; padding-right: 22px; }
.ab-next { margin: 18px 0 0; font-size: 0.92rem; }
