/* Dev Tools — extends OmniTools style.css */

/* Hide all ad slots — using Google Auto Ads */
.ad-slot,
.ad-leaderboard,
.ad-in-article,
.ad-anchor,
.ad-placeholder {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Tool section: always centered ── */
.section > .container > .columns {
    justify-content: center;
}

/* Constrain the two-panel layout to a readable max width */
.section > .container > .columns > .column.is-6 {
    max-width: 600px;
}

.dev-tool-header { margin-bottom: 1.5rem; }
.dev-tool-header h1 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; }
.dev-tool-header p  { color: #64748b; margin-top: 0.25rem; }

.dev-privacy {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a;
    font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.7rem;
    border-radius: 999px; margin-bottom: 1rem;
}

.dev-panel {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 14px; padding: 1.5rem; margin-bottom: 1rem;
}

.dev-label {
    display: block; font-size: 0.8rem; font-weight: 700;
    color: #64748b; text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.dev-textarea {
    width: 100%; min-height: 180px; padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.875rem; line-height: 1.6; resize: vertical;
    background: #f8fafc; color: #1e293b;
    transition: border-color 0.2s;
}

.dev-textarea:focus { border-color: #7c3aed; outline: none; background: #fff; }

.dev-output {
    width: 100%; min-height: 180px; padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.875rem; line-height: 1.6; resize: vertical;
    background: #0f172a; color: #e2e8f0;
}

.dev-output-pre {
    min-height: 180px; padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.875rem; line-height: 1.6; overflow: auto;
    background: #0f172a; color: #e2e8f0; white-space: pre-wrap;
    word-break: break-all;
}

.dev-btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }

.dev-btn {
    padding: 0.45rem 1rem; border-radius: 8px; font-size: 0.875rem;
    font-weight: 600; cursor: pointer; border: none; transition: opacity 0.15s, transform 0.15s;
}
.dev-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.dev-btn.primary { background: linear-gradient(135deg,#2b5ce6,#7c3aed); color: #fff; }
.dev-btn.secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.dev-btn.success { background: #16a34a; color: #fff; }
.dev-btn.active { background: #7c3aed; color: #fff; }

.dev-status { font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem; padding: 0.3rem 0.6rem; border-radius: 6px; display: inline-block; }
.dev-status.ok    { background: #f0fdf4; color: #16a34a; }
.dev-status.error { background: #fef2f2; color: #dc2626; }

.dev-stats { font-size: 0.8rem; color: #64748b; margin-top: 0.5rem; }

.dev-section-title {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #94a3b8; margin: 1rem 0 0.4rem;
}

/* JWT sections */
.jwt-part { margin-bottom: 1rem; }
.jwt-part .dev-section-title { color: #7c3aed; }

/* SQL highlighting */
.sql-kw  { color: #60a5fa; font-weight: 700; }
.sql-str { color: #34d399; }
.sql-num { color: #f59e0b; }

/* Cron fields */
.cron-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.cron-field label { display: block; font-size: 0.75rem; font-weight: 600; color: #64748b; margin-bottom: 0.25rem; }
.cron-field input { width: 100%; padding: 0.45rem 0.6rem; border: 1.5px solid #e2e8f0; border-radius: 8px; font-family: monospace; font-size: 0.9rem; }

/* UUID */
.uuid-options { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.uuid-options label { font-size: 0.875rem; font-weight: 600; color: #475569; display: flex; align-items: center; gap: 0.4rem; }
.uuid-options input[type="number"] { width: 70px; padding: 0.35rem 0.5rem; border: 1.5px solid #e2e8f0; border-radius: 8px; }

/* Image preview */
#b64Preview { max-width: 100%; max-height: 200px; border-radius: 8px; margin-top: 0.75rem; display: none; border: 1px solid #e2e8f0; }

/* Dark mode */
html[data-theme="dark"] .dev-panel { background: #1e293b !important; border-color: #334155 !important; }
html[data-theme="dark"] .dev-textarea { background: #0f172a !important; border-color: #334155 !important; color: #e2e8f0 !important; }
html[data-theme="dark"] .dev-textarea:focus { border-color: #7c3aed !important; background: #1e293b !important; }
html[data-theme="dark"] .dev-label { color: #94a3b8 !important; }
html[data-theme="dark"] .dev-btn.secondary { background: #334155 !important; color: #cbd5e1 !important; border-color: #475569 !important; }
html[data-theme="dark"] .cron-field input { background: #0f172a !important; border-color: #334155 !important; color: #e2e8f0 !important; }
html[data-theme="dark"] .uuid-options input { background: #0f172a !important; border-color: #334155 !important; color: #e2e8f0 !important; }
html[data-theme="dark"] .dev-tool-header p { color: #94a3b8 !important; }

@media (max-width: 768px) {
    .dev-btn-row { flex-direction: column; }
    .dev-btn { width: 100%; text-align: center; }
}
