/* Parent command center, Family, Learning hub, Records, child profile */

.command-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.cc-card {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cc-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-card h3 i {
    color: #b59c61;
}

.cc-card p {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 14px;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #b59c61;
    text-decoration: none;
}

.cc-btn:hover {
    text-decoration: underline;
}

.cc-encouragement {
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border-color: #f5e6d8;
}

.page-intro h1 {
    font-size: 26px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.page-intro p {
    color: #718096;
    font-size: 15px;
    max-width: 640px;
    line-height: 1.5;
    margin-bottom: 24px;
}

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

.gw-hub-card {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.gw-hub-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #e8dfd0;
}

.gw-hub-card .gw-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fff5f2;
    color: #b59c61;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.gw-hub-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.gw-hub-card p {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

.gw-muted {
    font-size: 13px;
    color: #a0aec0;
    margin-top: 12px;
}

.family-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 960px) {
    .family-layout {
        grid-template-columns: 1fr;
    }
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.child-tile {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s ease;
}

.child-tile:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.child-tile h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.child-tile span {
    font-size: 13px;
    color: #718096;
}

.family-side-card {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    padding: 20px;
}

.family-side-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.family-side-card a {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #b59c61;
    text-decoration: none;
}

.records-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.records-section {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    padding: 22px 24px;
}

.records-section h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.records-section h2 i {
    color: #b59c61;
}

.records-section p {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

.child-profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.child-profile-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.child-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.child-profile-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: #fff5f2;
    color: #8b7355;
    border: 1px solid #f0e6d8;
}

.child-profile-actions a:hover {
    background: #fff;
}

.child-overview-card {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    padding: 24px;
}

.child-overview-card h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-row .stat {
    min-width: 120px;
}

.stat-row .stat strong {
    display: block;
    font-size: 22px;
    color: #2d3748;
}

.stat-row .stat span {
    font-size: 13px;
    color: #718096;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    color: #718096;
}

.empty-state button {
    margin-top: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #b59c61;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

.empty-state button:hover {
    opacity: 0.92;
}
