/* ═══════════════════════════════════════════════════════════════════════════════
   MGraph HTML Graph - Render UI - Dashboard Styles
   v0.2.0 - Consolidated from v0.1.x
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Dashboard Layout */
.dashboard {
    min-height: 100vh;
    padding: var(--spacing-xl) var(--spacing-md);
}

.dashboard-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: white;
}

.dashboard-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Feature Cards Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.feature-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.8em;
}

.feature-card h3 {
    font-size: 1.4em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.feature-card p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.feature-card .btn {
    width: 100%;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    color: white;
}

.stat-card .stat-value {
    font-size: 2em;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: var(--spacing-xs);
}

/* Version Info */
.version-info {
    text-align: center;
    margin-top: var(--spacing-xl);
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
}

.version-info a {
    color: white;
    text-decoration: underline;
}

/* API Status */
.api-status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.85em;
    color: white;
}

.api-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
}

.api-status-dot.error {
    background: var(--color-error);
}

.api-status-dot.loading {
    background: var(--color-warning);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
