/* Gold Sidebar Styles */
.gold-sidebar {
    background: linear-gradient(to bottom, #fffdf5, #fff9e6);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.15);
    overflow: hidden;
}

.sidebar-section {
    padding: 0;
}

.sidebar-title {
    background: linear-gradient(135deg, #f6e27a 0%, #daa520 50%, #b8860b 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 16px 20px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #b8860b;
}

.sidebar-title-link {
    display: block;
    background: linear-gradient(135deg, #f6e27a 0%, #daa520 50%, #b8860b 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 16px 20px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #b8860b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-title-link:hover {
    background: linear-gradient(135deg, #e6d26a 0%, #ca9510 50%, #a87600 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.4);
    transform: translateY(-1px);
}

.sidebar-title-link.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 50%, #987500 100%);
    border-bottom: 3px solid #987500;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-title-highlight {
    background: linear-gradient(135deg, #f6e27a 0%, #daa520 50%, #b8860b 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 12px 20px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px dotted #daa520;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu li a {
    display: block;
    padding: 14px 20px;
    color: #5d4037;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-menu li a:hover {
    background: rgba(218, 165, 32, 0.1);
    color: #b8860b;
    padding-left: 25px;
}

.sidebar-menu li a.active {
    background: rgba(218, 165, 32, 0.15);
    color: #b8860b;
    font-weight: 600;
    border-left: 4px solid #daa520;
}

.sidebar-menu li a::before {
    content: '▸';
    position: absolute;
    left: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #daa520;
}

.sidebar-menu li a:hover::before,
.sidebar-menu li a.active::before {
    opacity: 1;
}

/* Yearly List Styles */
.sidebar-yearly-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.sidebar-yearly-list::-webkit-scrollbar {
    width: 6px;
}

.sidebar-yearly-list::-webkit-scrollbar-track {
    background: rgba(218, 165, 32, 0.1);
}

.sidebar-yearly-list::-webkit-scrollbar-thumb {
    background: rgba(218, 165, 32, 0.4);
    border-radius: 3px;
}

.sidebar-yearly-list::-webkit-scrollbar-thumb:hover {
    background: rgba(218, 165, 32, 0.6);
}

.sidebar-yearly-list li {
    border-bottom: 1px dotted #daa520;
}

.sidebar-yearly-list li:last-child {
    border-bottom: none;
}

.sidebar-yearly-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #5d4037;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sidebar-yearly-list li a:hover {
    background: rgba(218, 165, 32, 0.1);
    padding-left: 25px;
}

.year-label {
    font-weight: 500;
}

.change-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.change-badge.positive {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.change-badge.negative {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.sidebar-footer-link {
    text-align: center;
    padding: 16px 20px;
    background: rgba(218, 165, 32, 0.05);
    border-top: 1px dotted #daa520;
}

.sidebar-footer-link a {
    color: #b8860b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-footer-link a:hover {
    color: #daa520;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .gold-sidebar {
        margin-bottom: 2rem;
    }
    
    .sidebar-yearly-list {
        max-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .sidebar-title {
        font-size: 1rem;
        padding: 14px 16px;
    }
    
    .sidebar-title-highlight {
        font-size: 0.95rem;
        padding: 10px 16px;
    }
    
    .sidebar-menu li a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .sidebar-yearly-list li a {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
