body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f5f6fa;
    color: #2d3436;
}

#app-container {
    display: flex;
    height: 100vh;
}

#sidebar {
    width: 320px;
    min-width: 320px;
    background: #ffffff;
    border-right: 1px solid #dfe6e9;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

#sidebar h2 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0984e3;
}

#sidebar .subtitle {
    font-size: 12px;
    color: #636e72;
    margin-bottom: 8px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2d3436;
}

.control-group .label-hint {
    font-size: 11px;
    color: #b2bec3;
    font-weight: 400;
}

#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#header {
    background: #ffffff;
    border-bottom: 1px solid #dfe6e9;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#stats-bar {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #636e72;
}

#stats-bar .stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

#stats-bar .stat strong {
    color: #2d3436;
}

#heatmap-graph {
    flex: 1;
    background: #ffffff;
}

#detail-panel {
    background: #ffffff;
    border-top: 1px solid #dfe6e9;
    padding: 16px 24px;
    max-height: 200px;
    overflow-y: auto;
}

#detail-panel h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

#detail-panel .detail-content {
    font-size: 13px;
    color: #636e72;
}

#detail-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#detail-panel th, #detail-panel td {
    text-align: left;
    padding: 4px 8px;
    border-bottom: 1px solid #f0f0f0;
}

#detail-panel th {
    font-weight: 600;
    color: #2d3436;
}

.status-connected {
    color: #00b894;
    font-weight: 600;
}

.status-disconnected {
    color: #d63031;
    font-weight: 600;
}

.dash-dropdown .Select-control {
    border-radius: 6px !important;
}

.js-plotly-plot .plotly .modebar {
    top: 4px !important;
    right: 4px !important;
}
