/* ベースコンテナとセクション */
.fma-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.fma-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* タイトルとテキストエリア */
.fma-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a202c;
}

.fma-content-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.fma-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    resize: vertical;
}

/* ボタンスタイル */
.fma-button-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.fma-btn {
    padding: 8px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.fma-btn-primary {
    background: #3182ce;
    color: white;
    border: none;
}

.fma-btn-primary:hover {
    background: #2c5282;
}

/* カラムレイアウト */
.fma-content-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.fma-content-column {
    flex: 1;
    min-width: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .fma-content-columns {
        flex-direction: column;
    }
    
    .fma-content-column {
        width: 100%;
    }
    
    .fma-button-group {
        flex-direction: column;
    }
    
    .fma-btn {
        width: 100%;
    }
}

/* アコーディオンアイテム */
.fma-accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
}

.fma-accordion-header {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    cursor: pointer;
    gap: 10px;
    border-radius: 6px 6px 0 0;
}

.fma-accordion-header:hover {
    background: #edf2f7;
}

.fma-drag-handle {
    cursor: move;
    color: #718096;
    user-select: none;
    font-size: 16px;
}

.fma-checkbox {
    margin: 0;
    width: 16px;
    height: 16px;
}

.fma-file-name {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
}

.fma-toggle-btn {
    color: #718096;
    transition: transform 0.2s;
}

.fma-toggle-btn.fma-open {
    transform: rotate(180deg);
}

.fma-accordion-content {
    display: none;
    padding: 15px;
    border-top: 1px solid #e2e8f0;
}

/* コンテンツエリア */
.fma-content-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.fma-copy-btn {
    padding: 4px 8px;
    font-size: 12px;
    background: #e2e8f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.fma-copy-btn:hover {
    background: #cbd5e1;
}

.fma-content-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    resize: vertical;
}

/* ファイル構造表示 */
.fma-file-structure {
    font-family: "SF Mono", "Monaco", monospace;
    padding: 15px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.fma-tree-item {
    margin: 4px 0;
    line-height: 1.5;
    position: relative;
}

.fma-tree-line {
    color: #718096;
    font-family: monospace;
    white-space: pre;
    margin-right: 4px;
}

.fma-tree-indent {
    display: inline-block;
    width: 20px;
}

.fma-tree-icon {
    display: inline-block;
    width: 16px;
    text-align: center;
    color: #4a5568;
}

