/* Parent Dashboard Styles */
:root {
    --dash-sidebar-w: 260px;
    --dash-header-h: 80px;
    --dash-bg: #F1F5F9;
}

body {
    background-color: var(--dash-bg);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
    width: var(--dash-sidebar-w);
    background: white;
    border-right: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.dash-logo {
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition-base);
}

.dash-nav-item:hover, .dash-nav-item.active {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dash-nav-icon {
    font-size: 1.25rem;
}

.dash-user {
    margin-top: auto;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-magic);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* Main Content */
.dash-main {
    flex: 1;
    margin-left: var(--dash-sidebar-w);
    padding: var(--space-2xl);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.dash-title h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.dash-date {
    color: var(--text-muted);
}

/* Dashboard Grid */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.dash-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.card-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Kids Profile List */
.kids-list {
    display: flex;
    gap: var(--space-lg);
}

.kid-profile {
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.kid-profile:hover {
    transform: translateY(-5px);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-medium);
    border: 3px solid white;
    position: relative;
}

.profile-avatar.luna-theme { background: var(--luna-secondary); }
.profile-avatar.cosmo-theme { background: var(--cosmo-secondary); }

.kid-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.add-kid {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    border: 2px dashed var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Stats */
.stat-big {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary);
}

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

/* Progress Bars */
.progress-item {
    margin-bottom: var(--space-md);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-track {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
}

@media (max-width: 1024px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .card-wide {
        grid-column: span 1;
    }
}
