/* src/public/css/indent-formatter.css */

.if-app {
    margin-top: 20px;
}

/* オプションバー */
.if-options-bar {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.if-options-title {
    margin: 0 0 15px;
    font-size: 1.05rem;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 8px;
}
.if-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}
.if-option-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.if-option-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #475569;
}

/* セグメント切り替えボタン */
.if-btn-toggle {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}
.if-toggle-btn {
    padding: 9px 16px;
    border: none;
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    border-right: 1px solid #cbd5e1;
}
.if-toggle-btn:last-child { border-right: none; }
.if-toggle-btn:hover { background: #e2e8f0; }
.if-toggle-btn.is-active {
    background: #2a5298;
    color: #ffffff;
}

/* チェックボックス */
.if-checks {
    border-top: 1px solid #e9ecef;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.if-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #334155;
    cursor: pointer;
}
.if-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.if-check-desc {
    margin: 0 0 6px 24px;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* 左右の入出力エリア */
.if-editor-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.if-pane-box {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.if-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f1f3f5;
    font-size: 0.9rem;
    font-weight: bold;
    color: #334155;
}
.if-btn-sm {
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    color: #475569;
    transition: background-color 0.15s;
}
.if-btn-sm:hover { background: #e2e8f0; }
.if-btn-copy { display: inline-flex; align-items: center; gap: 6px; }

.if-pane-textarea {
    width: 100%;
    height: 360px;
    padding: 15px;
    border: none;
    outline: none;
    resize: vertical;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    tab-size: 4;
    box-sizing: border-box;
    color: #1e293b;
    background: #ffffff;
}
.if-pane-textarea[readonly] {
    background: #f8fafc;
    color: #334155;
}

/* 検出結果の表示 */
.if-detect-info {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    min-height: 1.4em;
}

/* トースト通知（画面右上に一時表示） */
.if-toast-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.if-toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* 📱 スマホ・タブレット対応 */
@media (max-width: 768px) {
    .if-options-bar { padding: 16px; }
    .if-options-grid { gap: 16px; }
    .if-toggle-btn { padding: 10px 12px; font-size: 0.85rem; flex: 1; text-align: center; }
    .if-btn-toggle { width: 100%; }
    .if-editor-row { flex-direction: column; gap: 16px; }
    .if-pane-box { min-width: 100%; }
    .if-pane-textarea { height: 260px; font-size: 0.85rem; }
}
