/* SEO Dashboard - Bright Cyan Theme */
.seo-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    color: #f1f5f9;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    /* Prevent any child content from breaking card bounds */
    overflow: hidden;
}

/* Light Cyan Titles */
.seo-title {
    color: #22d3ee !important;
    font-size: 24px !important;
    margin-top: 0 !important;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 10px;
    font-weight: bold;
}

.seo-box {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.seo-box input {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #fff !important;
    padding: 12px;
    border-radius: 8px;
    flex: 2;
    min-width: 250px;
}

.seo-box button {
    background: #10b981 !important;
    color: #000 !important;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.seo-box button:hover {
    background: #34d399 !important;
    transform: translateY(-2px);
}

.seo-res {
    margin-top: 20px;
    background: #020617;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #22d3ee;
    line-height: 1.8;
    color: #cbd5e1;
    /* Prevent content overflow */
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.seo-res strong {
    color: #22d3ee;
}

/* ── FIX: Robots.txt <pre> block stays inside the card ── */
.seo-res pre {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 12px 15px;
    color: #94a3b8;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;

    /* Core overflow fix */
    white-space: pre-wrap;       /* wrap long lines instead of scrolling off-screen */
    word-break: break-word;
    overflow-wrap: break-word;

    /* Constrain width to parent */
    max-width: 100%;
    box-sizing: border-box;

    /* Scrollbar only if content is genuinely very tall */
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;

    margin: 10px 0 0 0;
}

/* Scrollbar styling for the pre block */
.seo-res pre::-webkit-scrollbar {
    width: 6px;
}
.seo-res pre::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 3px;
}
.seo-res pre::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
.seo-res pre::-webkit-scrollbar-thumb:hover {
    background: #22d3ee;
}