/**********************************************************************
 * Dashboard Styles
 * Main layout, sections, tabs, and overview components
 **********************************************************************/

#overview {
    background: var(--section-overview-bg);
}

#machines {
    background: var(--section-machines-bg);
}

#alerts {
    background: var(--section-alerts-bg);
}

#analytics {
    background: var(--section-analytics-bg);
}

#maintenance {
    background: var(--section-maintenance-bg);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}

.tab {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(231, 238, 248, 0.82);
    font-size: 13px;
    font-weight: 600;
}

.tab.active {
    border-color: rgba(6, 99, 249, 0.32);
    background: rgba(6, 99, 249, 0.14);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(6, 99, 249, 0.12) inset;
}

.bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bar > div {
    height: 100%;
    border-radius: 999px;
    background: var(--primary);
    width: 0%;
    transition: width 240ms ease;
}

.acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
}

.acc-panel.open {
    max-height: 1200px;
}

.inline-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 999;
}

.inline-modal.open {
    display: flex;
}
