:root {
    --bg-app-canvas: #f8fafc;
    --bg-card-surface: #ffffff;
    --border-clean: #e2e8f0;
    --text-dark-main: #0f172a;
    --text-dark-sub: #475569;
    --text-faded: #94a3b8;
    --ui-indigo: #4f46e5;
    --ui-indigo-light: #eef2ff;
    --ui-emerald: #10b981;
    --ui-emerald-light: #d1fae5;
    --ui-amber: #d97706;
    --ui-amber-light: #fef3c7;
    --ui-rose: #f43f5e;
    --ui-rose-light: #ffe4e6;
}


/* Master Component Framework Split Grid */

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 90vh;
    background-color: rgb(255, 255, 255);
}


/* --- Navigation Sidebar Components --- */

.dashboard-sidebar {
    background-color: var(--bg-card-surface);
    border-right: 2px solid var(--border-clean);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.brand-hexagon {
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    background-color: var(--ui-indigo-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ui-indigo);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-faded);
    letter-spacing: 0.05em;
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: var(--text-dark-sub);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--ui-indigo-light);
    color: var(--ui-indigo);
}

.nav-link.active {
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-clean);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-fullname {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.user-tier-label {
    display: block;
    font-size: 0.75rem;
    color: var(--ui-indigo);
    font-weight: 600;
}


/* --- Main Framework Platform Layout --- */

.dashboard-main {
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background-color: var(--bg-card-surface);
    border-bottom: 1px solid var(--border-clean);
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-main-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--text-dark-sub);
    margin-top: 0.15rem;
}

.header-states {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburgerdash {
    display: none;
}


/* Activity Pulse State Indicator Badge */

.activity-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    background-color: var(--bg-app-canvas);
    border: 1px solid var(--border-clean);
}

.activity-status-indicator.active {
    color: var(--ui-emerald);
    background-color: var(--ui-emerald-light);
    border-color: transparent;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--ui-emerald);
    position: relative;
}

.activity-status-indicator.active .pulse-dot::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: inherit;
    animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.primary-action-btn {
    background-color: var(--ui-indigo);
    color: white;
    border: none;
    padding: 0.55rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.primary-action-btn:hover {
    background-color: #4338ca;
}


/* --- Panel Blocks Layout Grid --- */

.dashboard-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-body-home {
    background-color: ;
}

.dashboard-body-piggy {
    height: auto;
    display: flex;
    justify-content: center;
    background-color: ;
}

.dashboard-body-piggy img {
    height: 300px;
}

.dashboard-body-title {
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 0.2rem;
    color: black;
}


/* Metrics Dashboard Matrix Block */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    background-color: ;
}

.metric-card {
    background-color: var(--bg-card-surface);
    border: 1px solid var(--border-clean);
    border-radius: 14px;
    padding: 1.5rem;
}

.metric-card.focus-card {
    background: linear-gradient(135deg, #312e81 0%, var(--ui-indigo) 100%);
    color: white;
    border: none;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark-sub);
}

.focus-card .card-label {
    color: rgba(255, 255, 255, 0.8);
}

.label-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

.label-badge.green {
    background-color: var(--ui-emerald-light);
    color: var(--ui-emerald);
}

.label-badge.orange {
    background-color: var(--ui-amber-light);
    color: var(--ui-amber);
}

.text-white {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.card-huge-number {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.metric-unit {
    font-size: 0.95rem;
    color: var(--text-faded);
    font-weight: 400;
    padding-left: 0.5rem;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.6);
}

.dasharticle {
    display: flex;
    background-color: ;
    margin-bottom: 1rem;
}

.dasharticlea {
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
}

.dasharticlea span {
    font-size: 1rem;
    letter-spacing: 0.1rem;
    color: grey;
}

.dasharticleb {
    background-color: ;
    margin-left: auto;
    padding: 0.3rem;
    border-bottom: 1px solid black;
}

.pastactivity {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid #0f172a;
    background-color: ;
}

.pastactivitya {
    font-size: 1.3rem;
    font-weight: 550;
    color: blue;
    letter-spacing: 0.1rem;
    padding: 0.3rem;
    margin-bottom: 1rem;
}

.pastactivityb {
    display: flex;
    background-color: ;
}

.pastactivityba {
    flex: 1;
    padding: 0.2rem;
}

.pheader {
    font-size: 1.2rem;
    color: black;
    text-align: center;
    font-weight: 500;
}

.pvalue {
    font-size: 1rem;
    color: black;
    text-align: center;
    font-weight: 400;
}

.pastactivityc {
    display: flex;
    background-color: ;
}

.card-footer-caption {
    font-size: 0.8rem;
    color: var(--text-faded);
}


/* Main Secondary Layout Split Section */

.workspace-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.panel-box {
    background-color: var(--bg-card-surface);
    border: 1px solid var(--border-clean);
    border-radius: 14px;
    padding: 1.5rem;
}

.panel-header {
    margin-bottom: 1.25rem;
}

.panel-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.panel-subtitle {
    font-size: 0.8rem;
    color: var(--text-dark-sub);
    margin-top: 0.15rem;
}


/* Dynamic Horizontal Button Filters Carousel Component */

.filter-carousel {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    /* Native hidden tracking mechanics rules across engines */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-carousel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.carousel-btn {
    flex: 0 0 auto;
    /* Force elements to keep full structural identity width metrics */
    background-color: var(--bg-app-canvas);
    border: 1px solid var(--border-clean);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-dark-sub);
    transition: all 0.2s ease;
}

.carousel-btn:hover,
.carousel-btn.active {
    background-color: var(--ui-indigo-light);
    color: var(--ui-indigo);
    border-color: transparent;
}


/* Modern Side Feed Timeline Logs */

.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-node {
    display: flex;
    gap: 1rem;
    position: relative;
}

.node-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-clean);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.timeline-node.active .node-indicator {
    background-color: var(--ui-indigo);
    box-shadow: 0 0 0 4px var(--ui-indigo-light);
}

.node-time {
    font-size: 0.75rem;
    color: var(--text-faded);
    display: block;
    margin-bottom: 0.2rem;
}

.node-body h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.node-body p {
    font-size: 0.8rem;
    color: var(--text-dark-sub);
    line-height: 1.4;
}


/* --- GLOBAL CORE BREAKPOINT OVERRIDES --- */

@media (max-width: 768px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr;
        width: 100%;
        overflow-x: hidden;
        padding: 0px;
        background-color: ;
    }
    /* Collapse primary column side-bars frame array */
    .dashboard-sidebar {
        display: none;
        position: absolute;
    }
    .dashboard-header {
        padding: 0.2rem;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        background-color: ;
        width: auto;
    }
    .header-states {
        gap: 1rem;
        padding: 0.1rem;
        background-color: ;
    }
    .hamburgerdash {
        display: block;
        padding-left: 0.5rem;
    }
    .header-main-title {
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.01rem;
    }
    .header-subtitle {
        font-size: 0.5rem;
        margin-top: 0.15rem;
        max-width:80%;
    }
    .activity-status-indicator {
        gap: 0.5rem;
        font-size: 0.5rem;
        font-weight: 500;
        padding: 0.3rem 0.7rem;
        margin-left:auto;
        max-width:100%;
        white-space: nowrap;
    }
    .pulse-dot {
        width: 5px;
        height: 5px;
    }
    .primary-action-btn {
        display: none;
    }
    .dashboard-body {
        padding: 1rem;
        height: 100%;
        background-color: ;
    }
    .dashboard-body-piggy img {
        height: 200px;
    }
    .dashboard-body-title {
        font-size: 1rem;
        letter-spacing: 0.1rem;
    }
    .metrics-grid {
        gap: 1rem;
    }
    .metric-card {
        padding: 0.7rem;
        width: auto;
    }
    .card-meta {
        margin-bottom: 0.5rem;
    }
    .card-label {
        font-size: 0.6rem;
        font-weight: 500;
    }
    .label-badge {
        font-size: 0.5rem;
        font-weight: 500;
        padding: 0.1rem 0.3rem;
    }
    .card-huge-number {
        font-size: 1rem;
        font-weight: 650;
    }
    .metric-unit {
        font-size: 0.5rem;
    }
    .card-footer-caption {
        font-size: 0.4rem;
    }
    .workspace-split {
        display: block;
    }
    .panel-box {
        border: 1.5px solid var(--border-clean);
        padding: 1rem;
        width: auto-fit;
        background-color: ;
    }
    .panel-box.auxiliary-status {
        display: none;
    }
    .panel-header {
        margin-bottom: 1rem;
    }
    .panel-header h3 {
        font-size: 0.8rem;
        font-weight: 550;
    }
    .panel-subtitle {
        font-size: 0.5rem;
    }
    .dasharticle {
        display: flex;
        background-color: ;
        margin-bottom: 0.8rem;
            }
    .dasharticlea {
        font-size: 0.7rem;
        letter-spacing: 0.05rem;
    }
    .dasharticlea span {
        font-size: 0.5rem;
        letter-spacing: 0.02rem;
        color: grey;
        max-width:70%;
    }
    .dasharticleb {
        padding: 0.1rem;
        font-size: 0.8rem;
    }
    .pastactivity {
        padding: 0.7rem;
    }
    .pastactivitya {
        font-size: 1.2rem;
    }
    .pastactivityba {
        flex: 1;
        padding: 0.2rem;
    }
    .pheader {
        font-size: 0.9rem;
    }
    .pvalue {
        font-size: 0.7rem;
    }
}