.financial-widget {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.fw-search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.fw-search {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.fw-search:focus {
    outline: none;
    border-color: #007cba;
}

.fw-results {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 2px solid #007cba;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: none;
}

.fw-result-item {
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #1e1e1e;
}

.fw-result-item:hover {
    background: #f8f9fa;
}

.fw-metric {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fw-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.fw-metric-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e1e1e;
}

.fw-value {
    font-weight: 600;
    color: #d63638;
}

.fw-visualization {
    position: relative;
    height: 30px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 1rem 0;
}

.fw-range {
    position: absolute;
    background: #007cba;
    opacity: 0.2;
    height: 100%;
    border-radius: 4px;
    left: 0;
    right: 0;
}

.fw-median {
    position: absolute;
    width: 2px;
    background: #1e1e1e;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.fw-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #d63638;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fw-labels {
    display: flex;
    justify-content: space-between;
    color: #757575;
    font-size: 0.9em;
    margin-top: 0.5rem;
}

.fw-labels span {
    flex: 1;
    text-align: center;
}

.fw-labels span:first-child { text-align: left; }
.fw-labels span:last-child { text-align: right; }
