body {
    background: #f4f6f9;
}

.admin-body {
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar .nav-link {
    border-radius: 8px;
}

.sidebar .nav-link.active {
    background: #0d6efd !important;
}

.stat-card .fs-2 {
    line-height: 1.2;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d6efd 100%);
}

.auth-card {
    border: none;
    border-radius: 16px;
}

.hero-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d6efd 100%);
    color: #fff;
    padding: 5rem 0;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-size: 1.5rem;
}

.tree-container {
    overflow-x: auto;
    padding: 1rem;
}

.tree, .tree ul {
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
}

.tree > li {
    padding-left: 0;
}

.tree ul {
    margin-left: 0.5rem;
    border-left: 2px solid #dee2e6;
}

.tree li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
}

.tree li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 1rem;
    height: 2px;
    background: #dee2e6;
}

.tree-node {
    display: inline-block;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.message-list .list-group-item.unread {
    background: #f0f7ff;
    border-left: 3px solid #0d6efd;
}

.relation-badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: #fff;
}

.bg-pink {
    background-color: #d63384 !important;
    color: #fff;
}

.family-member-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.family-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.family-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.tree-node .relation-badge {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: static;
    }
}
