/* Modern Dashboard Styles */

  #Dashboard-Link {
      color: white !important;
    }
    

/* Dashboard Navigation */
.dashboard-nav {
    background: linear-gradient(135deg, rgba(6, 9, 18, 0.9) 0%, rgba(15, 18, 27, 0.9) 100%);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-title {
    color: rgba(255, 102, 0, 0.9);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-tab.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Dashboard Sections */
.dashboard-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.dashboard-section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9f1c, #ffd166);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-card.primary::before {
    background: linear-gradient(90deg, #ff9f1c, #ffd166);
}

.stat-card.success::before {
    background: linear-gradient(90deg, #ff9f1c, #ff6b1a);
}

.stat-card.warning::before {
    background: linear-gradient(90deg, #ffd166, #ff9f1c);
}

.stat-card.info::before {
    background: linear-gradient(90deg, #ff6b1a, #ff9f1c);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.stat-content p {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 10px;
}

.stat-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.stat-change.positive {
    background: #c6f6d5;
    color: #22543d;
}

/* Activity Feed */
.activity-feed {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.activity-feed h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.activity-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.activity-content p {
    margin: 0;
    font-weight: 600;
    color: #2d3748;
}

.activity-time {
    font-size: 0.9rem;
    color: #718096;
}

/* Tier Distribution */
.tier-distribution {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.tier-distribution h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.tier-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tier-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #ff9f1c;
}

.tier-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tier-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.tier-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff9f1c;
    margin-bottom: 5px;
}

.tier-percentage {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
}

/* User Activity */
.user-activity {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.user-activity h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.activity-stat {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #ff9f1c 0%, #ff6b1a 100%);
    border-radius: 15px;
    color: white;
}

.activity-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.activity-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.resource-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.resource-card.mccc {
    border-top: 4px solid #f6e05e;
}

.resource-card.fuel {
    border-top: 4px solid #f56565;
}

.resource-card.gas {
    border-top: 4px solid #4299e1;
}

.resource-card.itc {
    border-top: 4px solid #9f7aea;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.resource-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.resource-icon {
    font-size: 2rem;
}

.resource-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.resource-stat:last-child {
    border-bottom: none;
}

.resource-stat .label {
    font-weight: 600;
    color: #718096;
}

.resource-stat .value {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

/* Interaction Overview */
.interaction-overview {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.interaction-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.summary-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #718096;
    margin-bottom: 15px;
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff9f1c;
    margin-bottom: 5px;
}

.summary-detail {
    font-size: 0.9rem;
    color: #718096;
}

/* Track Stats */
.track-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.track-overview {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.overview-stat {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ff9f1c 0%, #ffd166 100%);
    border-radius: 15px;
    color: white;
}

.overview-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.overview-label {
    font-size: 1rem;
    opacity: 0.9;
}

.track-engagement {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.track-engagement h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.engagement-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.engagement-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.engagement-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.engagement-label {
    font-size: 0.9rem;
    color: #718096;
}

/* Tier Info */
.tier-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.info-card p {
    color: #718096;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .nav-tabs {
        gap: 5px;
    }
    
    .nav-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tier-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .interaction-summary {
        grid-template-columns: 1fr;
    }
    
    .engagement-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .activity-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 20px 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-content h3 {
        font-size: 2rem;
    }
    
    .tier-card {
        padding: 15px;
    }
    
    .resource-card {
        padding: 20px;
    }
}

/* Creator Live Telemetry Styles */
.telemetry-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.telemetry-overview {
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.telemetry-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.telemetry-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.telemetry-stat-card.primary {
    border-left-color: #00d4ff;
}

.telemetry-stat-card.success {
    border-left-color: #4caf50;
}

.telemetry-stat-card.warning {
    border-left-color: #ff9800;
}

.telemetry-stat-card.info {
    border-left-color: #2196f3;
}

.telemetry-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.telemetry-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.telemetry-content h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: bold;
    color: #00d4ff;
}

.telemetry-content p {
    margin: 0 0 8px 0;
    color: #aaa;
    font-size: 14px;
}

.telemetry-change {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.telemetry-change.positive {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.telemetry-change.negative {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.telemetry-tracks {
    background: rgba(255, 152, 0, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.tracks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tracks-header h3 {
    margin: 0;
    color: #ffa500;
}

.tracks-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-btn {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.4);
    color: #ffa500;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: rgba(255, 152, 0, 0.3);
    border-color: #ffa500;
}

#last-update {
    font-size: 12px;
    color: #aaa;
}

.tracks-list {
    max-height: 400px;
    overflow-y: auto;
}

.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.loading-spinner {
    font-size: 24px;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.telemetry-toggle {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.telemetry-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.telemetry-toggle:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .telemetry-container {
        grid-template-columns: 1fr;
    }
    
    .telemetry-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
