/* ==================================================
   Nuclear Fancy Pants Edition™ — NUCLEAR+++
   File: /assets/css/dashboard.css
   Description: Dashboard tab styles — metrics, charts, channel health, top post
   Last Edited: 2026-04-22
   ================================================== */

@import url('fonts.css');
@import url('tabs.css');

/* ── Page background ───────────────────────────────────────────────── */
#wpcontent,
#wpbody,
#wpbody-content {
    background: #F9FAFB;
}

/* ── Page header ───────────────────────────────────────────────────── */
#amai-dash-header {
    padding: 24px 0 0;
    text-align: center;
}

.amai-dash-title {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #D97757;
    margin: 0 0 6px;
    line-height: 1.2;
}

.amai-dash-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #78716C;
    margin: 0 0 20px;
}


/* ── Tabs (shared partial) ─────────────────────────────────────────── */

/* ── Dashboard wrapper ─────────────────────────────────────────────── */
#amai-dashboard {
    max-width: 1200px;
    padding-bottom: 60px;
}

/* ── Hero / revenue block ──────────────────────────────────────────── */
.amai-dash-hero {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.amai-dash-hero-left {
    flex: 1;
}

.amai-dash-mrr-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #A8A29E;
    margin-bottom: 6px;
}

.amai-dash-mrr {
    font-family: 'Nunito', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #1C1917;
    line-height: 1.1;
    min-height: 50px;
}

.amai-mrr-loading,
.amai-mrr-free {
    font-size: 28px;
    font-weight: 700;
    color: #78716C;
}

.amai-dash-mrr-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #78716C;
    margin-top: 6px;
    min-height: 20px;
}

.amai-mrr-loading-meta {
    color: #A8A29E;
    font-style: italic;
}

.amai-dash-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 180px;
}

.amai-dash-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #FDF4F0;
    border: 1.5px solid #E7DDD5;
    border-radius: 20px;
    padding: 5px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #D97757;
}

.amai-plan-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D97757;
    flex-shrink: 0;
}

.amai-dash-next-bill {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #78716C;
    text-align: right;
}

.amai-dash-member-since {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #A8A29E;
    text-align: right;
    min-height: 16px;
}

/* ── Stat cards ────────────────────────────────────────────────────── */
.amai-dash-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .amai-dash-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .amai-dash-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.amai-dash-card {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amai-dash-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amai-dash-card-icon--posts   { background: #FDF4F0; color: #D97757; }
.amai-dash-card-icon--channels { background: #F0F9FF; color: #0EA5E9; }
.amai-dash-card-icon--pending  { background: #FFFBEB; color: #D97706; }
.amai-dash-card-icon--streak   { background: #FFF1F2; color: #F43F5E; }
.amai-dash-card-icon--next     { background: #F0FDF4; color: #16A34A; }

.amai-dash-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amai-dash-card-num {
    font-family: 'Nunito', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: #1C1917;
    line-height: 1.1;
}

.amai-dash-card-num--sm {
    font-size: 18px;
    font-weight: 800;
}

.amai-dash-card-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: #57534E;
    line-height: 1.3;
}

.amai-dash-card-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    color: #A8A29E;
    margin-top: 2px;
}

.amai-dash-card-sub--link {
    color: #D97757;
    text-decoration: none;
    font-weight: 500;
}

.amai-dash-card-sub--link:hover {
    text-decoration: underline;
    color: #C4623E;
}

/* ── Section wrapper ───────────────────────────────────────────────── */
.amai-dash-section {
    margin-bottom: 24px;
}

.amai-dash-section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1C1917;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.amai-dash-badge-coming {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #A8A29E;
    background: #F5F5F4;
    border-radius: 10px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Channel health strip ──────────────────────────────────────────── */
.amai-dash-health-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amai-dash-health-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 24px;
    padding: 7px 16px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #1C1917;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.amai-dash-health-pill:hover {
    text-decoration: none;
    border-color: #D97757;
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.08);
    color: #1C1917;
}

.amai-health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.amai-health--good    .amai-health-dot { background: #22C55E; }
.amai-health--warning .amai-health-dot { background: #F59E0B; }
.amai-health--expired .amai-health-dot { background: #EF4444; }

.amai-health--warning { border-color: #FCD34D; }
.amai-health--expired { border-color: #FCA5A5; }

.amai-health-name {
    font-weight: 600;
}

.amai-health-page {
    color: #78716C;
    font-size: 12px;
}

.amai-health-status {
    font-size: 11.5px;
    color: #A8A29E;
}

.amai-health--warning .amai-health-status { color: #D97706; }
.amai-health--expired .amai-health-status { color: #EF4444; }

/* ── Charts ────────────────────────────────────────────────────────── */
.amai-dash-charts {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 860px) {
    .amai-dash-charts {
        grid-template-columns: 1fr;
    }
}

.amai-dash-chart-box {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 22px 24px 18px;
}

.amai-dash-chart-title {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #1C1917;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.amai-dash-chart-period {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 400;
    color: #A8A29E;
}

.amai-dash-chart-wrap {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.amai-dash-chart-empty {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #A8A29E;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

/* SVG bar chart styles */
.amai-chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.amai-chart-bar {
    fill: #D97757;
    rx: 3;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.amai-chart-bar:hover {
    opacity: 1;
}

.amai-chart-bar--channel-facebook  { fill: #1877F2; }
.amai-chart-bar--channel-instagram { fill: #E1306C; }
.amai-chart-bar--channel-x         { fill: #000000; }
.amai-chart-bar--channel-tiktok    { fill: #010101; }
.amai-chart-bar--channel-linkedin  { fill: #0A66C2; }
.amai-chart-bar--channel-google    { fill: #4285F4; }

.amai-chart-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    fill: #A8A29E;
    text-anchor: middle;
}

.amai-chart-label--channel {
    font-size: 10px;
    fill: #78716C;
    text-anchor: start;
}

.amai-chart-val {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    fill: #78716C;
    text-anchor: middle;
}

/* ── Top performing post ───────────────────────────────────────────── */
.amai-dash-top-post {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-left: 4px solid #D97757;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 20px 24px;
}

.amai-dash-top-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.amai-dash-top-channel {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    background: #FDF4F0;
    color: #D97757;
    border-radius: 10px;
    padding: 2px 10px;
}

.amai-dash-top-type {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    color: #A8A29E;
    text-transform: capitalize;
}

.amai-dash-top-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    color: #A8A29E;
    margin-left: auto;
}

.amai-dash-top-post-content {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    color: #292524;
    line-height: 1.6;
    margin-bottom: 14px;
}

.amai-dash-top-post-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.amai-top-stat {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #78716C;
}

.amai-top-stat strong {
    font-weight: 700;
    color: #1C1917;
}

/* ── Coming soon section ───────────────────────────────────────────── */
.amai-dash-section--coming {
    opacity: 0.6;
}

.amai-dash-coming-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #A8A29E;
    font-style: italic;
}
/* ── Comment inbox notice card ─────────────────────────────────────── */
.amai-dash-comment-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #FFF7F4;
    border: 1.5px solid #FBDDD3;
    border-left: 4px solid #D97757;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.amai-dash-comment-notice-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.amai-dash-comment-notice-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.amai-dash-comment-notice-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1C1917;
    margin-bottom: 2px;
}
.amai-dash-comment-notice-sub {
    font-size: 13px;
    color: #78716C;
    line-height: 1.4;
}
.amai-dash-comment-notice-btn {
    flex-shrink: 0;
    background: #D97757;
    color: #fff;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.15s;
}
.amai-dash-comment-notice-btn:hover {
    background: #C2623D;
    color: #fff;
}
