/* Stars Dashboard Styles */
:root {
    --neon-green: #39FF14;
    --neon-orange: #FF7F11;
    --alert-red: #FF3B30;
    --dark-bg: #121212;
    --dark-card: #1E1E1E;
    --light-bg: #F5F5F5;
    --light-card: #FFFFFF;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --border-radius: 12px;
    --glow-intensity: 0 0 20px;
    --site-green: #28a745;
}

/* Theme Variables - Use site's existing data-theme system */
body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

[data-theme="dark"] body,
body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* Navigation - Match main site styling exactly */
#header {
    background-color: #fff;
}

#header .navbar-brand {
    font-size: 26px;
}

/* Ensure navbar brand matches main site exactly */
.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0 !important;
}

#header .nav-link {
    padding: 13px 16px;
    color: #666;
    text-transform: uppercase;
    font-size: 15px;
}

#header .nav-link:hover {
    background: none;
    color: #54be73;
}

#header .nav-link:focus {
    background: none;
    color: #54be73;
}

#header .active {
    background: none;
    color: #54be73;
}

/* Navbar - Match main site exactly */
.navbar {
    background: white !important;
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure navbar has same height as main site */
.navbar-expand-md .navbar-nav .nav-link {
    padding-right: 16px;
    padding-left: 16px;
    padding-top: 13px;
    padding-bottom: 13px;
}

[data-theme="dark"] .navbar,
body.dark-theme .navbar {
    background: var(--dark-card) !important;
    border-bottom: 1px solid #404040;
}

[data-theme="dark"] #header,
body.dark-theme #header {
    background-color: var(--dark-card);
}

.navbar-brand {
    color: #000 !important;
}

[data-theme="dark"] .navbar-brand,
body.dark-theme .navbar-brand {
    color: var(--text-light) !important;
}

.nav-link {
    color: #000 !important;
}

[data-theme="dark"] .nav-link,
body.dark-theme .nav-link {
    color: var(--text-light) !important;
}

.nav-link.active {
    color: var(--site-green) !important;
    font-weight: 600;
}

[data-theme="dark"] .nav-link.active,
body.dark-theme .nav-link.active {
    color: var(--neon-green) !important;
}

/* Dark mode toggle styling - Match main site exactly */
.dark-mode-toggle {
    position: relative;
    margin-left: 2rem;
    /* Add spacing between EcoHub brand and toggle */
}

.dark-mode-toggle .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border-color: #6c757d;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle .btn:hover {
    background: var(--site-green);
    color: white;
    border-color: var(--site-green);
}

[data-theme="dark"] .dark-mode-toggle .btn,
body.dark-theme .dark-mode-toggle .btn {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

[data-theme="dark"] .dark-mode-toggle .btn:hover,
body.dark-theme .dark-mode-toggle .btn:hover {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
}



/* Dashboard Layout */
.stars-dashboard {
    padding: 2rem 1rem;
    min-height: 100vh;
    margin-top: 0; /* Remove custom margin, let site handle navbar spacing */
}

.dashboard-title {
    color: var(--site-green);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .dashboard-title,
body.dark-theme .dashboard-title {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.dashboard-subtitle {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 1.1rem;
}

[data-theme="dark"] .dashboard-subtitle,
body.dark-theme .dashboard-subtitle {
    color: var(--text-light);
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--site-green);
    text-decoration: none;
}

[data-theme="dark"] .breadcrumb-item a,
body.dark-theme .breadcrumb-item a {
    color: var(--neon-orange);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

[data-theme="dark"] .breadcrumb-item.active,
body.dark-theme .breadcrumb-item.active {
    color: var(--text-light);
}

/* Stat Cards */
.stat-card {
    background: var(--light-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

[data-theme="dark"] .stat-card,
body.dark-theme .stat-card {
    background: var(--dark-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: #404040;
}

.stat-card:hover {
    border-color: var(--site-green);
    transform: translateY(-2px);
}

body.dark-theme .stat-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--site-green);
}

body.dark-theme .stat-icon {
    color: var(--neon-green);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: var(--text-dark);
}

body.dark-theme .stat-content h3 {
    color: var(--neon-orange);
}

.stat-content p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    color: var(--text-dark);
}

body.dark-theme .stat-content p {
    color: var(--text-light);
}

/* Controls */
.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-controls input,
.filter-controls select {
    background: var(--light-card);
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

body.dark-theme .filter-controls input,
body.dark-theme .filter-controls select {
    background: var(--dark-card);
    border-color: #404040;
    color: var(--text-light);
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--site-green);
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
    outline: none;
}

body.dark-theme .filter-controls input:focus,
body.dark-theme .filter-controls select:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-neon-green {
    background: var(--site-green);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-neon-green:hover {
    background: #218838;
    transform: translateY(-2px);
    color: #fff;
}

body.dark-theme .btn-neon-green {
    background: var(--neon-green);
    color: #000;
}

body.dark-theme .btn-neon-green:hover {
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
    color: #000;
}

.btn-neon-orange {
    background: #fd7e14;
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-neon-orange:hover {
    background: #e96b00;
    transform: translateY(-2px);
    color: #fff;
}

body.dark-theme .btn-neon-orange {
    background: var(--neon-orange);
    color: #000;
}

body.dark-theme .btn-neon-orange:hover {
    box-shadow: 0 0 15px rgba(255, 127, 17, 0.5);
    color: #000;
}

/* Table Container */
.table-container {
    background: var(--light-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

[data-theme="dark"] .table-container,
body.dark-theme .table-container {
    background: var(--dark-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: #404040;
}

/* Inventory Table */
.inventory-table {
    margin: 0;
    width: 100%;
    color: var(--text-dark);
}

[data-theme="dark"] .inventory-table,
body.dark-theme .inventory-table {
    color: var(--text-light);
}

.inventory-table thead th {
    background: var(--site-green);
    color: #fff;
    font-weight: bold;
    padding: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-theme .inventory-table thead th {
    background: linear-gradient(135deg, var(--neon-green), #2ECC40);
    color: #000;
}

.inventory-table thead th:hover {
    background: #218838;
}

body.dark-theme .inventory-table thead th:hover {
    background: linear-gradient(135deg, #2ECC40, var(--neon-green));
}

.inventory-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #E0E0E0;
}

body.dark-theme .inventory-table tbody tr {
    border-bottom-color: #404040;
}

.inventory-table tbody tr:hover {
    background: rgba(40, 167, 69, 0.1);
}

body.dark-theme .inventory-table tbody tr:hover {
    background: rgba(57, 255, 20, 0.1);
}

.inventory-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
}

.status-primary {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.status-secondary {
    background: var(--neon-orange);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 127, 17, 0.5);
}

.status-recycling {
    background: var(--alert-red);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}

/* Item Icons */
.item-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: var(--neon-green);
}

/* Analytics Cards */
.analytics-card {
    background: var(--light-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
    height: 100%;
}

body.dark-theme .analytics-card {
    background: var(--dark-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: #404040;
}

.analytics-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: bold;
}

body.dark-theme .analytics-card h4 {
    color: var(--neon-orange);
}

.analytics-card:hover {
    border-color: var(--site-green);
    transform: translateY(-2px);
}

body.dark-theme .analytics-card:hover {
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(255, 127, 17, 0.3);
}

/* Savings Indicator */
.savings-indicator {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--site-green);
}

body.dark-theme .savings-indicator {
    border-top-color: var(--neon-green);
}

.savings-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--site-green);
}

body.dark-theme .savings-amount {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

/* Modal Styles */
.modal-content {
    background: var(--light-card);
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
}

body.dark-theme .modal-content {
    background: var(--dark-card);
    color: var(--text-light);
    border-color: #404040;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

body.dark-theme .modal-header {
    border-bottom-color: #404040;
}

.modal-title {
    color: var(--text-dark);
    font-weight: bold;
}

body.dark-theme .modal-title {
    color: var(--neon-green);
}

/* Action Buttons in Table */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin: 0 0.1rem;
}

.btn-success {
    background: var(--neon-green);
    border-color: var(--neon-green);
    color: #000;
}

.btn-warning {
    background: var(--neon-orange);
    border-color: var(--neon-orange);
    color: #000;
}

.btn-danger {
    background: var(--alert-red);
    border-color: var(--alert-red);
}

/* Animations */
@keyframes pulse {
    0% { transform: translateY(-2px) scale(1); }
    50% { transform: translateY(-2px) scale(1.05); }
    100% { transform: translateY(-2px) scale(1); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--neon-green); }
    50% { box-shadow: var(--glow-intensity) var(--neon-green); }
}

/* Theme Toggle */
#theme-toggle {
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: var(--glow-intensity) var(--neon-green);
}

/* Fullscreen functionality removed */

/* Tooltips */
.tooltip {
    background: var(--dark-card);
    color: var(--text-light);
    border: 1px solid var(--neon-green);
    border-radius: var(--border-radius);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .inventory-table {
        min-width: 800px;
    }
    
    /* Fullscreen functionality removed */
}

@media (max-width: 576px) {
    .stars-dashboard {
        padding: 1rem 0.5rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    /* Fullscreen functionality removed */
}

/* Fullscreen functionality removed */

/* How to Use This Tool Section */
.how-to-use-card {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.how-to-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.how-to-header h3 {
    color: var(--neon-green);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.how-to-header h3 i {
    margin-right: 0.5rem;
    color: var(--neon-orange);
}

.how-to-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.how-to-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.how-to-section {
    margin-bottom: 1.5rem;
}

.how-to-section h4 {
    color: var(--neon-orange);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.how-to-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-to-section li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
}

.how-to-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-weight: bold;
}

.how-to-section strong {
    color: var(--neon-green);
    font-weight: 600;
}

/* Status Guide */
.status-guide {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.status-item span:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    flex: 1;
}

/* Pro Tips */
.how-to-tips {
    background: rgba(255, 127, 17, 0.1);
    border: 1px solid rgba(255, 127, 17, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.how-to-tips h4 {
    color: var(--neon-orange);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tip-item i {
    color: var(--neon-orange);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.tip-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Toggle Animation */
#how-to-toggle {
    transition: transform 0.3s ease;
}

#how-to-toggle.rotated {
    transform: rotate(180deg);
}

/* Dark theme adjustments */
[data-theme="dark"] .how-to-use-card,
body.dark-theme .how-to-use-card {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(57, 255, 20, 0.4);
}

[data-theme="dark"] .how-to-tips,
body.dark-theme .how-to-tips {
    background: rgba(255, 127, 17, 0.15);
    border-color: rgba(255, 127, 17, 0.4);
}

/* Smart Insights Panel */
.insights-panel {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.insights-panel h3 {
    color: var(--neon-green);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.insight-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: slideInInsight 0.5s ease-out;
}

@keyframes slideInInsight {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.insight-success {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.insight-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.insight-info {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.insight-achievement {
    background: rgba(255, 127, 17, 0.1);
    border: 1px solid rgba(255, 127, 17, 0.3);
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

.insight-message {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

.insight-action-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.insight-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(2px);
}

/* KPI Update Animation */
.kpi-updating {
    animation: kpiPulse 0.6s ease-in-out;
}

@keyframes kpiPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #39FF14; }
    100% { transform: scale(1); }
}

/* Enhanced notification styles */
.notification {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.alert-success {
    background: rgba(57, 255, 20, 0.9);
    color: #000;
    border-color: #39FF14;
}

.notification.alert-warning {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    border-color: #FFC107;
}

.notification.alert-info {
    background: rgba(0, 123, 255, 0.9);
    color: #fff;
    border-color: #007bff;
}

/* Dark theme adjustments for insights */
[data-theme="dark"] .insights-panel,
body.dark-theme .insights-panel {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(57, 255, 20, 0.4);
}

/* Fullscreen functionality removed */

/* Developer Note */
.developer-note {
    background: rgba(255, 127, 17, 0.1);
    border: 1px solid rgba(255, 127, 17, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.developer-note h4 {
    color: var(--neon-orange);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.developer-note p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.developer-note p:last-child {
    margin-bottom: 0;
}

.developer-note strong {
    color: var(--neon-green);
    font-weight: 600;
}

.enjoy-note {
    font-size: 1rem !important;
    font-weight: 600;
    color: var(--neon-green) !important;
    margin-top: 1rem !important;
}

/* Scroll Down Arrow */
.scroll-arrow {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-text {
    color: var(--neon-green);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -5px;
}

.arrow-container i {
    color: var(--neon-green);
    font-size: 1rem;
    animation: arrowFloat 1.5s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.arrow-container i:nth-child(1) {
    animation-delay: 0s;
    opacity: 0.4;
}

.arrow-container i:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.7;
}

.arrow-container i:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 1;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes arrowFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(5px);
        opacity: 1;
    }
}

/* Hide scroll arrow when user has scrolled */
.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

/* Dark theme adjustments */
[data-theme="dark"] .developer-note,
body.dark-theme .developer-note {
    background: rgba(255, 127, 17, 0.15);
    border-color: rgba(255, 127, 17, 0.4);
}

/* Mobile responsiveness for insights */
@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .insight-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .insight-icon {
        font-size: 2rem;
    }
    
    .scroll-arrow {
        bottom: 20px;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }
    
    .arrow-container i {
        font-size: 0.9rem;
    }
    
    .developer-note {
        padding: 1rem;
    }
    
    .developer-note p {
        font-size: 0.85rem;
    }
}
/*
 Enhanced Analytics Design */

/* KPI Context Cards */
.kpi-context-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.context-card {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.context-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.context-success {
    border-left: 4px solid var(--neon-green);
}

.context-success:hover {
    border-color: var(--neon-green);
    box-shadow: 0 8px 25px rgba(57, 255, 20, 0.2);
}

.context-warning {
    border-left: 4px solid var(--neon-orange);
}

.context-warning:hover {
    border-color: var(--neon-orange);
    box-shadow: 0 8px 25px rgba(255, 127, 17, 0.2);
}

.context-info {
    border-left: 4px solid #007bff;
}

.context-info:hover {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.context-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.context-content {
    flex: 1;
}

.context-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.context-value {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.3;
}

/* Enhanced Chart Cards */
.enhanced-chart-card {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-orange), var(--neon-green));
    opacity: 0.6;
}

.enhanced-chart-card:hover {
    border-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 12px 40px rgba(57, 255, 20, 0.1);
    transform: translateY(-2px);
}

/* Chart Headers */
.chart-title {
    color: var(--neon-orange);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Chart Containers */
.chart-container {
    position: relative;
    margin-bottom: 1rem;
}

.donut-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Donut Center Content */
.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.center-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
    line-height: 1;
    animation: centerPulse 3s ease-in-out infinite;
}

.center-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

@keyframes centerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Chart Summaries */
.chart-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 3px solid var(--neon-green);
}

.summary-highlight {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.highlight-green {
    color: var(--neon-green);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.highlight-orange {
    color: var(--neon-orange);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 127, 17, 0.4);
}

.summary-trend {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trend-up {
    color: var(--neon-green);
    animation: trendBounce 2s ease-in-out infinite;
}

.trend-down {
    color: var(--alert-red);
    transform: rotate(180deg);
}

@keyframes trendBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Distribution Legend */
.distribution-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.legend-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.legend-value {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

/* Chart Sizing */
#usage-waste-chart {
    height: 320px !important;
}

#reuse-distribution-chart {
    height: 280px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kpi-context-cards {
        grid-template-columns: 1fr;
    }
    
    .context-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .context-icon {
        font-size: 2rem;
    }
    
    .chart-title {
        font-size: 1rem;
    }
    
    .center-value {
        font-size: 2rem;
    }
    
    .distribution-legend {
        grid-template-columns: 1fr;
    }
    
    #usage-waste-chart {
        height: 250px !important;
    }
    
    #reuse-distribution-chart {
        height: 220px !important;
    }
}