/* ═══════════════════════════════════════════════════════════════════════════
   tool-results.css — sslrenewals.com
   COMPLETE CSS for ALL SSL Tools
   Location: /ssl-tools/css/tool-results.css
   
   Covers:
   - SSL Checker
   - CSR Decoder
   - Certificate Decoder
   - Certificate Key Matcher
   - Why No Padlock
   - CAA Record Generator
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ 0. FIELD ERRORS (hidden by default) ═══ */
.field-err {
    display: none;
    color: #a94442;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

/* ═══ 1. RESULT WRAPPER ═══ */
.result-wrap,
.ssl-result-wrap {
    margin-top: 20px;
    font-size: 14px;
    font-family: "Open Sans", Arial, sans-serif;
}

/* ═══ 2. SUCCESS / ERROR / WARNING BANNERS ═══ */
.result-success {
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    padding: 12px 16px;
    color: #3c763d;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.result-error,
.ssl-error {
    background: #f2dede;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    padding: 12px 16px;
    color: #a94442;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.result-warning {
    background: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 4px;
    padding: 12px 16px;
    color: #8a6d3b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ═══ 3. RESULT SECTION (colored header + white body) ═══ */
.result-section,
.ssl-cert-box {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Section Headers */
.result-section-head,
.ssl-cert-header {
    margin: 0;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    background: #337ab7;
}

.result-section-head.orange,
.cert-orange {
    background: #e8943a;
}

.result-section-head.teal,
.cert-teal {
    background: #3aada8;
}

.result-section-head.green {
    background: #5cb85c;
}

.result-section-head.red {
    background: #d9534f;
}

.cert-blue {
    background: #337ab7;
}

/* Section Body */
.result-section-body,
.ssl-cert-body {
    padding: 15px 20px;
    background: #fff;
}

/* ═══ 4. RESULT TABLE (Label | Value) ═══ */
.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.result-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    line-height: 1.5;
    color: #333;
}

.result-table tr:last-child td {
    border-bottom: none;
}

.result-table td:first-child {
    font-weight: 700;
    color: #333;
    width: 200px;
    white-space: nowrap;
}

.result-table td:last-child {
    color: #337ab7;
    font-weight: 400;
    word-break: break-all;
}

/* ═══ 5. CERT FIELD LIST (SSL Checker) ═══ */
.cert-field-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-field-list li {
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.cert-field-list li:last-child {
    border-bottom: none;
}

.cert-label {
    font-weight: 700;
    color: #333;
    display: inline-block;
    min-width: 170px;
}

.cert-value {
    color: #337ab7;
    font-weight: 400;
}

/* ═══ 6. GRAY INFO BOX (SSL Checker / Why No Padlock top) ═══ */
.ssl-info-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.ssl-info-box p {
    margin: 4px 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
}

.info-label {
    font-weight: 700;
    color: #333;
    display: inline-block;
    min-width: 200px;
}

.info-value {
    color: #337ab7;
    font-weight: 400;
}

.info-pass {
    color: #337ab7;
    font-weight: 400;
}

.info-fail {
    color: #d9534f;
    font-weight: 600;
}

/* ═══ 7. DAYS BADGE ═══ */
.days-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.days-badge.green {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.days-badge.orange {
    background: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
}

.days-badge.red {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* ═══ 8. CHAIN ARROW (SSL Checker ▼) ═══ */
.ssl-chain-arrow {
    text-align: center;
    font-size: 20px;
    color: #3aaa35;
    line-height: 1;
    padding: 8px 0;
}

.ssl-chain-arrow.broken {
    color: #d9534f;
}

/* ═══ 9. CHECK LIST (Why No Padlock / Additional Checks) ═══ */
.ssl-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ssl-check-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
}

.ssl-check-list li:last-child {
    border-bottom: none;
}

.check-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}

.check-circle.pass { background: #5cb85c; }
.check-circle.fail { background: #d9534f; }

.check-label {
    font-weight: 700;
    color: #333;
    margin-right: 6px;
    white-space: nowrap;
}

.check-value {
    color: #555;
    font-weight: 400;
}

/* ═══ 10. BADGES (Pass/Fail/Warn) ═══ */
.badge-pass {
    display: inline-block;
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.badge-fail {
    display: inline-block;
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.badge-warn {
    display: inline-block;
    background: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

/* ═══ 11. MONOSPACE TEXT ═══ */
.mono {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    word-break: break-all;
    color: #555;
}

/* ═══ 12. RADIO GROUP (Key Matcher) ═══ */
.radio-group {
    margin-bottom: 15px;
}

.radio-group label {
    display: inline-block;
    margin-right: 20px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
    vertical-align: middle;
}

.radio-inline {
    display: inline-block;
    margin-right: 20px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    padding: 5px 0;
}

.radio-inline input[type="radio"] {
    margin-right: 5px;
    vertical-align: middle;
}

/* ═══ 13. CERT KEY MATCHER — Match Details ═══ */
.cert-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 20px 0 10px 0;
    padding: 0;
}

.match-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.match-detail-list li {
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.match-detail-list li:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 700;
    color: #333;
    margin-right: 8px;
    white-space: nowrap;
}

.detail-value {
    color: #337ab7;
    font-weight: 400;
    word-break: break-all;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
}

/* ═══ 14. WHY NO PADLOCK ═══ */
.padlock-result-wrap {
    margin-top: 20px;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
}

.padlock-error-banner {
    background: #f2dede;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    padding: 12px 16px;
    color: #a94442;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.padlock-info-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.padlock-info-box table {
    width: 100%;
    border-collapse: collapse;
}

.padlock-info-box td {
    padding: 5px 10px 5px 0;
    font-size: 14px;
    line-height: 1.8;
    vertical-align: top;
    border: none;
}

.padlock-info-box td:first-child {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    width: 130px;
}

.padlock-info-box td:last-child {
    color: #337ab7;
    font-weight: 400;
}

.padlock-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.padlock-check-list li {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.6;
}

.padlock-check-list li:last-child {
    border-bottom: none;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #5cb85c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.fail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #d9534f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.check-text {
    display: inline;
    color: #333;
}

.check-text strong {
    color: #333;
    margin-right: 4px;
}

.check-text span {
    color: #337ab7;
    font-weight: 400;
}

.check-text .val-red {
    color: #d9534f;
    font-weight: 600;
}

/* Insecure Links Table */
.padlock-insecure-wrap {
    margin-top: 20px;
    border: 1px solid #faebcc;
    border-radius: 4px;
    overflow: hidden;
}

.insecure-header {
    background: #fcf8e3;
    border-bottom: 1px solid #faebcc;
    padding: 12px 16px;
    color: #8a6d3b;
    font-size: 14px;
}

.padlock-insecure-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.padlock-insecure-table th {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: #333;
}

.padlock-insecure-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    word-break: break-all;
}

.padlock-insecure-table td:first-child {
    width: 40px;
    text-align: center;
    font-weight: 600;
}

.padlock-insecure-table tr:last-child td {
    border-bottom: none;
}

/* ═══ 15. CAA RECORD GENERATOR ═══ */
.caa-result-wrap {
    margin-top: 20px;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
}

.record-mono {
    font-family: "Courier New", Courier, monospace !important;
    font-size: 13px;
    color: #333 !important;
    word-break: break-all;
}

.caa-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.caa-section-header {
    background: #337ab7;
    color: #fff;
    padding: 12px 20px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.caa-section-body {
    padding: 15px 20px;
    background: #fff;
}

.caa-record-box {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    padding: 15px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    line-height: 2;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0 0 12px 0;
    overflow-x: auto;
}

.caa-copy-btn {
    display: inline-block;
    background: #337ab7;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.caa-copy-btn:hover {
    background: #286090;
}

.caa-copy-btn.copied {
    background: #5cb85c;
}

.caa-section .domainchecktbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.caa-section .domainchecktbl tr:first-child td,
.caa-section .domainchecktbl th {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: #333;
}

.caa-section .domainchecktbl td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
}

.caa-section .domainchecktbl tr:last-child td {
    border-bottom: none;
}

.caa-note {
    background: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 4px;
    padding: 12px 16px;
    color: #8a6d3b;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 20px;
}

/* Form CA Table */
.domainchecktbl {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.domainchecktbl tr:first-child td {
    background: #f5f5f5;
    font-weight: 700;
    border-bottom: 2px solid #ddd;
}

.domainchecktbl td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.domainchecktbl .note {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.domainchecktbl input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ═══ 16. LOADER ═══ */
.loader {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.loader img {
    max-width: 40px;
    height: auto;
}

/* ═══ 17. WARN BOX (Cert Decoder expiry warning) ═══ */
.warn-box {
    background: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 3px;
    padding: 6px 12px;
    color: #8a6d3b;
    font-size: 13px;
    display: inline-block;
}

/* ═══ 18. RESPONSIVE ═══ */
@media (max-width: 767px) {
    .ssl-info-box,
    .padlock-info-box { padding: 12px 14px; }
    
    .info-label { min-width: 140px; font-size: 13px; }
    .cert-label { min-width: 130px; font-size: 13px; }
    
    .result-section-body,
    .ssl-cert-body { padding: 12px 14px; }

    .result-section-head,
    .ssl-cert-header {
        font-size: 14px;
        padding: 10px 14px;
    }

    .check-circle,
    .check-icon,
    .fail-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: 11px;
        margin-right: 10px;
    }

    .cert-field-list li { font-size: 13px; }
    .ssl-check-list li { font-size: 13px; }
    .padlock-check-list li { padding: 10px 0; font-size: 13px; }

    .result-table td { padding: 7px 8px; font-size: 13px; }
    .result-table td:first-child { width: 140px; }

    .padlock-info-box td:first-child { width: 110px; font-size: 13px; }
    .padlock-info-box td:last-child { font-size: 13px; }

    .padlock-insecure-table { font-size: 12px; }

    .radio-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .match-detail-list li {
        flex-direction: column;
    }

    .detail-label {
        white-space: normal;
        margin-bottom: 4px;
    }

    .detail-value {
        font-size: 11px;
    }

    .caa-section-header {
        font-size: 14px;
        padding: 10px 14px;
    }
    .caa-section-body { padding: 12px 14px; }
    .caa-record-box { font-size: 11px; padding: 10px; }
    .caa-note { font-size: 12px; }
}

@media (max-width: 480px) {
    .info-label { min-width: 120px; }
    .cert-label { min-width: 110px; }
    .result-table td:first-child { width: 110px; }

    .ssl-check-list li {
        flex-wrap: wrap;
    }
    .check-label {
        white-space: normal;
    }

    .domainchecktbl td { padding: 8px 8px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Certificate Key Matcher — Form + Result Styles
   ADD THESE to /ssl-tools/css/tool-results.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Textarea (full width, proper height) ─── */
.matcher-textarea {
    width: 100%;
    height: 160px;
    min-height: 120px;
    padding: 10px 12px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
    display: block;
    background: #fff;
}

.matcher-textarea:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.matcher-textarea::placeholder {
    color: #aaa;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px;
}

/* ─── Match Radio Group ─── */
.match-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px 0;
}

.match-radio-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    margin: 0;
    padding: 4px 0;
}

.match-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #3aada8;
    flex-shrink: 0;
}

/* ─── Cert Section Title (Result) ─── */
.cert-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 20px 0 10px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid #eee;
}

/* ─── Match Detail List (Result) ─── */
.match-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.match-detail-list li {
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.match-detail-list li:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    min-width: 240px;
}

.detail-value {
    color: #337ab7;
    font-weight: 400;
    word-break: break-all;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    flex: 1;
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .matcher-textarea {
        height: 120px;
        font-size: 11px;
    }

    .match-radio-group {
        gap: 6px;
    }

    .match-radio-label {
        font-size: 13px;
    }

    .match-detail-list li {
        flex-direction: column;
        gap: 3px;
    }

    .detail-label {
        min-width: unset;
        white-space: normal;
    }

    .detail-value {
        font-size: 11px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Symantec Re-issue Checker — Additional Styles
   ADD to /ssl-tools/css/tool-results.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Re-issue Note Box ─── */
.reissue-note {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 4px solid #f0ad4e;
    border-radius: 3px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.reissue-note strong {
    color: #333;
}

.reissue-note a {
    color: #337ab7;
    text-decoration: underline;
}

/* ─── Re-issue Details Section ─── */
.reissue-details {
    margin-top: 20px;
}

.reissue-details h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

/* ─── How-to Section ─── */
.reissue-howto {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.reissue-howto h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.reissue-howto p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}

.reissue-howto strong {
    color: #333;
}

.reissue-howto a {
    color: #337ab7;
    text-decoration: underline;
}

/* ─── Re-issue Links List ─── */
.reissue-links {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.reissue-links li {
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
    font-size: 14px;
}

.reissue-links li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #5cb85c;
    font-weight: 700;
    font-size: 16px;
}

.reissue-links li a {
    color: #337ab7;
    text-decoration: none;
}

.reissue-links li a:hover {
    text-decoration: underline;
}
