/* =========================================================================
   CONEX MAILER DASHBOARD v2.4.2
   Built directly on the original dashboard design
   ========================================================================= */

.dashboard-wrapper,
.dashboard-wrapper *{
    font-family:'Segoe UI',system-ui,sans-serif;
}

.dashboard-wrapper{
    padding:24px;
    background:#f8fafc;
    min-height:100vh;
    color:#0f172a;
}

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:28px;
}

.dashboard-title{
    font-size:32px;
    font-weight:800;
    color:#1e293b;
    margin:0 0 4px 0;
}

.dashboard-subtitle{
    color:#64748b;
    font-size:14px;
    margin:0;
}

/* ORIGINAL FIRST ROW */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:18px;
    margin-bottom:26px;
}

.stat-card{
    background:#fff;
    padding:18px 20px;
    border-radius:16px;
    border:1px solid #e2e8f0;
    box-shadow:0 4px 10px rgba(15,23,42,0.03);
    min-height:118px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-width:0;
}

.stat-icon{
    width:38px;
    height:38px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:19px;
    margin-bottom:10px;
}

.smtp-icon{background:#eef4ff;}
.campaign-icon{background:#ecfdf5;}
.leads-icon{background:#f5f3ff;}
.sent-icon{background:#ecfeff;}
.completed-icon{background:#fff7ed;}

.stat-title{
    color:#64748b;
    font-size:13px;
    font-weight:700;
    margin-bottom:8px;
}

.stat-value{
    color:#0f172a;
    font-size:30px;
    font-weight:800;
    line-height:1;
}

/* COMMON CARD STYLE - SAME AS ORIGINAL */

.dashboard-card,
.chart-section,
.recent-campaigns-card,
.activity-card,
.warmup-card{
    background:#fff;
    padding:22px;
    border-radius:18px;
    border:1px solid #e2e8f0;
    box-shadow:0 4px 10px rgba(15,23,42,0.03);
}

.dashboard-card-header{
    margin-bottom:18px;
}

.dashboard-card-header-split{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
}

.dashboard-card-header h3,
.chart-header h3,
.recent-campaigns-card h3,
.activity-card h3,
.warmup-card h3{
    font-size:16px;
    font-weight:750;
    color:#0f172a;
    margin:0;
    line-height:1.2;
}

.dashboard-card-header p{
    color:#94a3b8;
    font-size:12px;
    margin:5px 0 0;
}

/* ENGAGEMENT + DELIVERY */

.dashboard-analytics-grid{
    display:grid;
    grid-template-columns:minmax(0,1.6fr) minmax(300px,.75fr);
    gap:18px;
    margin-bottom:24px;
    align-items:stretch;
}

.dashboard-rate-summary{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.dashboard-rate-chip{
    min-width:88px;
    padding:8px 10px;
    background:#f8fafc;
    border:1px solid #edf2f7;
    border-radius:10px;
}

.dashboard-rate-chip span{
    display:block;
    color:#64748b;
    font-size:10px;
    font-weight:700;
    margin-bottom:3px;
}

.dashboard-rate-chip strong{
    color:#0f172a;
    font-size:16px;
    font-weight:800;
}

.dashboard-engagement-chart{
    position:relative;
    width:100%;
    height:250px;
}

.dashboard-delivery-card{
    display:flex;
    flex-direction:column;
}

.dashboard-delivery-chart{
    width:220px;
    height:220px;
    max-width:100%;
    margin:0 auto;
    position:relative;
}

.dashboard-delivery-center{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    pointer-events:none;
}

.dashboard-delivery-center strong{
    color:#0f172a;
    font-size:34px;
    font-weight:800;
    line-height:1;
}

.dashboard-delivery-center span{
    color:#94a3b8;
    font-size:11px;
    font-weight:700;
    margin-top:6px;
}

.dashboard-delivery-totals{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:12px;
}

.dashboard-delivery-totals > div{
    padding:10px;
    background:#f8fafc;
    border:1px solid #edf2f7;
    border-radius:10px;
    text-align:center;
}

.dashboard-delivery-totals span{
    display:block;
    color:#64748b;
    font-size:11px;
    font-weight:700;
    margin-bottom:4px;
}

.dashboard-delivery-totals strong{
    color:#0f172a;
    font-size:18px;
    font-weight:800;
}

/* STATISTICS */

.chart-section{
    margin-bottom:24px;
}

.chart-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.chart-filter{
    font-size:12px;
    font-weight:700;
    color:#475569;
    border:1px solid #dbe3ef;
    padding:7px 11px;
    border-radius:10px;
    background:#fff;
}

.chart-box{
    height:280px;
    position:relative;
}

.dashboard-statistics-chart{
    height:300px;
}

/* RECENT CAMPAIGNS */

.dashboard-recent-campaigns-full{
    margin-bottom:24px;
    min-height:auto;
}

.dashboard-recent-campaigns-full > h3{
    margin:0 0 16px 0;
}

.dashboard-table-scroll{
    overflow-x:auto;
    width:100%;
}

.recent-campaigns-table{
    width:100%;
    border-collapse:collapse;
}

.dashboard-recent-table{
    min-width:920px;
}

.recent-campaigns-table th{
    text-align:left;
    padding:11px 8px;
    font-size:12px;
    color:#64748b;
    font-weight:800;
    border-bottom:1px solid #edf2f7;
    white-space:nowrap;
}

.recent-campaigns-table td{
    padding:11px 8px;
    font-size:13px;
    color:#0f172a;
    border-bottom:1px solid #f5f7fa;
    vertical-align:middle;
}

.dashboard-campaign-name{
    font-weight:700;
}

.dashboard-sender-cell{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:120px;
}

.dashboard-sender-avatar{
    width:28px;
    height:28px;
    border-radius:9px;
    background:#eef4ff;
    color:#2f5fe3;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}

.dashboard-sender-name{
    color:#334155;
    font-weight:700;
}

.status-running{color:#10b981;font-weight:800;}
.status-completed{color:#2f5fe3;font-weight:800;}
.status-paused{color:#f59e0b;font-weight:800;}
.status-scheduled,
.status-new{color:#64748b;font-weight:800;}

.dashboard-empty-table{
    text-align:center;
    color:#94a3b8 !important;
    padding:24px !important;
}

/* BOTTOM TWO */

.dashboard-bottom-two{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    align-items:stretch;
}

.activity-card,
.warmup-card{
    min-height:240px;
}

.activity-card > h3,
.warmup-card > h3{
    margin:0 0 16px 0;
}

#recentActivityList{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.dashboard-activity-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
    font-size:13px;
    color:#334155;
}

.dashboard-activity-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#2f5fe3;
    margin-top:6px;
    flex-shrink:0;
}

.dashboard-activity-copy{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
    min-width:0;
}

.dashboard-activity-copy span:first-child{
    line-height:1.4;
    word-break:break-word;
}

.dashboard-activity-meta{
    color:#94a3b8;
    font-size:12px;
    margin-top:2px;
}

.warmup-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.warmup-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #f1f5f9;
    padding-bottom:8px;
}

.warmup-row:last-child{
    border-bottom:none;
}

.warmup-row > span{
    color:#475569;
    font-size:13px;
    font-weight:700;
}

.warmup-row strong{
    color:#0f172a;
    font-size:15px;
    font-weight:800;
}

.dashboard-health-right{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:120px;
    justify-content:flex-end;
}

.dashboard-health-track{
    width:70px;
    height:6px;
    background:#eef2f7;
    border-radius:99px;
    overflow:hidden;
}

.dashboard-health-fill{
    height:100%;
    background:#2f5fe3;
    border-radius:99px;
}

@media(max-width:1450px){
    .stats-grid{
        grid-template-columns:repeat(5,minmax(150px,1fr));
    }
}

@media(max-width:1200px){
    .stats-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .dashboard-analytics-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:900px){
    .dashboard-bottom-two{
        grid-template-columns:1fr;
    }
}

@media(max-width:800px){
    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .dashboard-card-header-split{
        flex-direction:column;
    }

    .dashboard-rate-summary{
        justify-content:flex-start;
    }
}

@media(max-width:550px){
    .dashboard-wrapper{
        padding:16px;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .dashboard-rate-summary,
    .dashboard-delivery-totals{
        display:grid;
        grid-template-columns:1fr;
        width:100%;
    }
}


/* =========================================================================
   DOMAIN AUTHENTICATION HEALTH
   Isolated styles: no existing dashboard selector is changed.
   ========================================================================= */

.domain-auth-health-card{
    background:#fff;
    padding:22px;
    border-radius:18px;
    border:1px solid #e2e8f0;
    box-shadow:0 4px 10px rgba(15,23,42,0.03);
    margin-bottom:24px;
    min-width:0;
}

.domain-auth-health-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:18px;
}

.domain-auth-health-header h3{
    font-size:17px;
    font-weight:800;
    color:#0f172a;
    margin:0;
}

.domain-auth-health-header p{
    color:#94a3b8;
    font-size:12px;
    margin:5px 0 0;
}

.domain-auth-health-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    flex-wrap:wrap;
}

.domain-auth-last-checked{
    color:#64748b;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

.domain-auth-check-btn{
    border:none;
    border-radius:10px;
    padding:9px 14px;
    background:#2f5fe3;
    color:#fff;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    transition:opacity .2s ease;
}

.domain-auth-check-btn:hover{
    opacity:.9;
}

.domain-auth-check-btn:disabled{
    opacity:.65;
    cursor:wait;
}

.domain-auth-summary{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:16px;
}

.domain-auth-summary-item{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:7px 10px;
    border-radius:10px;
    background:#f8fafc;
    border:1px solid #edf2f7;
    color:#475569;
    font-size:12px;
    font-weight:700;
}

.domain-auth-summary-item strong{
    color:#0f172a;
    font-size:14px;
    font-weight:800;
}

.domain-auth-table-scroll{
    width:100%;
    overflow-x:auto;
}

.domain-auth-table{
    width:100%;
    min-width:760px;
    border-collapse:collapse;
}

.domain-auth-table th{
    text-align:left;
    padding:11px 10px;
    color:#64748b;
    font-size:12px;
    font-weight:800;
    border-bottom:1px solid #edf2f7;
    white-space:nowrap;
}

.domain-auth-table td{
    padding:13px 10px;
    color:#0f172a;
    font-size:13px;
    border-bottom:1px solid #f1f5f9;
    vertical-align:middle;
}

.domain-auth-table tbody tr:last-child td{
    border-bottom:none;
}

.domain-auth-domain-name{
    font-weight:800;
    color:#1e293b;
}

.domain-auth-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:84px;
    padding:6px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}

.domain-auth-status-verified,
.domain-auth-status-excellent{
    background:#dcfce7;
    color:#15803d;
}

.domain-auth-status-good{
    background:#dbeafe;
    color:#1d4ed8;
}

.domain-auth-status-warning,
.domain-auth-status-attention{
    background:#fef3c7;
    color:#b45309;
}

.domain-auth-status-critical{
    background:#fee2e2;
    color:#b91c1c;
}

.domain-auth-status-unable,
.domain-auth-status-pending{
    background:#f1f5f9;
    color:#64748b;
}

.domain-auth-empty{
    text-align:center;
    color:#94a3b8 !important;
    padding:26px !important;
}

.domain-auth-recommendation{
    margin-top:14px;
    padding:12px 14px;
    border-radius:11px;
    border:1px solid #fde68a;
    background:#fffbeb;
    color:#92400e;
    font-size:12px;
    line-height:1.6;
}

@media(max-width:800px){

    .domain-auth-health-header{
        flex-direction:column;
    }

    .domain-auth-health-actions{
        width:100%;
        justify-content:flex-start;
    }

}


/* =========================================================================
   DASHBOARD OVERVIEW POLISH
   Consolidated into this canonical page stylesheet.
   ========================================================================= */

/* =========================================================================
   CONEX MAILER - DASHBOARD OVERVIEW POLISH v1.0.0
   ========================================================================= */

.dashboard-health-groups{
    display:flex;
    flex-direction:column;
    gap:14px;
    width:100%;
}

.dashboard-health-table{
    width:100%;
    background:transparent;
    border:1px solid rgba(226,232,240,.95);
    border-radius:14px;
    overflow:hidden;
}

.dashboard-health-table-title{
    padding:10px 14px 8px;
    background:transparent;
    color:#64748b;
    font-size:12px;
    font-weight:700;
    letter-spacing:.03em;
    text-transform:uppercase;
    border-bottom:1px solid rgba(226,232,240,.8);
}

.dashboard-health-table-body{
    background:transparent;
}

.dashboard-health-table .dashboard-health-group-row{
    background:transparent !important;
    margin:0;
    padding-left:14px;
    padding-right:14px;
}

.dashboard-health-table .dashboard-health-group-row:last-child{
    border-bottom:none;
}

.dashboard-eta-value{
    white-space:nowrap;
    font-weight:600;
    color:#334155;
}

