/* Dashboard Styles */

.dashboard-container {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.dashboard-header .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.dash-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.dash-card.wide {
    grid-column: 1 / -1;
}

.card-header {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    color: var(--accent-color);
}

/* Storage Visual */
.storage-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.storage-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.big-stat {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.sub-stat {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #a18cd1);
    border-radius: 4px;
}

.storage-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Stat Grid for Counts */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* AI Stats */
.ai-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.badge {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge.secondary {
    background: rgba(161, 140, 209, 0.2);
    color: #a18cd1;
}

/* System Stats */
.sys-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sys-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.sys-row>span:first-child {
    width: 70px;
    color: var(--text-secondary);
}

.mini-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.mini-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
}

.sys-info-text {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .dash-card.wide {
        grid-column: span 1;
    }
}
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-secondary);
    text-align: center;
}

.error-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.error-state h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.error-state button {
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}
