#file-creator-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.file-creator-inner {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
}

.file-creator-header {
    text-align: center;
    margin-bottom: 2rem;
}

#file-creator-container h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.file-creator-description {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
}

/* ボタンエリア */
.buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.buttons button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#add-file-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

#add-file-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

#download-single-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

#download-single-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

#download-zip-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#download-zip-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.buttons button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* ファイルリスト */
#files-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ファイルアイテム */
.file-item {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.file-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.file-item::before {
    content: "📄";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.file-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* チェックボックス */
.fc-checkbox-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    padding: 1rem !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.fc-checkbox-wrapper:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #667eea !important;
}

.fc-download-checkbox {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    cursor: pointer !important;
    accent-color: #667eea !important;
}

.fc-checkbox-label {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* フォームグループ */
.fc-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fc-form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fc-form-group label::before {
    content: "●";
    color: #667eea;
    font-size: 0.75rem;
}

/* ラジオボタングループ */
.fc-radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.fc-radio-label {
    font-weight: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    cursor: pointer !important;
    padding: 0.5rem 0.75rem !important;
    background: white !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.fc-radio-label:hover {
    border-color: #667eea !important;
    background: #f0f9ff !important;
}

.fc-radio-label:has(input:checked) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.fc-radio-input {
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
    accent-color: white !important;
}

/* 入力フィールド */
.fc-file-title {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-weight: 600;
}

.fc-file-title:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
}

.fc-file-title::placeholder {
    color: #94a3b8;
    font-weight: normal;
}

/* テキストエリア */
.fc-file-content {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    width: 100%;
    min-height: 300px;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #f8fafc;
    line-height: 1.6;
}

.fc-file-content:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
}

.fc-file-content::placeholder {
    color: #94a3b8;
}

/* 削除ボタン */
.remove-file-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.remove-file-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.remove-file-btn::before {
    content: "🗑️";
}

/* ローディング */
#loading {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    color: #92400e;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

#loading::before {
    content: "⏳ ";
}

/* ファイル数表示 */
.files-count {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-weight: 600;
}

.files-count::before {
    content: "📊 ";
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    #files-list {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    #file-creator-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .file-creator-inner {
        padding: 1.5rem;
    }

    #file-creator-container h3 {
        font-size: 1.5rem;
    }

    #files-list {
        grid-template-columns: 1fr;
    }

    .buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .buttons button {
        width: 100%;
        justify-content: center;
    }

    .fc-radio-group {
        gap: 0.5rem;
    }

    .fc-radio-label {
        font-size: 0.8125rem !important;
        padding: 0.375rem 0.625rem !important;
    }

    .fc-file-content {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    #file-creator-container {
        padding: 1rem;
    }

    .file-creator-inner {
        padding: 1rem;
    }

    .file-item {
        padding: 1rem;
    }

    .fc-radio-group {
        flex-direction: column;
    }

    .fc-radio-label {
        width: 100%;
        justify-content: center;
    }
}

/* アニメーション効果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-item {
    animation: slideIn 0.4s ease-out;
}

/* スクロールバーのスタイリング */
.fc-file-content::-webkit-scrollbar {
    width: 8px;
}

.fc-file-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.fc-file-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.fc-file-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
