.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 1.5rem;
}

.edge-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
       #aaaaaa 0deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px rgba(66, 133, 244, 0.15),
        0 4px 16px rgba(255, 152, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: chartPulse 3s ease-in-out infinite;
}

@keyframes chartPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 8px 32px rgba(66, 133, 244, 0.15),
            0 4px 16px rgba(255, 152, 0, 0.1),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 12px 48px rgba(66, 133, 244, 0.25),
            0 6px 24px rgba(255, 152, 0, 0.15),
            inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

.edge-circle:hover {
    transform: scale(1.05);
    box-shadow: 
        0 16px 64px rgba(66, 133, 244, 0.25),
        0 8px 32px rgba(255, 152, 0, 0.15),
        inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.edge-circle::before {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 100%);
    border-radius: 50%;
    z-index: 1;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
}

body.dark-mode .edge-circle {
    box-shadow: 
        0 8px 32px rgba(66, 133, 244, 0.2),
        0 4px 16px rgba(255, 152, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .edge-circle:hover {
    box-shadow: 
        0 16px 64px rgba(66, 133, 244, 0.3),
        0 8px 32px rgba(255, 152, 0, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

body.dark-mode .edge-circle::before {
    background: linear-gradient(135deg, 
        rgba(17, 17, 17, 0.95) 0%,
        rgba(30, 30, 30, 0.98) 100%);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.circle-info {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.circle-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #4285F4, #FF9800, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.circle-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.dark-mode .circle-label {
    color: #aaa;
}

.legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    width: 100%;
}

.legend::-webkit-scrollbar {
    width: 6px;
}

.legend::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.legend::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4285F4, #FF9800);
    border-radius: 3px;
}

.legend::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5294ff, #ffa726);
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.875rem;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: slideInUp 0.4s ease-out backwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legend-item:nth-child(1) { animation-delay: 0.05s; }
.legend-item:nth-child(2) { animation-delay: 0.1s; }
.legend-item:nth-child(3) { animation-delay: 0.15s; }
.legend-item:nth-child(4) { animation-delay: 0.2s; }
.legend-item:nth-child(5) { animation-delay: 0.25s; }
.legend-item:nth-child(6) { animation-delay: 0.3s; }

.legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(66, 133, 244, 0.15),
        0 4px 12px rgba(255, 152, 0, 0.1);
    border-color: rgba(66, 133, 244, 0.3);
}

.legend-item span:last-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--darker);
}

.color {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    margin-right: 0.75rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.legend-item:hover .color {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.color.empty { 
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
}

body.dark-mode .legend-item {
    background: var(--glass-bg-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .legend-item:hover {
    border-color: rgba(66, 133, 244, 0.4);
    box-shadow: 
        0 8px 24px rgba(66, 133, 244, 0.2),
        0 4px 12px rgba(255, 152, 0, 0.15);
}

body.dark-mode .color.empty {
    background: linear-gradient(135deg, #424242, #616161);
}

.progress-container {
    margin-top: 0.5rem;
    width: 100%;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, 
        rgba(66, 133, 244, 0.08) 0%,
        rgba(255, 152, 0, 0.08) 50%,
        rgba(156, 39, 176, 0.08) 100%);
    border-radius: 24px;
    overflow: visible;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(66, 133, 244, 0.1);
    transition: all 0.3s ease;
}

.progress-bar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(66, 133, 244, 0.3),
        rgba(255, 152, 0, 0.3),
        rgba(156, 39, 176, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.progress-bar:hover {
    box-shadow: 
        inset 0 2px 12px rgba(0, 0, 0, 0.1),
        0 6px 24px rgba(66, 133, 244, 0.15),
        0 4px 16px rgba(255, 152, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #4285F4 0%,
        #FF9800 50%,
        #FFC107 100%);
    border-radius: 24px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(66, 133, 244, 0.3),
        0 2px 8px rgba(255, 152, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% {
        box-shadow: 
            0 4px 16px rgba(66, 133, 244, 0.3),
            0 2px 8px rgba(255, 152, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 6px 24px rgba(66, 133, 244, 0.4),
            0 3px 12px rgba(255, 152, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    animation: progressGlide 2.5s ease-in-out infinite;
}

@keyframes progressGlide {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 200%;
    }
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%);
    border-radius: 24px;
}

.progress-text {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    animation: progressTextPop 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes progressTextPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dark mode styles */
body.dark-mode .progress-bar {
    background: linear-gradient(135deg, 
        rgba(66, 133, 244, 0.12) 0%,
        rgba(255, 152, 0, 0.12) 50%,
        rgba(156, 39, 176, 0.12) 100%);
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(66, 133, 244, 0.15);
}

body.dark-mode .progress-bar::before {
    background: linear-gradient(135deg, 
        rgba(66, 133, 244, 0.4),
        rgba(255, 152, 0, 0.4),
        rgba(156, 39, 176, 0.4));
    opacity: 0.6;
}

body.dark-mode .progress-bar:hover {
    box-shadow: 
        inset 0 2px 12px rgba(0, 0, 0, 0.4),
        0 6px 24px rgba(66, 133, 244, 0.2),
        0 4px 16px rgba(255, 152, 0, 0.15);
}

.progress-controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.progress-controls button {
    padding: 5px 15px;
    border: none;
    background: #4ecdc4;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.progress-controls button:hover {
    background: #44a08d;
}

/* ===== Aspirant-Specific Styles ===== */

/* Phase Badge */
.phase-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* Phase Change Notification */
.phase-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 400px;
    animation: slideInUp 0.5s ease-out;
}

body.dark-mode .phase-notification {
    background: var(--card-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.phase-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.phase-notification-content i {
    font-size: 1.5rem;
    color: var(--primary);
}

.phase-notification-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.phase-notification-content p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.phase-notification-actions {
    display: flex;
    gap: 10px;
}

.phase-notification-actions .btn-primary,
.phase-notification-actions .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phase-notification-actions .btn-primary {
    background: var(--primary);
    color: white;
}

.phase-notification-actions .btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mode Toggle Section */
.mode-toggle-section {
    margin: 20px 0;
}

.mode-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.mode-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.dark-mode .mode-btn {
    background: var(--card-bg);
}

.mode-btn i {
    font-size: 1.5rem;
    color: var(--primary);
}

.mode-btn span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.mode-btn small {
    font-size: 0.85rem;
    opacity: 0.7;
}

.mode-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.2);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
}

.mode-btn.active span,
.mode-btn.active small,
.mode-btn.active i {
    color: white;
}

/* Subject Cards for UTME */
.subject-card.required {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(66, 133, 244, 0.1));
}

.subject-card .required-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.subject-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.subject-stats {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 8px;
}

/* PRB Leaderboard Card */
.leaderboard-card {
    min-height: 300px;
}

.leaderboard-histogram {
    margin-top: 20px;
}

.histogram-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: rgba(66, 133, 244, 0.05);
    border-radius: 8px;
}

body.dark-mode .histogram-container {
    background: rgba(66, 133, 244, 0.1);
}

.histogram-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.histogram-rank {
    width: 30px;
    font-weight: 600;
    color: var(--primary);
}

.histogram-name {
    flex: 1;
    font-weight: 500;
}

.histogram-fill {
    height: 24px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.histogram-score {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Field Hints */
.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .phase-notification {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .mode-selector {
        grid-template-columns: 1fr;
    }
}

/* PRB Histogram Styles - Beautifully Adaptive Light/Dark Mode */
.prb-histogram-wrapper {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 
                0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .prb-histogram-wrapper {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(17, 17, 17, 0.98));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 
                0 2px 8px rgba(0, 0, 0, 0.3);
}

.prb-chart-area {
    position: relative;
    height: 300px;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.5);
    transition: border-color 0.3s ease;
    overflow: visible;
}

body.dark-mode .prb-chart-area {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.prb-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 30px;
    width: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* gap: 40px; for better precision with the bar height */
    align-items: flex-end;
    padding-right: 10px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    min-height: 100%;
}

body.dark-mode .prb-y-axis {
    color: #94a3b8;
}

.prb-y-label {
    text-align: right;
    width: 100%;
}

.prb-bars-container {
    position: relative;
    height: 100%;
    margin-left: 50px;
    margin-right: 20px;
    overflow: visible;
}

.prb-x-axis {
    position: absolute;
    left: 50px;
    right: 20px;
    bottom: -30px;
    height: 30px;
}

.prb-bar {
    position: absolute;
    bottom: 0;
    max-height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(135deg, #4285F4, #3367D6);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: visible;
}

.prb-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 70%;
    height: 100%;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
    pointer-events: none;
    clip-path: inset(0 0 0 0 round 8px 8px 0 0);
}

@keyframes shimmer {
    0% { left: -50%; }
    25% { left: 25%; opacity: 1; }
    75% { left: 40%; opacity: 0; }
    100% { left: 100%; opacity: 0; }
}

.prb-bar:hover {
    transform: translateY(-6px) scaleY(1.05);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    filter: brightness(1.1);
}

body.dark-mode .prb-bar {
    background: linear-gradient(135deg, #5a9cff, #4285F4);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .prb-bar:hover {
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.prb-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 24px 0;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(156, 39, 176, 0.05));
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

body.dark-mode .prb-legend {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(156, 39, 176, 0.1));
    border-color: rgba(255, 255, 255, 0.08);
}

.prb-legend-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

body.dark-mode .prb-legend-title {
    color: #f1f5f9;
}

.prb-legend-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.prb-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.4);
}

body.dark-mode .prb-legend-item {
    color: #cbd5e0;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.prb-legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(66, 133, 244, 0.3);
}

body.dark-mode .prb-legend-item:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.4);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.prb-legend-color {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.prb-legend-item:hover .prb-legend-color {
    transform: scale(1.2);
}

.prb-quote-section {
    background: linear-gradient(135deg, #f0f4ff, #e8f0ff);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    border-left: 5px solid #4285F4;
    transition: all 0.3s ease;
}

body.dark-mode .prb-quote-section {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.05));
    border-color: rgba(66, 133, 244, 0.3);
}

.prb-quote-text {
    font-style: italic;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

body.dark-mode .prb-quote-text {
    color: #e2e8f0;
}

.prb-quote-author {
    text-align: right;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

body.dark-mode .prb-quote-author {
    color: #94a3b8;
}

.prb-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.prb-btn {
    padding: 11px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prb-btn-add {
    background: linear-gradient(135deg, #4285F4, #3367D6);
    color: white;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.prb-btn-add:hover {
    background: linear-gradient(135deg, #5a9cff, #4285F4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

body.dark-mode .prb-btn-add {
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.5);
}

body.dark-mode .prb-btn-add:hover {
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.6);
}

.prb-btn-primary {
    background: linear-gradient(135deg, #4285F4, #3367D6);
    color: white;
    border: none;
    padding: 13px 28px;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.prb-stats-badge {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(156, 39, 176, 0.08));
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 12px 24px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

body.dark-mode .prb-stats-badge {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.12), rgba(156, 39, 176, 0.12));
    border-color: rgba(255, 255, 255, 0.08);
}

.prb-stats-label {
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

body.dark-mode .prb-stats-label {
    color: #94a3b8;
}

.prb-stats-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
    transition: color 0.3s ease;
}

body.dark-mode .prb-stats-value {
    color: #f1f5f9;
}

.prb-filter-controls {
    display: flex;
    gap: 15px;
}

.prb-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(226, 232, 240, 0.3);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

body.dark-mode .prb-checkbox {
    color: #cbd5e0;
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.05);
}

.prb-checkbox:hover {
    background: rgba(226, 232, 240, 0.6);
}

body.dark-mode .prb-checkbox:hover {
    background: rgba(66, 133, 244, 0.1);
}

.prb-stats-container {
    display: flex;
    justify-content: space-around;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid rgba(226, 232, 240, 0.5);
    flex-wrap: wrap;
    gap: 20px;
    transition: border-color 0.3s ease;
}

body.dark-mode .prb-stats-container {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.prb-stat {
    text-align: center;
    min-width: 120px;
}

.prb-stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    transition: color 0.3s ease;
}

body.dark-mode .prb-stat-label {
    color: #94a3b8;
}

.prb-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #4285F4, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.prb-empty-state {
    text-align: center;
    padding: 60px 30px;
    color: #64748b;
    transition: all 0.3s ease;
}

body.dark-mode .prb-empty-state {
    color: #94a3b8;
}

.prb-empty-icon {
    font-size: 56px;
    color: rgba(226, 232, 240, 0.6);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

body.dark-mode .prb-empty-icon {
    color: rgba(255, 255, 255, 0.1);
}

.prb-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

body.dark-mode .prb-empty-title {
    color: #cbd5e0;
}

.prb-empty-text {
    font-size: 14px;
    margin-bottom: 28px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #64748b;
    transition: color 0.3s ease;
}

body.dark-mode .prb-empty-text {
    color: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prb-histogram-wrapper {
        padding: 18px;
    }

    .prb-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .prb-filter-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .prb-chart-area {
        height: 280px;
        margin-bottom: 50px;
    }
    
    .prb-bar {
        width: 40px !important;
    }
    
    .prb-x-label {
        font-size: 10px !important;
    }

    .prb-legend {
        gap: 15px;
        padding: 16px;
    }

    .prb-stats-container {
        padding-top: 20px;
        margin-top: 20px;
    }

    .prb-stat {
        min-width: 100px;
    }

    .prb-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .prb-histogram-wrapper {
        padding: 16px;
        border-radius: 12px;
    }

    .prb-legend {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 14px;
    }
    
    .prb-stats-container {
        flex-direction: column;
        gap: 16px;
        margin-top: 18px;
        padding-top: 18px;
    }

    .prb-stat {
        min-width: auto;
    }

    .prb-stat-label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .prb-stat-value {
        font-size: 18px;
    }

    .prb-quote-section {
        padding: 18px;
        margin-top: 18px;
    }

    .prb-quote-text {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .prb-quote-author {
        font-size: 12px;
    }

    .prb-chart-area {
        height: 250px;
    }

    .prb-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
        font-size: 12px;
    }

    .prb-controls {
        gap: 12px;
    }

    .prb-checkbox {
        font-size: 13px;
        padding: 6px 10px;
    }

    .prb-empty-state {
        padding: 40px 16px;
    }

    .prb-empty-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .prb-empty-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .prb-empty-text {
        font-size: 13px;
        margin-bottom: 20px;
    }
}