﻿/* ============================================================
   dashboard.css — Dashboard specific styles
   Prefix: dash-*
   ============================================================ */

/* ── Empty state wrapper ── */
.dash-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 540px;
    margin: 4rem auto;
    padding: 0 1rem;
}

/* ── Top: greeting ── */
.dash-empty-top {
    text-align: center;
}

.dash-empty-emoji {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.dash-empty-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}

    .dash-empty-heading span {
        color: var(--color-primary);
    }

.dash-empty-sub {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

/* ── Feature hint grid ── */
.dash-empty-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
}

.dash-empty-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    transition: var(--transition-base);
}

    .dash-empty-feature-card:hover {
        border-color: var(--color-border);
        background: var(--color-surface);
    }

.dash-empty-feature-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.fi-blue {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.fi-green {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.fi-amber {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.fi-red {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.dash-empty-feature-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.dash-empty-feature-desc {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ── Divider ── */
.dash-empty-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    width: 100%;
}

    .dash-empty-divider::before,
    .dash-empty-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--color-border-light);
    }

/* ── CTA ── */
.dash-empty-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.dash-empty-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

/* ============================================================
   Full dashboard styles
   ============================================================ */

/* ── Header ── */
.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

    .dash-header .btn-brand {
        padding: 0.45rem 1rem;
        font-size: var(--font-size-sm);
        font-weight: 500;
    }


.dash-greeting {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

    .dash-greeting span {
        color: var(--color-primary);
    }

.dash-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}


/* ── Stat pills ── */

.dash-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dash-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Two col responsive ── */




.dash-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
    background: var(--color-bg);
    transition: var(--transition-base);
}

    .dash-stat-pill:hover {
        border-color: var(--color-border);
        background: var(--color-surface);
    }

.pill-num {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text);
}

.pill-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.pill-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.pi-blue {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.pi-green {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.pi-amber {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.pi-red {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

/* ── Divider ── */
.dash-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: 0.5rem 0;
}

/* ── Section ── */
.dash-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-section-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-section-link {
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

    .dash-section-link:hover {
        text-decoration: underline;
    }

.dash-section-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* ── Inline empty ── */
.dash-inline-empty {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    padding: 1rem 0.75rem;
    border: 1px dashed var(--color-border-light);
    border-radius: var(--radius-md);
    text-align: center;
}

/* ── App rows (recent + follow-up) ── */
.dash-app-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-app-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    text-decoration: none;
    color: inherit;
}

    .dash-app-row:hover {
        background: var(--color-surface);
    }

.dash-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--color-info-bg);
    color: var(--color-info);
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-app-info {
    flex: 1;
    min-width: 0;
}

.dash-app-role {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-app-company {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.dash-app-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.dash-app-date {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

.dash-stale-days {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    background: var(--color-surface);
    border-radius: 100px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* ── Event rows ── */
.dash-event-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-event-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    text-decoration: none;
    color: inherit;
}

    .dash-event-row:hover {
        background: var(--color-surface);
    }

.dash-event-date-block {
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.dash-event-day {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1;
}

.dash-event-month {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-event-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border-light);
    flex-shrink: 0;
}

.dash-event-info {
    flex: 1;
    min-width: 0;
}

.dash-event-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
}

.dash-event-sub {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.dash-event-chip {
    font-size: var(--font-size-xs);
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 100px;
    flex-shrink: 0;
}

.chip-soon {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.chip-upcoming {
    background: #f1f5f9;
    color: #475569;
}

/* ── Two column layout ── */
.dash-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── Section cards ── */
.dash-card {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    background: var(--color-bg);
}

/* ── Daily quote ── */

.dash-quote-card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--color-info-bg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-info);
    max-width: 320px;
}
.dash-quote-icon {
    font-size: 1.1rem;
    color: var(--color-info);
    flex-shrink: 0;
    margin-top: 1px;
}

.dash-quote-text {
    font-size: var(--font-size-sm);
    color: var(--color-info);
    font-style: italic;
    line-height: 1.6;
}

/*currently working*/
.dash-greeting-name {
    cursor: pointer;
    position: relative;
}

.dash-cw-popover {
    display: none;
    position: absolute;
    z-index: 1000;
    margin-top: 8px;
    background: #f8fffe; 
    border: 1px solid var(--color-brand-light);
    border-left: 4px solid var(--color-brand);
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.dash-cw-popover-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #065F46;
    margin-bottom: 4px;
}

.dash-cw-popover-role {
    font-weight: 600;
    font-size: 0.92rem;
    color: #065F46;
}

.dash-cw-popover-date {
    font-size: 0.78rem;
    color: var(--color-brand);
    margin-top: 3px;
}

.dash-greeting-name:hover .dash-cw-popover {
    display: block;
}


.dash-cw-popover-label,
.dash-cw-popover-role,
.dash-cw-popover-date {
    display: block;
}



@media (max-width: 992px) {
    .dash-two-col {
        grid-template-columns: 1fr;
        width: 100%;
    }
}


/*@media (max-width: 770px) {
    .dash-two-col {
        grid-template-columns: 1fr;
    }

    .dash-stats-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-quote-card {
        max-width: 100%;
        width: 100%;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dash-add-btn {
        align-self: flex-start;
    }
}*/