/* Component: Tooltip and Alert
 * Description: 
 * - .smd-component_tooltip: Container for tooltip functionality, positions tooltip text relative to the hovered element.
 * - .smd-component_tooltip-text: Styles the tooltip text, including positioning, background, color, and transition effects. Hidden by default, becomes visible on hover.
 * - .smd-component_tooltip-text::after: Creates a small arrow pointing to the tooltip trigger using a pseudo-element.
 * - .smd-component_alert: Styles an alert box with padding, border, background color, and flex layout for content alignment.
 */

 
.smd-component_tooltip {
    position: relative;
    display: inline-block;
}

.smd-component_tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-background-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.smd-component_tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-background-dark);
}

.smd-component_tooltip:hover .smd-component_tooltip-text {
    visibility: visible;
    opacity: 1;
}

.smd-component_alert {
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--color-branding-primary);
    background: var(--color-background-deep);
    color: white;
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}