/* Investment Visualization Styles */
.investment-visualization {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 245, 160, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 245, 160, 0.1);
}

.investment-visualization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 245, 160, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 245, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.investment-visualization > * {
    position: relative;
    z-index: 2;
}

/* Color Coordination for Investment Visualization Section */
.investment-controls input,
.investment-controls select {
    border: 1px solid rgba(0, 245, 160, 0.3);
    height: 50px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #ffffff;
}

.investment-controls input:focus,
.investment-controls select:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(0, 245, 160, 0.6);
    box-shadow: 0 0 25px rgba(0, 245, 160, 0.3);
    color: white;
    outline: none;
}

.investment-controls .input-group-text {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0, 245, 160, 0.3);
    color: #00F5A0;
    font-weight: 600;
}

.investment-controls label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.investment-controls input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Button group styling coordination */
.view-controls .btn-group {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 15px;
    padding: 8px;
    border: 1px solid rgba(0, 245, 160, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.view-controls .btn {
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.view-controls .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 160, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-controls .btn:hover::before {
    left: 100%;
}

.view-controls .btn:hover {
    color: #ffffff;
    background: rgba(0, 245, 160, 0.1);
}

.view-controls .btn.active {
    background: linear-gradient(135deg, #00F5A0 0%, #00D9F5 100%);
    color: #121225;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 245, 160, 0.4);
    border: 1px solid rgba(0, 245, 160, 0.6);
}

/* Enhanced chart container styling */
.chart-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.7) 100%);
    border-radius: 20px;
    padding: 30px;
    height: 400px;
    margin: 20px 0;
    border: 1px solid rgba(0, 245, 160, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.chart-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg at 50% 50%, 
        transparent 0deg, 
        rgba(0, 245, 160, 0.05) 90deg, 
        transparent 180deg, 
        rgba(0, 217, 245, 0.05) 270deg, 
        transparent 360deg);
    animation: rotateGradient 20s linear infinite;
    z-index: 1;
}

.chart-container > * {
    position: relative;
    z-index: 2;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Better stats grid alignment */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stats-grid .stat-card h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
}

.stats-grid .stat-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.stat-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 245, 160, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 160, 0.1), transparent);
    transition: left 0.8s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 160, 0.5);
    box-shadow: 0 15px 35px rgba(0, 245, 160, 0.25);
}

.stat-card h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #2c3eff, #5c31ef);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #1ec973, #1ea884);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17b4e9, #2c73ef);
}
