/* ===== GLOBAL POOLS DONUT CHART STYLES - MODIFIED FOR LARGER INNER CIRCLE ===== */

.global-pools-chart-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(30, 30, 46, 0.8) 0%, rgba(45, 45, 68, 0.6) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

[data-theme="light"] .global-pools-chart-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 250, 0.8) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.donut-chart-header {
    text-align: center;
    margin-bottom: 1rem;
}

.donut-chart-header .section-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.donut-chart-header .section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.donut-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.donut-chart-wrapper {
    position: relative;
    display: inline-block;
}

.donut-svg {
    width: 280px;
    height: 280px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.2));
    transition: filter 0.3s ease;
}

.donut-svg:hover {
    filter: drop-shadow(0 6px 16px rgba(0, 212, 255, 0.3));
}

/* Center text inside donut chart */
#donutCenterLabel {
    fill: var(--text-secondary);
}

#donutCenterValue {
    fill: var(--accent-primary);
}

[data-theme="light"] #donutCenterLabel {
    fill: #666;
}

[data-theme="light"] #donutCenterValue {
    fill: #00d4ff;
}


/* REMOVED ALL CENTER LOGO STYLES - NO LONGER NEEDED */

.donut-total-earnings {
    display: none; /* Hidden - now showing in center of donut */
    text-align: center;
    margin: 0.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

[data-theme="light"] .donut-total-earnings {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
}

.donut-total-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.donut-total-value {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-primary);
    text-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.donut-pool-legends {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.donut-pool-legend {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(20, 20, 30, 0.4) 100%);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .donut-pool-legend {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 240, 250, 0.9) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.donut-pool-legend:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 30, 0.6) 100%);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

[data-theme="light"] .donut-pool-legend:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 250, 1) 100%);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

.donut-pool-legend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--legend-color, #00d4ff);
    border-radius: 10px 10px 0 0;
}

.donut-legend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.donut-legend-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.donut-legend-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--legend-color, #00d4ff);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.donut-legend-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    line-height: 1.2;
}

.donut-legend-package {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

.donut-legend-progress {
    margin-bottom: 0.5rem;
}

.donut-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

[data-theme="light"] .donut-progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

.donut-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--legend-color, #00d4ff) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.donut-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.donut-legend-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.donut-legend-earned {
    color: var(--accent-success);
    font-weight: 700;
    font-family: var(--font-primary);
}

.donut-legend-ceiling {
    color: var(--text-secondary);
    opacity: 0.8;
}

.donut-legend-percentage {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.donut-chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-secondary);
}

.donut-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.donut-loading-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .global-pools-chart-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .donut-svg {
        width: 240px;
        height: 240px;
    }
    
    .donut-total-value {
        font-size: 1.5rem;
    }
    
    .donut-total-label {
        font-size: 0.8rem;
    }
    
    .donut-pool-legends {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(4, 1fr) !important;
        gap: 0.75rem !important;
        max-width: 100% !important;
    }
    
    .donut-pool-legend {
        padding: 0.6rem;
        min-width: auto;
        min-height: 80px;
    }
    
    .donut-legend-stats {
        display: none;
    }
    
    .donut-legend-package {
        display: none;
    }
    
    .donut-legend-title {
        font-size: 0.75rem;
    }
    
    .donut-legend-color-dot {
        width: 10px;
        height: 10px;
    }
    
    .donut-chart-header .section-title {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .donut-svg {
        width: 200px;
        height: 200px;
    }
    
    .donut-total-value {
        font-size: 1.3rem;
    }
    
    .donut-total-label {
        font-size: 0.75rem;
    }
    
    .donut-pool-legends {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(4, 1fr) !important;
        gap: 0.5rem !important;
        max-width: 100% !important;
    }
    
    .donut-pool-legend {
        padding: 0.5rem;
        min-width: auto;
        min-height: 70px;
    }
    
    .donut-legend-title {
        font-size: 0.7rem;
    }
    
    .donut-legend-color-dot {
        width: 8px;
        height: 8px;
    }
}