/**
 * Mail Auth Analyzer - Laravel App Styles
 * De-minified from public/css/user/mail-auth-analyzer.css
 */
/* Input Row (Vertical Layout - Primary Design) */
.mailauth-input-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.mail-auth-analyzer .container .template-page {
    padding-top: 20px;
    padding-bottom: 20px;
}

#check-email-btn {
    margin: 0 auto;
}

.mailauth-input-col {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
}

.mailauth-or-col {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0;
}

.mailauth-upload-col {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
}

.mailauth-description {
    font-family: 'Muli';
    margin-top: 10px;
    padding-top: 5px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #646C9A;
    margin-bottom: 20px;
}

.mailauth-or-text {
    font-family: 'Muli';
    margin-top: 10px;
    padding-top: 5px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #646C9A;
    margin-bottom: 20px;
}

.mail-auth-analyzer section.avia_codeblock_section .mailauth-input-section {
    max-width: 920px;
    margin: 0 auto;
}

.mail-auth-analyzer .btn-upload-header {
    max-width: 350px;
    min-height: 50px;
}

.mail-auth-analyzer .mailauth-upload-col {
    text-align: center;
}

.mail-auth-analyzer .mailauth-title {
    text-align: center;
    font-weight: 700 !important;
}

.mailauth-description-black {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    line-height: 1.4;
}

/* Title & Text */
.mailAuth-title {
    color: #646c9a;
    font-size: 20px;
    font-weight: 500;
}

.mailAuth-text {
    color: #646c9a;
    font-size: 14px;
    font-weight: 400;
}

/* Container */
.mail-auth-analyzer .av-section-cont-open {
    max-width: 1530px !important;
    width: 100%;
}

.mailAuth-container {
    padding: 25px 0;
}

/* Input */
.mailAuth-input {
    border: 1px solid #ebedf2;
    background-color: #f7f8fa !important;
    color: #646c9a;
    font-size: 13px;
}

/* Compliance Result Badge */
.compliance-result-badge {
    width: 89px;
    height: 34px;
    background: rgba(10, 187, 135, 0.2);
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    color: #0abb87;
}

/* Compliance Results Text */
.compliance-results-text {
    color: #646c9a;
    font-size: 16px;
    font-weight: 500;
}

/* Compliance Text */
.compliance-text {
    color: #48465b;
    font-weight: 700;
    font-size: 20px;
    padding-right: 12px;
}

/* Compliance Results Container */
.compliance-results-container {
    border: 1px solid #ebedf2 !important;
    margin: 50px 5px 0 5px;
    padding: 20px 0;
}

/* Compliance Result */
.compliance-result {
    display: flex !important;
    flex-direction: column !important;
}

/* MailAuth Email */
.mailauth-email {
    padding: 8.45px 0;
    color: #48465b;
    font-weight: 700;
    font-size: 13px;
    padding: 0 10px;
}

.mail-auth-analyzer #email-header-accordion .card {
    border: none;
}

#email-header-heading .btn-link:active,
#email-header-heading .btn-link:focus,
#email-header-heading .btn-link:hover {
    background-color: transparent !important;
    color: inherit !important;
}

/* Failed & Partially Passed */
.failed,
.partially-passed {
    border-right: 1px solid #ebedf2 !important;
}

/* Date Received, From Address, Return Path */
.date-received,
.from-address,
.return-path {
    border: 1px solid #ebedf2 !important;
}

.date-received-item,
.from-address-item,
.return-path-item {
    padding: 5px;
    border: 1px solid #ebedf2 !important;
    text-align: center;
    height: 138px;
}

.date-received-value,
.from-address-value,
.return-path-value {
    white-space: nowrap;
    overflow-x: auto;
}

.date-received-title,
.from-address-title,
.return-path-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #48465b;
    padding-top: 10px;
}

/* Item */
.item {
    border: 1px solid #ebedf2 !important;
    padding: 20px;
    margin: 10px 0;
    height: 68px;
    display: flex;
    align-items: center;
}

.item-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #48465b;
    padding-right: 50px;
    width: 200px;
}

/* Published Policy Result */
.published-policy-result {
    border-right: 1px solid #ebedf2 !important;
    padding-right: 15px;
}

/* DNS Records */
.mailAuth-dkim-record,
.mailAuth-dns-record {
    border: 1px solid #ebedf2 !important;
    padding: 5px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Images */
.images {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

/* Email Header Table */
.mailAuth-email-header-table th {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #646c9a !important;
    width: 200px;
    background-color: #fff;
}

.mailAuth-email-header-table {
    border: 0;
}

.mailAuth-email-header-table tr:first-child td,
.mailAuth-email-header-table tr:first-child th {
    border-top: 0;
}

.mailAuth-email-header-table tr:last-child td,
.mailAuth-email-header-table tr:last-child th {
    border-bottom: 1px solid #ebedf2;
}

.mailAuth-email-header-table td {
    border: 1px solid #ebedf2 !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    color: #595d6e;
    background-color: #fff;
    word-break: break-word;
}

/* Human/Raw Wrapper */
.human-raw-wrapper {
    padding-top: 10px;
}

.mailAuth-email-header-table tbody#human-headers-tbody tr th:first-child,
tr td:first-child {
    border: 1px solid #ebedf2 !important;
}

#human-header-content table.mailAuth-email-header-table {
    border: 1px solid #ebedf2 !important;
}

/* Human & Raw Buttons */
.human,
.raw {
    background: transparent;
    border: none;
    padding-bottom: 20px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #48465b;
}

.human:hover,
.raw:hover {
    color: #5d78ff;
}

.human:focus,
.raw:focus {
    color: #5d78ff;
}

.add-selected {
    border-bottom: 2px solid #5d78ff;
    color: #5d78ff;
}

/* Email Header Raw */
.mailAuth-email-header-raw .btn-copy {
    margin-top: 1rem;
    margin-bottom: 1rem;
    height: auto;
    max-height: 36px;
}

/* Compliance Boxes */
.dmarc-compliance {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 180px;
    height: 104px;
    margin: auto;
    margin-bottom: -105px;
    padding: 10px;
}

.dkim-compliance,
.spf-compliance {
    width: 180px;
    height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

.spf-dkim-compliance-container {
    justify-content: space-around;
    margin-top: -245px;
}

/* Email Header Accordion */
/* #collpase-email-header {
    border-top: 1px solid #ebedf2;
} */

/* .email-header-accordion-title {
    margin: 10px 20px !important;
    padding-left: 0.75rem !important;
} */

.email-header-accordion-text {
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    color: #48465b;
}

.email-header-accoridon-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #48465b;
}

/* Published Policy Chart */
#published-policy {
    height: 48px !important;
    width: 48px !important;
    margin-left: 15px;
    background-repeat: no-repeat;
}

/* Image Container */
.image-container {
    display: flex;
    justify-content: space-around;
}

/* Email Header Card */
.email-header-card {
    border-radius: 4px !important;
    margin: 0 -10px !important;
}

/* Compliance Title & Descriptions */
.compliance-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 23px;
    color: #48465b;
}

.dkim-compliance-description,
.dmarc-compliance-description,
.spf-compliance-description {
    word-wrap: break-word;
    color: #646c9a;
}

/* Mail Header Text */
.mail-header-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #595d6e;
}

/* Badge Unified Red */
.kt-badge.kt-badge--unified-red {
    color: #e53935;
    background: rgba(253, 57, 122, 0.1);
}

/* Data Section */
.data-section {
    opacity: 0;
}

.tooltip {
    z-index: 9999 !important;
    opacity: 1 !important;
}

.tooltip.show {
    opacity: 1 !important;
}

.tooltip-inner {
    background-color: #48465B !important;
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    max-width: 300px;
}

/* Ensure info icons trigger hover */
.fa-info-circle {
    cursor: pointer !important;
}

/* Tooltip Icons */
#failed-tooltip,
#partially-passed-tooltip,
#passed-tooltip {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #48465b;
}

/* Table Header */
.table-header {
    white-space: nowrap;
}

/* Font Awesome Small */
.fa-sm {
    font-size: 12px !important;
}

/* Error Info Container */
.error-info-container {
    display: flex;
    align-items: center;
}

/* Input Container */
.input-container {
    position: relative;
}

#input-field {
    width: 100%;
    height: 350px;
    padding: 10px;
    overflow: auto;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    outline: 0;
}

/* Copy Button */
.mailAuth-email-header-raw .btn-copy {
    background-color: #4875F4;
}

.mailAuth-email-header-raw .btn-copy:hover,
.mailAuth-email-header-raw.btn-copy:focus {
    background-color: #025dcc !important;
    outline: none !important;
}

/* ============================================ */
/* Inline Upload Loader */
/* ============================================ */

.mailauth-upload-loader {
    background: #ffffff;
    border-radius: 4px;
    padding: 40px 25px;
    margin-bottom: 30px;
    box-shadow: 0 0 13px 0 rgba(82, 63, 105, 0.05);
    border: 2px solid #4875F4;
    animation: fadeInLoader 0.3s ease-in-out;
}

@keyframes fadeInLoader {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mailauth-upload-loader-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.mailauth-upload-loader-text {
    text-align: left;
}

.mailauth-upload-message {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.mailauth-upload-submessage {
    font-size: 14px;
    color: #646C9A;
    margin: 0;
    font-weight: 400;
}

.mailauth-upload-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 20px;
    background: #F2F3F8;
    border-radius: 4px;
}

.mailauth-upload-text {
    color: #646C9A;
    font-weight: 500;
}

/* Responsive - Tablet & Mobile */
@media (max-width: 1024px) {
    .kt-portlet__body {
        margin-bottom: 25px;
    }

    .upload-header-btn {
        margin-left: 10px;
    }
}

/* Description Header */
.mailAuth-description-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
}

/* Subject Scrolling */
.subject-scrolling {
    overflow-y: auto;
    max-height: 40px;
    overflow-wrap: anywhere;
}

/* Responsive loader */
@media (max-width: 768px) {
    .mailauth-upload-loader {
        padding: 30px 20px;
    }

    .mailauth-upload-loader-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .mailauth-upload-loader-text {
        text-align: center;
    }


    #results-container .kt-portlet .kt-portlet__body .row>.col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-top: 10px;
    }

    #results-container .col-xl-7 .col-7.kt-margin-b-20 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #results-container .col-xl-7 .col-5.kt-margin-b-20 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #results-container .col-xl-7 .row .col-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #results-container .col-xl-7 .row .col-5 .mailAuth-dns-record,
    #results-container .col-xl-7 .row .col-5 .mailAuth-dkim-record {
        flex-direction: row-reverse;
        justify-content: space-around;
        align-items: center;
    }

    #results-container .col-xl-7 .row .col-5 .col-12 div.kt-portlet {
        margin-bottom: 0px;
    }

    #results-container .col-xl-7 .row .col-5 .col-12 div.kt-portlet .kt-portlet__body {
        margin-bottom: 0px;
    }

    .charts-container #published-policy-chart {
        margin-left: 10px !important;
    }

    #results-container .col-xl-7 .item-title {
        padding-right: 0px;
    }

    .compliance-results-container .partially-passed,
    .compliance-results-container .failed,
    .compliance-results-container .passed {
        padding-right: 5px;
        padding-left: 5px;
    }

    .compliance-results-container span.compliance-results-text {
        font-size: 3vw;
    }

    .mailauth-check-email-btn {
        margin: 0 auto;
    }

    /* Hide table headers on mobile */
    .table-responsive table thead {
        display: none;
    }

    /* Make table cells display as blocks */
    .table-responsive table,
    .table-responsive table tbody,
    .table-responsive table tr,
    .table-responsive table td {
        display: block;
        width: 100%;
    }

    /* Style each row as a card */
    .table-responsive table tr {
        margin-bottom: 20px;
        border: 1px solid #EBEDF2;
        border-radius: 4px;
        padding: 15px;
        background: #fff;
    }

    /* Style each cell as a row with label and value */
    .table-responsive table td {
        display: grid;
        justify-content: space-between;
        grid-template-columns: 140px 1fr;
        gap: 10px;
        padding: 10px 0;
        border: none !important;
        border-bottom: 1px solid #F2F3F8 !important;
    }

    /* Remove border from last item */
    .table-responsive table td:last-child {
        border-bottom: none !important;
    }

    /* Add labels before each value using data attributes */
    .table-responsive table td::before {
        content: attr(data-label);
        font-weight: 200;
        color: #646C9A;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Style the values */
    .table-responsive table td {
        font-size: 12px;
        color: #2c3e50;
    }
}