/* 中央配置のための共通スタイル（もし特定の要素にのみ適用しないなら削除可） */
.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    flex-direction: column;
}

/* ログインフォーム用 */
.login-form {
    width: 300px;
    text-align: center;
}

.password-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 12px;
}

.login-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ログインボタン（青色） */
.login-container button {
    padding: 10px 20px;
    background-color: #2196F3;
    /* 青 */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* コンバーター画面用 */
.converter-form {
    width: 50%;
    min-width: 400px;
    max-width: 600px;
    /* 中央寄せのmargin: 0 auto; を削除します。 */
    /* margin: 0 auto; */
    /* この行を削除またはコメントアウト */
    margin-left: 20px;
    /* 必要であれば左からの余白を設定 */
    /* あるいは、親要素のテキストアラインをleftにするか、flexのjustify-contentをflex-startにする */
}

.converter-form textarea {
    width: 100%;
    height: 200px;
    resize: vertical;
}

/* CSV変換ボタン（緑色） */
.csv-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    /* 緑 */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    /* margin: 20px auto 10px auto; を削除 */
    /* display: block; margin: auto; を削除し、左寄せになるように調整 */
    display: inline-block;
    /* button-rowでflexboxになるので不要な場合あり */
    margin-top: 10px;
    /* 他の要素との間隔 */
}

/* ログアウトボタン（茶色） */
.logout-button {
    padding: 10px 20px;
    background-color: #8B4513;
    /* 茶色 */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    /* display: block; margin: 0 auto; を削除 */
    display: inline-block;
    /* button-rowでflexboxになるので不要な場合あり */
    margin-top: 10px;
    /* 他の要素との間隔 */
}

/* ログアウトボタンの位置（新しいbutton-rowのFlexboxで制御） */
/* .logout-container のスタイルは不要なので削除 */
/* .logout-container {
    text-align: right;
    margin-top: 10px;
} */

/* 新しく追加した button-row のスタイル */
.button-row {
    display: flex;
    /* Flexboxを有効にする */
    justify-content: flex-start;
    /* 左寄せに変更 */
    align-items: flex-end;
    /* 下端を揃える */
    margin-top: 10px;
    gap: 10px;
    /* ボタン間のスペース */
}

/* ログアウトボタンを囲むラッパー（必要であれば） */
.logout-wrapper {
    /* 特にスタイルがなければ不要 */
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .button-row {
        flex-direction: column;
        /* 小さい画面では縦に並べる */
        align-items: flex-start;
        /* 左寄せにする */
        gap: 10px;
    }

    .logout-wrapper {
        width: auto;
        /* 幅の指定を解除 */
        text-align: left;
        /* 左寄せ */
    }
}