html {
    font-size: 16px;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f4f6f8;
    color: #1f2937;
    font-family: Arial, "Segoe UI", sans-serif;
}

/* =========================
   Header
   ========================= */

.family-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .family-header .navbar {
        min-height: 72px;
    }

.family-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937 !important;
    text-decoration: none;
    padding: 5px 0;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #2563eb;
    font-size: 25px;
}

.family-brand strong {
    display: block;
    font-size: 19px;
    line-height: 1.2;
}

.family-brand small {
    display: block;
    color: #6b7280;
    font-size: 11px;
    margin-top: 3px;
}


/* =========================
   Main menu
   ========================= */

.family-menu {
    margin-right: 30px;
    gap: 5px;
}

    .family-menu .nav-link {
        color: #374151 !important;
        border-radius: 10px;
        padding: 9px 13px !important;
        font-weight: 500;
        transition: 0.2s;
    }

        .family-menu .nav-link:hover {
            background: #eff6ff;
            color: #2563eb !important;
        }


/* =========================
   User area
   ========================= */

.family-user {
    display: flex;
    align-items: center;
}

    .family-user .navbar-nav {
        align-items: center;
    }

    .family-user .nav-link {
        color: #374151 !important;
    }


/* =========================
   Main content
   ========================= */

main {
    min-height: calc(100vh - 150px);
}


/* =========================
   Footer
   ========================= */

.family-footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    margin-top: 30px;
    padding: 18px 0;
    color: #6b7280;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

    .footer-content strong {
        color: #374151;
        margin-left: 8px;
    }

    .footer-content span {
        color: #9ca3af;
    }


/* =========================
   Buttons
   ========================= */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.15rem white, 0 0 0 0.25rem rgba(37, 99, 235, 0.35);
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 767px) {

    .family-header .navbar {
        min-height: 64px;
    }

    .family-menu {
        margin-right: 0;
        margin-top: 10px;
        gap: 0;
    }

    .family-user {
        margin-top: 8px;
        padding-bottom: 8px;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
.footer-version {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    font-size: 12px;
    color: #6b7280;
}

    .footer-version span:last-child {
        font-weight: 600;
    }
