/* ═══════════════════════════════════════════════════════════
   ファビコン＆アプリアイコン ミニマル生成ツール — styles
   prefix: fg-
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.fg-container {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 40px;
    color: #1f2937;
}

/* ── Feature Banner ── */
.fg-feature-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fde68a;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}

.fg-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fg-feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.fg-feature-item strong {
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    display: block;
    margin-bottom: 2px;
}

.fg-feature-item p {
    font-size: 12px;
    color: #b45309;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .fg-feature-banner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Dropzone ── */
.fg-dropzone {
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    padding: 52px 30px;
    text-align: center;
    background: #fefce8;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    position: relative;
    margin-bottom: 24px;
}

.fg-dropzone:hover,
.fg-dropzone-active {
    border-color: #f59e0b;
    background: #fffbeb;
    transform: scale(1.005);
}

.fg-dropzone-icon {
    font-size: 52px;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.fg-dropzone-text {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 12px;
    line-height: 1.6;
}

.fg-dropzone-hint {
    font-size: 12.5px;
    color: #9ca3af;
    margin: 10px 0 0;
}

.fg-dropzone-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fg-dropzone-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fg-dropzone-info {
    text-align: left;
}

.fg-dropzone-filename {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
}

.fg-dropzone-fileinfo {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

/* ── Buttons ── */
.fg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.fg-btn-primary {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.fg-btn-primary:hover {
    background: #d97706;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.fg-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.fg-btn-secondary:hover {
    background: #e5e7eb;
}

.fg-btn-upload {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
}

.fg-btn-upload:hover {
    background: #d97706;
}

.fg-btn:active {
    transform: scale(0.97);
}

.fg-btn-change {
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #6b7280;
    padding: 6px 14px;
    font-size: 12.5px;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s;
}

.fg-btn-change:hover {
    border-color: #9ca3af;
    color: #374151;
}

/* ── Settings Panel ── */
.fg-settings-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
}

.fg-settings-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fef3c7;
}

.fg-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 600px) {
    .fg-settings-grid {
        grid-template-columns: 1fr;
    }
}

.fg-setting-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fg-setting-row label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

.fg-setting-row.fg-setting-full {
    grid-column: 1 / -1;
}

.fg-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fg-slider-wrap input[type="range"] {
    flex: 1;
    accent-color: #f59e0b;
    height: 6px;
}

.fg-slider-value {
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b;
    min-width: 40px;
    text-align: right;
}

.fg-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fg-color-input {
    width: 44px;
    height: 36px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
    background: none;
}

.fg-color-hex {
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #6b7280;
}

.fg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    margin-bottom: 8px;
}

.fg-checkbox-label input[type="checkbox"] {
    accent-color: #f59e0b;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ── Generate Button ── */
.fg-btn-generate {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 24px;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    font-family: inherit;
}

.fg-btn-generate:hover {
    opacity: 0.92;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.fg-btn-generate:active {
    transform: scale(0.98);
}

.fg-btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Progress ── */
.fg-progress-wrap {
    margin-bottom: 24px;
}

.fg-progress-bar-track {
    background: #f3f4f6;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.fg-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 99px;
    width: 0%;
    transition: width 0.3s ease;
}

.fg-progress-label {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

/* ── Preview ── */
.fg-preview-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
}

.fg-preview-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fef3c7;
}

.fg-preview-tabs {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.fg-preview-tab {
    flex: 1;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    color: #6b7280;
}

.fg-preview-tab-active {
    background: #f59e0b;
    color: #fff;
}

.fg-preview-viewport {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f9fafb;
    border: 1.5px solid #f3f4f6;
    padding: 24px;
}

/* Browser tab preview */
.fg-sim-browser {
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    width: 360px;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fg-sim-browser-bar {
    background: #d1d5db;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fg-sim-browser-dots {
    display: flex;
    gap: 5px;
}

.fg-sim-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9ca3af;
}

.fg-sim-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border-radius: 6px 6px 0 0;
    padding: 5px 12px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    max-width: 160px;
}

.fg-sim-tab-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    background: #e5e7eb;
    flex-shrink: 0;
}

.fg-sim-browser-content {
    background: #fff;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* iOS preview */
.fg-sim-ios {
    text-align: center;
}

.fg-sim-ios-icon {
    width: 76px;
    height: 76px;
    border-radius: 17px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto 8px;
    background: #e5e7eb;
}

.fg-sim-ios-label {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

/* Android / PWA preview */
.fg-sim-android-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto 8px;
    background: #e5e7eb;
}

.fg-sim-pwa {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    width: 200px;
}

.fg-sim-pwa-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 0 auto 12px;
    background: #374151;
}

.fg-sim-pwa-name {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

/* ── Output List ── */
.fg-output-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}

.fg-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1.5px solid #f3f4f6;
}

.fg-output-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.fg-btn-zip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    transition: opacity 0.15s, transform 0.1s;
}

.fg-btn-zip:hover {
    opacity: 0.88;
}

.fg-btn-zip:active {
    transform: scale(0.97);
}

.fg-btn-zip:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.fg-output-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid #f9fafb;
    transition: background 0.1s;
}

.fg-output-row:last-child {
    border-bottom: none;
}

.fg-output-row:hover {
    background: #fffbeb;
}

.fg-output-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fg-output-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.fg-output-status.ready {
    background: #d1fae5;
    border-color: #34d399;
    color: #065f46;
}

.fg-output-name {
    font-weight: 700;
    font-size: 13.5px;
    color: #1f2937;
    font-family: 'Consolas', 'Monaco', monospace;
}

.fg-output-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.fg-output-badge {
    font-size: 11px;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.fg-btn-dl-single {
    background: transparent;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}

.fg-btn-dl-single:hover {
    border-color: #f59e0b;
    color: #d97706;
    background: #fffbeb;
}

.fg-btn-dl-single:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── HTML Code Output ── */
.fg-code-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}

.fg-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1.5px solid #f3f4f6;
}

.fg-code-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.fg-code-block {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
}

.fg-code-actions {
    padding: 14px 22px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 10px;
}

.fg-btn-copy {
    background: #6366f1;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.fg-btn-copy:hover {
    background: #4f46e5;
}

.fg-btn-copy.copied {
    background: #10b981;
}