body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
}

.header-gradient {
    background: linear-gradient(135deg, #1e87f0 0%, #0f5298 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: -40px;
    padding-bottom: 80px;
}

.header-title {
    color: white;
    margin: 0;
    font-weight: 300;
    font-size: 2.2rem;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-top: 5px;
}

.status-badge {
    background: rgba(250, 160, 90, 0.2);
    color: #faa05a;
    border: 1px solid rgba(250, 160, 90, 0.5);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.status-badge.online {
    background: rgba(50, 210, 150, 0.2);
    color: #32d296;
    border-color: rgba(50, 210, 150, 0.5);
}

.status-badge.offline {
    background: rgba(240, 32, 46, 0.2);
    color: #f0202e;
    border-color: rgba(240, 32, 46, 0.5);
}

.content-container {
    position: relative;
    z-index: 10;
}

.metric-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-bottom: 4px solid #e5e5e5;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    position: relative;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.metric-card.color-blue {
    border-bottom-color: #1e87f0;
}

.metric-card.color-green {
    border-bottom-color: #32d296;
}

.metric-card.color-orange {
    border-bottom-color: #faa05a;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 300;
    color: #222;
    line-height: 1.1;
    margin: 10px 0;
    letter-spacing: -1px;
}

.metric-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
}

.metric-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #e0e0e0;
}

.chart-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-title {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin: 0;
}

canvas.smoothie-chart {
    width: 100%;
    height: 250px;
    border-radius: 4px;
    background-color: #fdfdfd;
    border: 1px solid #f0f0f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.peer-card {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    transition: box-shadow 0.2s ease;
}

.peer-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.peer-card .peer-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.peer-card .peer-color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.peer-info-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 0.85rem;
    align-items: flex-start;
}

.peer-info-label {
    min-width: 80px;
    color: #888;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    padding-top: 2px;
}

.peer-info-value {
    color: #444;
    word-break: break-all;
    flex: 1;
}

.peer-you-badge {
    background: #eef6ff;
    color: #1e87f0;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #cce4fc;
    margin-left: 12px;
}

.legend-item {
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}