body {
    background: url("static/images/back2.png") no-repeat center center fixed;
    background-size: cover;
}

.widget-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: white;
    padding: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.widget-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.widget-title {
    font-weight: 600;
    font-size: 18px;
}

.widget-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.metric-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
}

.metric-unit {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.tag {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.spark {
    width: 100%;
    height: 90px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.08);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.spark svg {
    position: absolute;
    inset: 0;
}

.btn-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
}

.empty {
    grid-column: 1 / -1;
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}
