/* =============================================
   LightningMine Tools — shared styles
   Used by: lm-health-check, lm-email-tools, lm-domain-tools
   Extends lightningmine-diagnostics.css conventions
   ============================================= */

/* ── About box ── */
.lm-tool-about {
    margin-top: 20px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}
.lm-tool-about strong { color: #1a1a2e; }

/* ── Section cards (mirror .lm-diag-redirects style) ── */
.lm-tool-section {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    animation: lm-tool-fadeup 0.22s ease both;
}
@keyframes lm-tool-fadeup {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lm-tool-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f8fc;
    padding: 11px 16px;
    border-bottom: 1px solid #ddd;
}
.lm-tool-section-header h3 {
    margin: 0;
    font-size: 15px;
    color: #1a1a2e;
    border-bottom: none;
    padding-bottom: 0;
}
.lm-tool-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 0.6px;
}
.lm-tool-badge-green  { background: #d4f8e8; color: #1b7a40; }
.lm-tool-badge-red    { background: #fde8e8; color: #b52020; }
.lm-tool-badge-yellow { background: #fff8d6; color: #7a5c00; }
.lm-tool-badge-blue   { background: #dbeeff; color: #0073aa; }
.lm-tool-badge-grey   { background: #f0f4f8; color: #5a6a7e; }

.lm-tool-section-body {
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #1a1a2e;
}
.lm-tool-section-body p  { margin: 0 0 8px; }
.lm-tool-section-body p:last-child { margin-bottom: 0; }
.lm-tool-section-body h4 {
    margin: 14px 0 6px;
    font-size: 13px;
    color: #0073aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lm-tool-section-body ul { margin: 0 0 8px; padding-left: 20px; }
.lm-tool-section-body li { margin-bottom: 4px; }

/* ── Key-value rows ── */
.lm-kv-row {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 13px;
    flex-wrap: wrap;
}
.lm-kv-row:last-child { border-bottom: none; }
.lm-kv-key {
    min-width: 160px;
    font-weight: 600;
    color: #5a6a7e;
    flex-shrink: 0;
}
.lm-kv-val {
    flex: 1;
    font-family: "Courier New", Courier, monospace;
    word-break: break-all;
    color: #1a1a2e;
}

/* ── Security header table ── */
.lm-security-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}
.lm-security-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8a9bb0;
    background: #e8f4ff;
    border-bottom: 1px solid #ddd;
}
.lm-security-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f4f8;
    vertical-align: top;
    font-family: "Courier New", Courier, monospace;
    word-break: break-all;
}
.lm-security-table tr:last-child td { border-bottom: none; }
.lm-security-table tr:hover td      { background: #f8fbff; }
.lm-present   { color: #1b7a40; font-weight: 600; }
.lm-missing   { color: #b52020; font-weight: 600; }

/* ── Status bar ── */
.lm-tool-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a6a7e;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #f5f8fc;
    border-radius: 6px;
    border: 1px solid #d0d7e3;
}
.lm-tool-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #28a745;
    flex-shrink: 0;
}
.lm-tool-domain { font-family: "Courier New", Courier, monospace; font-weight: 600; color: #0073aa; }

/* ── Loader ── */
.lm-tool-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 0;
    font-size: 14px;
    color: #5a6a7e;
}
.lm-tool-spinner {
    width: 20px; height: 20px;
    border: 2px solid #d0d7e3;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: lm-tool-spin 0.65s linear infinite;
    flex-shrink: 0;
}
@keyframes lm-tool-spin { to { transform: rotate(360deg); } }

/* ── Error box ── */
.lm-tool-error {
    background: #fff3f3;
    border: 1px solid #f5c0c0;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    color: #c0392b;
    font-family: "Courier New", Courier, monospace;
    margin-bottom: 14px;
}

/* ── Note/highlight box ── */
.lm-tool-note {
    background: #f0f7ff;
    border-left: 3px solid #0073aa;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #1a1a2e;
    margin: 10px 0 4px;
}
.lm-tool-note.warn  { background: #fffbea; border-color: #f59e0b; }
.lm-tool-note.good  { background: #f0fdf4; border-color: #28a745; }
.lm-tool-note.bad   { background: #fff3f3; border-color: #dc3545; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .lm-kv-key { min-width: 120px; }
}
