/* BeastToolsHub JSON Formatter — Orange #FF6B35 / Navy #1A1A2E */

.bjf-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

.bjf-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
    border: 1px solid #f0f0f0;
}

/* ── Toolbar ── */
.bjf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.bjf-tabs {
    display: flex;
    gap: 8px;
}

.bjf-tab {
    padding: 8px 18px;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    background: #ffffff;
    color: #1A1A2E;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bjf-tab:hover {
    border-color: #FF6B35;
    color: #FF6B35;
}

.bjf-tab-active {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #ffffff;
}

.bjf-indent-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555555;
}

.bjf-indent-control select {
    padding: 6px 10px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1A1A2E;
    cursor: pointer;
}

.bjf-indent-control select:focus {
    outline: none;
    border-color: #FF6B35;
}

/* ── Panels ── */
.bjf-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bjf-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bjf-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bjf-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #FF6B35;
    font-weight: 600;
    padding: 0;
    font-family: inherit;
}

.bjf-icon-btn:hover {
    text-decoration: underline;
}

.bjf-textarea {
    width: 100%;
    min-height: 280px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.6;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    resize: vertical;
    font-family: "Courier New", Courier, monospace;
    color: #1A1A2E;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    background: #fafafa;
}

.bjf-textarea:focus {
    outline: none;
    border-color: #FF6B35;
    background: #ffffff;
}

.bjf-textarea::placeholder {
    color: #aaaaaa;
}

.bjf-output {
    width: 100%;
    min-height: 280px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.6;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-family: "Courier New", Courier, monospace;
    color: #1A1A2E;
    box-sizing: border-box;
    background: #fafafa;
    overflow: auto;
    white-space: pre;
    margin: 0;
}

.bjf-output.bjf-error {
    border-color: #ef5350;
    background: #fff5f5;
    color: #b71c1c;
}

.bjf-output.bjf-success {
    border-color: #66bb6a;
    background: #f9fff9;
}

/* ── Status bar ── */
.bjf-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.bjf-status {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
}

.bjf-status.bjf-status-error {
    color: #b71c1c;
}

.bjf-status.bjf-status-success {
    color: #1B5E20;
}

.bjf-btn {
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bjf-btn-primary {
    background: #FF6B35;
    color: #ffffff;
}

.bjf-btn-primary:hover {
    background: #e85a28;
}

.bjf-copy-feedback {
    text-align: center;
    color: #1B5E20;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 0;
    height: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bjf-copy-feedback.bjf-show {
    opacity: 1;
}

/* ── Syntax highlighting ── */
.bjf-key    { color: #0D47A1; }
.bjf-string { color: #1B5E20; }
.bjf-number { color: #E65100; }
.bjf-bool   { color: #6A1B9A; }
.bjf-null   { color: #B71C1C; }

/* ── Mobile ── */
@media (max-width: 680px) {
    .bjf-panels {
        grid-template-columns: 1fr;
    }
    .bjf-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .bjf-card {
        padding: 16px;
        border-radius: 12px;
    }
    .bjf-btn {
        width: 100%;
        text-align: center;
    }
}
