/* assets/style.css */

:root {
  --tooltip-font-size: 1.0rem; /* Control the base font size for the tooltip here */
}

/* Style the custom tooltip container */
.metric-tooltip {
    min-width: 250px; /* Increased min-width for better layout */
    max-width: 350px;
    padding: 12px;    /* Increased padding */
    background-color: #f9f9fa;
    border: 1px solid #d1d1d1;
    border-radius: 6px; /* Slightly more rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Softer shadow */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--tooltip-font-size); /* Use the CSS variable */
    line-height: 1.5; /* Improved line spacing */
    color: #333;
}

/* Style for the main header (h4) if you use it */
.metric-tooltip h4 {
    margin-top: 0;
    margin-bottom: 10px; /* Space below header */
    font-size: calc(var(--tooltip-font-size) * 1.2); /* Relative to base */
    font-weight: 600;
    color: #0056b3; /* A different color for the header */
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 6px;
}

/* Style for the sub-headings (h6) */
.metric-tooltip h6 {
    margin-top: 10px; /* Space above sub-heading */
    margin-bottom: 5px;  /* Space below sub-heading */
    font-size: calc(var(--tooltip-font-size) * 1.05); /* Slightly larger than base */
    font-weight: 600; /* Bold */
    color: #1a1a1a;
}

/* Style for paragraphs */
.metric-tooltip p {
    margin-top: 0;
    margin-bottom: 8px; /* Space between paragraphs */
}

/* Remove margin from the last paragraph */
.metric-tooltip p:last-child {
    margin-bottom: 0;
}

/* Style for the horizontal rule separator */
.metric-tooltip hr {
    border: none;
    border-top: 1px solid #e1e4e8; /* A light line for separation */
    margin: 12px 0; /* More space around the separator */
}

.metric-tooltip strong {
    color: #495057; /* Slightly darker color for labels */
}

.metric-tooltip ul {
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* AG Grid needs this class to apply its tooltip styling wrapper */
/* Usually automatically applied, but good to be aware of */
.ag-tooltip-custom {
    /* You might override background etc. here if needed, but styling the inner div is better */
}