.chart-legend-container {
    background: rgba(10, 10, 10, 0.6);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.legend-title {
    color: #FFFFFF;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.legend-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-section:last-child {
    border-bottom: none;
}

.legend-section h4 {
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-items.zodiac-signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.legend-symbol {
    font-size: 24px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    text-shadow: 0 0 10px currentColor;
}

.legend-line {
    height: 20px;
    min-width: 30px;
    border-radius: 2px;
    display: inline-block;
}

.legend-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

.legend-tip {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #FFD700;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.legend-tip p {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}


.chart-instructions {
    background: rgba(10, 10, 10, 0.6);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.chart-instructions h3 {
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 15px;
}

.chart-instructions ul {
    list-style: none;
    padding: 0;
}

.chart-instructions li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.chart-instructions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #FFD700;
    font-weight: bold;
}


@media (max-width: 768px) {
    .legend-items.zodiac-signs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-legend-container {
        padding: 15px;
    }
}
