/* ==========================================================================
   コードフォーマッターページ専用スタイル
   ========================================================================== */

.formatter-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- 左カラム: 入力と設定 --- */
.formatter-input-column {
    display: flex;
    flex-direction: column;
}

.options-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.options-bar .option-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.options-bar label { font-weight: 500; }
.options-bar select { padding: 5px; border-radius: 6px; border: 1px solid #ccc; }

#formatterInput {
    flex-grow: 1; /* 残りの高さをすべて使う */
    min-height: 300px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 15px;
    resize: vertical;
}

.options-detail-area {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.options-detail-area h4 { margin: 0 0 15px 0; }
.options-grid { display: flex; justify-content: space-around; }
.option-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.option-item label { font-size: 13px; font-weight: 500; }
.option-item select { padding: 5px; border-radius: 6px; border: 1px solid #ccc; }

.primary-action-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* --- 右カラム: 出力 --- */
.formatter-output-column {
    display: flex;
    flex-direction: column;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.output-header h3 { margin: 0; }

.output-wrapper {
    flex-grow: 1;
    background-color: #282c34; /* ダークな背景色 */
    border-radius: 8px;
    overflow: hidden;
}
#formatterOutput {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 15px !important;
    background: none !important;
    color: #abb2bf;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 15px;
    box-sizing: border-box;
}


/* --- スマホ表示の調整 --- */
@media (max-width: 768px) {
    .formatter-layout { grid-template-columns: 1fr; }
}
