/* ===== CHART DETAIL STYLING (MATCHING DASHBOARD) ===== */
:root {
    --primary-dark: #2D1B4E;
    --primary: #6B4EFF;
    --primary-light: #9B87FF;
    --primary-soft: #E9E5FF;
    --bg-gradient: linear-gradient(135deg, #F8F7FF 0%, #FFFFFF 50%, #F0EEFF 100%);
    --card-bg: #FFFFFF;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --shadow-md: 0 10px 25px rgba(107, 78, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(107, 78, 255, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(135deg, #6B4EFF 0%, #9D65FF 50%, #FF6B6B 100%);
    --border-radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header-nav {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 10px 20px;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-soft);
}

.content-wrapper {
    animation: fadeIn 0.5s ease;
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--primary-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: inset 0 0 0 2px rgba(107, 78, 255, 0.1);
}

.chart-header h1 {
    font-size: 3rem;
    font-weight: 800;
    flex: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chart-display-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    border: 1px solid rgba(107, 78, 255, 0.1);
}

.chart-display-card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.about-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(107, 78, 255, 0.1);
    border-left: 6px solid var(--primary);
}

.about-card h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .chart-header h1 { font-size: 2rem; }
    .icon-wrapper { width: 50px; height: 50px; font-size: 1.5rem; }
    .about-card { padding: 1.5rem; }
}
