/* ---- Overview Page ---- */

.ov-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1060px;
    margin: 0 auto;
    width: 100%;
}

.ov-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ov-bottom-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

@media (max-width: 768px) {
    .ov-page { gap: 16px; }
    .ov-stats-row { grid-template-columns: 1fr; }
    .ov-bottom-panels { grid-template-columns: 1fr; }
}

/* ---- Overview: Welcome Banner ---- */
/* Figma: Container #18181B, border #27272A, radius 22px, shadow */

.ov-banner {
    position: relative;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border-dark);
    box-shadow: 0px 17px 34px -8px rgba(0, 0, 0, 0.25);
    border-radius: 22px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: var(--color-text-inverse);
    min-height: 180px;
    overflow: hidden;
}

.ov-banner__glow {
    position: absolute;
    width: 273px;
    height: 273px;
    right: -20px;
    top: -74px;
    background: linear-gradient(135deg, rgba(97, 95, 255, 0.2) 0%, rgba(173, 70, 255, 0.2) 100%);
    filter: blur(55px);
    border-radius: 50%;
    pointer-events: none;
}

.ov-banner__content {
    flex: 1;
    z-index: 1;
}

.ov-banner__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-inverse);
    margin-bottom: 11px;
}

.ov-banner__plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    height: 24px;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-brand-accent);
    text-transform: none;
    letter-spacing: 0;
}

.ov-banner__greeting {
    font-size: 33px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.8px;
    margin: 0 0 11px 0;
    color: var(--color-text-inverse);
}

.ov-banner__name {
    font-size: 40px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.1;
    padding-bottom: 4px;
    padding-right: 5px;
    background: linear-gradient(90.61deg, #BDCBEF 0.51%, #7986A8 103.3%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.ov-banner__desc {
    font-size: 10px;
    font-weight: 400;
    color: #9F9FA9;
    margin: 0;
    max-width: 340px;
    line-height: 17px;
}

.ov-banner__status {
    flex-shrink: 0;
    margin-left: 24px;
    z-index: 1;
}

.ov-banner__badge {
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    padding: 0 14px;
    height: 31px;
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-inverse);
    white-space: nowrap;
}

.ov-banner__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00BC7D;
    opacity: 0.5;
    box-shadow: 0px 0px 7px rgba(16, 185, 129, 0.5);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ov-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
    .ov-banner__greeting { font-size: 26px; }
    .ov-banner__name { font-size: 32px; }
    .ov-banner__status { margin-left: 0; margin-top: 16px; }
}

/* ---- Overview: Stat Card ---- */

.ov-stat {
    position: relative;
    background: var(--color-bg-white);
    border: 0.7px solid rgba(228, 228, 231, 0.6);
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.04);
    border-radius: 22px;
    padding: 20px 24px;
    overflow: hidden;
    min-height: 130px;
    display: flex;
    flex-direction: column;
}

.ov-stat__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ov-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--color-bg-surface);
    border: 0.7px solid #F4F4F5;
    box-shadow: 0px 0.7px 2px rgba(0, 0, 0, 0.1), 0px 0.7px 1.4px -0.7px rgba(0, 0, 0, 0.1);
    color: #3F3F46;
}

.ov-stat__change {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    z-index: 1;
}

.ov-stat__change--positive { color: #009966; background: var(--color-success-soft); }
.ov-stat__change--neutral  { color: #009966; background: var(--color-success-soft); }
.ov-stat__change--negative { color: #dc2626; background: #fef2f2; }

.ov-stat__body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex: 1;
    z-index: 1;
}

.ov-stat__left  { flex-shrink: 0; }
.ov-stat__right { text-align: right; flex-shrink: 0; }

.ov-stat__value {
    font-size: 32px;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.1;
    margin-bottom: 4px;
}

.ov-stat__title {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.ov-stat__subtitle {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
}

.ov-stat__watermark {
    position: absolute;
    right: 8px;
    top: 0;
    padding: 16px;
    opacity: 0.05;
    pointer-events: none;
    color: #18181b;
}

/* ---- Overview: Quick Actions Panel ---- */

.ov-actions {
    background: var(--color-bg-white);
    border: 0.7px solid rgba(228, 228, 231, 0.6);
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.04);
    border-radius: 22px;
    padding: 22px 22px 0;
}

.ov-panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #18181B;
    letter-spacing: -0.4px;
    margin: 0 0 20px 0;
}

.ov-actions-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ov-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 0.7px solid rgba(228, 228, 231, 0.6);
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ov-action-item:hover { background: var(--color-bg-surface); }

.ov-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    background: var(--color-bg-surface);
    border: 0.7px solid #F4F4F5;
    box-shadow: 0px 0.7px 2px rgba(0, 0, 0, 0.1), 0px 0.7px 1.4px -0.7px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: #52525C;
    flex-shrink: 0;
}

.ov-action-name {
    font-size: 14px;
    font-weight: 600;
    color: #18181B;
    margin-bottom: 3px;
}

.ov-action-desc {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---- Overview: Recent Activity Panel ---- */

.ov-activity {
    background: var(--color-bg-white);
    border: 0.7px solid rgba(228, 228, 231, 0.6);
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.04);
    border-radius: 22px;
    padding: 22px 0 22px 22px;
    display: flex;
    flex-direction: column;
}

.ov-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    background: rgba(250, 250, 250, 0.5);
    border: 0.7px solid #F4F4F5;
    border-radius: 11px;
    margin-right: 22px;
}

.ov-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: var(--color-bg-white);
    border: 0.7px solid #F4F4F5;
    box-shadow: 0px 0.7px 2px rgba(0, 0, 0, 0.1), 0px 0.7px 1.4px -0.7px rgba(0, 0, 0, 0.1);
    color: #D4D4D8;
    margin-bottom: 12px;
}

.ov-empty__title {
    font-size: 15px;
    font-weight: 500;
    color: #18181B;
    margin-bottom: 4px;
}

.ov-empty__desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.5;
    max-width: 240px;
}

/* ---- Overview: Activity Items ---- */

.ov-activity-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ov-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
}

.ov-activity-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #64748b;
    flex-shrink: 0;
}

.ov-activity-item__content { flex: 1; min-width: 0; }
.ov-activity-item__title { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.ov-activity-item__desc { font-size: 12px; color: #94a3b8; }
.ov-activity-item__time { font-size: 11px; color: #9ca3af; white-space: nowrap; flex-shrink: 0; }

/* ---- Re-run Setup Wizard card (Figma rerun.txt — standalone bottom row) ---- */
.ov-rerun-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
    background: #FFFFFF;
    border: 0.7px solid rgba(228, 228, 231, 0.6);
    box-shadow: 0px 5.45px 20.45px rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ov-rerun-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.ov-rerun-title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: #18181B;
}

.ov-rerun-desc {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #18181B;
}

.ov-rerun-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 22px;
    gap: 8px;
    min-width: 199px;
    height: 40px;
    background: #2A2F6F;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14),
                0px 2px 1px -1px rgba(0, 0, 0, 0.2);
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 150ms ease-in-out, transform 100ms ease-in-out;
}

.ov-rerun-btn:hover {
    background: #1E2259;
}

.ov-rerun-btn:active {
    transform: translateY(1px);
}

.ov-rerun-btn:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(42, 47, 111, 0.35);
}

@media (max-width: 768px) {
    .ov-rerun-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .ov-rerun-btn {
        width: 100%;
    }
}

/* ---- MudBlazor Overrides ---- */
