/* Card shell (match your app’s card style as needed) */
/* Container */
.radar-widget {
    color: #e8ebf0;
    grid-column: 7/9;
    position: relative;
    height: 288px !important;
    /* ensures icons position safely */
}

/* SVG stage */
.radar-canvas {
    position: relative;
    height: 80%;
    /* <- make the square follow container height */
    width: auto;
    /* <- width adapts */
    aspect-ratio: 1 / 1;
    /* keep square */
    margin: 0 auto;
    /* center horizontally if narrower */
}

.radar-grid {
    width: 100%;
    height: 100%;
    display: block;
}

/* Rings */
.rings .ring {
    fill: rgba(255, 255, 255, 0.04);
    stroke: #454857;
    stroke-width: 2;
}

.rings .ring-3 .ring-1 {
    fill: #24252C;
}

.rings .ring-2 {
    fill: #1C1C24;
}

/* Hub + Spokes */
.hub {
    stroke: #454857;
    stroke-width: 2;
    fill: #1C1C24;
}

.spokes line {
    stroke: #454857;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.9;
}

/* Icons around the chart */
.radar-icon {
    position: absolute;
    width: 20px;
    height: 18px;
    user-select: none;
    pointer-events: auto;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
    object-fit: contain;
    cursor: help;
}

/* Place them roughly at vertices; tweak as needed */
.radar-icon--top {
    top: -1%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radar-icon--right {
    top: 36%;
    right: 0%;
    transform: translate(50%, -50%);
}

.radar-icon--tr {
    top: 18%;
    right: 9%;
    transform: translate(50%, -50%);
}

.radar-icon--br {
    bottom: 6%;
    right: 20%;
    transform: translate(50%, 50%);
}

.radar-icon--bl {
    bottom: 6%;
    left: 20%;
    transform: translate(-50%, 50%);
}

.radar-icon--left {
    top: 36%;
    left: 0%;
    transform: translate(-50%, -50%);
}

.radar-icon--bottom {
    bottom: -2%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.radar-icon--tl {
    top: 18%;
    left: 9%;
    transform: translate(-50%, -50%);
}


/* Tooltip */
.radar-tooltip {
    position: absolute;
    max-width: 360px;
    background: #1C1C24;
    color: #e7eaef;
    border: 1px solid #454756;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
    padding: 16px 16px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -12px);
    transition: opacity .12s ease, transform .12s ease;
    z-index: 999;
    min-width: 170px;
}

.radar-tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, -16px);
}

.radar-tooltip .rt-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.radar-tooltip .rt-title {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    letter-spacing: .2px;
}

.radar-tooltip .rt-value {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.radar-tooltip {
    max-width: 240px;
    word-wrap: break-word;
}

.radar-icon,
.rt-title,
.rt-icon {
    cursor: default;
    /* or pointer, if clickable */
}

.rt-icon {
    height: 18px;
    width: auto;
}

.rt-icon-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.radar-tooltip .rt-desc {
    margin: 0;
    line-height: 1.45;
    color: #A8AAAF;
}

.radar-canvas .radar-tooltip.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -16px);
}
