/* ================================================================
   AIクローラー拒否 robots.txt 生成ツール
   Prefix: arb- (AI Robots Block)
   ================================================================ */

/* ----------------------------------------------------------------
   Container
   ---------------------------------------------------------------- */
.arb-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ----------------------------------------------------------------
   Quick Presets
   ---------------------------------------------------------------- */
.arb-preset-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.arb-preset-section h3 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #333;
    font-weight: 700;
}

.arb-preset-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.arb-preset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    font-family: inherit;
}

.arb-preset-btn.primary {
    background: #1a237e;
    color: #fff;
    border-color: #1a237e;
}

.arb-preset-btn.primary:hover {
    background: #283593;
    border-color: #283593;
}

.arb-preset-btn.secondary {
    background: #ff6f00;
    color: #fff;
    border-color: #ff6f00;
}

.arb-preset-btn.secondary:hover {
    background: #e65100;
    border-color: #e65100;
}

.arb-preset-btn.outline {
    background: #fff;
    color: #555;
    border-color: #ccc;
}

.arb-preset-btn.outline:hover {
    background: #f5f5f5;
}

/* ----------------------------------------------------------------
   Settings Panel
   ---------------------------------------------------------------- */
.arb-settings-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 24px;
    margin-bottom: 20px;
}

.arb-settings-panel h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #1a237e;
    font-weight: 700;
    border-bottom: 2px solid #1a237e;
    padding-bottom: 10px;
}

.arb-settings-panel>p {
    margin: 0 0 20px;
    font-size: 13px;
    color: #666;
}

/* ----------------------------------------------------------------
   Category Accordion
   ---------------------------------------------------------------- */
.arb-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.arb-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9ff;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}

.arb-cat-header:hover {
    background: #eef0fb;
}

.arb-cat-header.open {
    background: #e8eaf6;
    border-bottom: 1px solid #c5cae9;
}

.arb-cat-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.arb-cat-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a237e;
    flex: 1;
}

.arb-cat-desc {
    font-size: 12px;
    color: #666;
    margin-left: auto;
    margin-right: 8px;
}

.arb-cat-count {
    font-size: 11px;
    background: #1a237e;
    color: #fff;
    border-radius: 10px;
    padding: 2px 8px;
    white-space: nowrap;
}

.arb-cat-count.all-checked {
    background: #e53935;
}

.arb-cat-chevron {
    font-size: 12px;
    color: #888;
    transition: transform .25s;
    flex-shrink: 0;
}

.arb-cat-header.open .arb-cat-chevron {
    transform: rotate(180deg);
}

.arb-cat-body {
    display: none;
    padding: 10px 16px 14px;
    background: #fff;
}

.arb-cat-body.open {
    display: block;
}

.arb-cat-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.arb-cat-toggle-btn {
    font-size: 11px;
    padding: 3px 10px;
    border: 1px solid #c5cae9;
    border-radius: 4px;
    background: #f0f2ff;
    color: #3949ab;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all .15s;
}

.arb-cat-toggle-btn:hover {
    background: #c5cae9;
}

/* ----------------------------------------------------------------
   Bot Checkbox Items
   ---------------------------------------------------------------- */
.arb-bot-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arb-bot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e8eaf6;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.arb-bot-item:hover {
    background: #f8f9ff;
    border-color: #c5cae9;
}

.arb-bot-item.checked {
    background: #fce4e4;
    border-color: #ef9a9a;
}

.arb-bot-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e53935;
    cursor: pointer;
    flex-shrink: 0;
}

.arb-bot-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    font-family: 'Consolas', 'Monaco', monospace;
    flex-shrink: 0;
}

.arb-bot-desc {
    font-size: 12px;
    color: #666;
    flex: 1;
}

.arb-bot-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.arb-bot-badge.training {
    background: #fce4e4;
    color: #c62828;
}

.arb-bot-badge.search {
    background: #e3f2fd;
    color: #1565c0;
}

.arb-bot-badge.fetcher {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* ----------------------------------------------------------------
   Sitemap Section
   ---------------------------------------------------------------- */
.arb-sitemap-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.arb-sitemap-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #333;
    font-weight: 700;
}

.arb-sitemap-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .2s;
}

.arb-sitemap-input:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, .1);
}

.arb-sitemap-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #888;
}

/* ----------------------------------------------------------------
   Warning / Info Banners
   ---------------------------------------------------------------- */
.arb-warning-box {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.arb-warning-box.visible {
    display: flex;
}

.arb-warning-box.danger {
    background: #fce4e4;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
}

.arb-warning-box.safe {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

/* ----------------------------------------------------------------
   Output / Code Area
   ---------------------------------------------------------------- */
.arb-output-section {
    margin-bottom: 20px;
}

.arb-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a237e;
    padding: 12px 16px;
    border-radius: 10px 10px 0 0;
}

.arb-code-header h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.arb-code-btns {
    display: flex;
    gap: 8px;
}

.arb-copy-btn,
.arb-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}

.arb-copy-btn {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.arb-copy-btn:hover {
    background: rgba(255, 255, 255, .35);
}

.arb-copy-btn.copied {
    background: #43a047;
}

.arb-dl-btn {
    background: #e53935;
    color: #fff;
}

.arb-dl-btn:hover {
    background: #c62828;
}

.arb-code-output {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 240px;
    overflow-x: auto;
}

.arb-code-output .comment {
    color: #6a9955;
}

/* ----------------------------------------------------------------
   Install Info Box
   ---------------------------------------------------------------- */
.arb-install-box {
    margin-top: 14px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #c5cae9;
    background: #e8eaf6;
}

.arb-install-box p {
    margin: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.7;
}

.arb-install-box p:first-child {
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 6px;
}

/* ----------------------------------------------------------------
   Counter badge in header
   ---------------------------------------------------------------- */
.arb-block-count-badge {
    display: inline-block;
    background: #e53935;
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
    .arb-preset-btns {
        flex-direction: column;
    }

    .arb-preset-btn {
        width: 100%;
        justify-content: center;
    }

    .arb-bot-item {
        flex-wrap: wrap;
    }

    .arb-bot-desc {
        width: 100%;
        flex: none;
    }

    .arb-code-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .arb-code-btns {
        width: 100%;
    }

    .arb-copy-btn,
    .arb-dl-btn {
        flex: 1;
        justify-content: center;
    }
}