/* Dashboard Animation Styles */
.dashboard-animation {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 217, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.dashboard-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 217, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-user {
    width: 40px;
    height: 40px;
    background: var(--dutch-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.dashboard-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: calc(100% - 80px);
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 217, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.card-large {
    grid-column: span 2;
}

.card-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.card-value {
    color: var(--dutch-gold);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out;
}

.card-label {
    color: #ffffff;
    font-size: 0.8rem;
    opacity: 0.8;
}

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

/* Chart Animation */
.chart-container {
    height: 120px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chart-bar {
    background: linear-gradient(180deg, var(--dutch-gold) 0%, #ffed4e 100%);
    border-radius: 4px 4px 0 0;
    width: 20px;
    position: relative;
    animation: growUp 1.5s ease-out;
}

.chart-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.chart-bar:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.chart-bar:nth-child(4) { height: 90%; animation-delay: 0.4s; }
.chart-bar:nth-child(5) { height: 50%; animation-delay: 0.5s; }

@keyframes growUp {
    from { height: 0; }
    to { height: var(--target-height); }
}

/* Progress Bars */
.progress-container {
    margin-top: 1rem;
}

.progress-item {
    margin-bottom: 0.75rem;
}

.progress-label {
    color: #ffffff;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dutch-gold) 0%, #ffed4e 100%);
    border-radius: 4px;
    animation: fillProgress 2s ease-out;
}

.progress-fill:nth-child(1) { width: 85%; }
.progress-fill:nth-child(2) { width: 60%; }

@keyframes fillProgress {
    from { width: 0; }
    to { width: var(--target-width); }
}

/* Map Placeholder */
.map-placeholder {
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dutch-gold);
    font-size: 2rem;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Activity List */
.activity-list {
    margin-top: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideIn 0.5s ease-out;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 8px;
    height: 8px;
    background: var(--dutch-gold);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.activity-text {
    color: #ffffff;
    font-size: 0.8rem;
    opacity: 0.9;
}

.activity-time {
    color: var(--dutch-gold);
    font-size: 0.7rem;
    margin-left: auto;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-animation {
        max-width: 100%;
        height: 350px;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .card-large {
        grid-column: span 1;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 80px;
    }
    
    .chart-bar {
        width: 15px;
    }
}

/* Loading Animation */
.dashboard-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 217, 0, 0.3);
    border-top: 3px solid var(--dutch-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #ffffff;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}


