* {
    box-sizing: border-box;
}

body {
    background: #f7f9fc;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #dfe7f2;
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 24px;
}

.brand {
    font-size: 20px;
    font-weight: 700;
}

.topbar nav {
    align-items: center;
    display: flex;
    gap: 16px;
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 112px);
}

.sidebar {
    background: #102033;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 12px;
    width: 220px;
}

.sidebar a {
    border-radius: 6px;
    padding: 12px 14px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.app-content {
    flex: 1;
    padding: 32px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 32px;
    margin: 0 0 8px;
}

.page-header p {
    color: #5f6d7e;
    margin: 0;
}

.metric-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card {
    background: #ffffff;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    padding: 20px;
}

.metric-card span {
    color: #5f6d7e;
    display: block;
    font-size: 14px;
}

.metric-card strong {
    display: block;
    font-size: 34px;
    margin: 10px 0 4px;
}

.metric-card p {
    margin: 0;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-control {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    padding: 12px;
}

.btn-primary {
    background: #1769e0;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
    padding: 12px 16px;
}

.btn-primary:hover {
    background: #0f55ba;
}

.footer {
    align-items: center;
    background: #ffffff;
    border-top: 1px solid #dfe7f2;
    color: #5f6d7e;
    display: flex;
    min-height: 48px;
    padding: 0 24px;
}

.messages {
    margin-bottom: 16px;
}

.message {
    background: #e9f5ff;
    border: 1px solid #b9daf7;
    border-radius: 6px;
    padding: 12px;
}
body {
    background: #f4f7fb;
    color: #102033;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    margin: 0;
}

.site-shell {
    min-height: 100vh;
}

.topbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #dfe7f2;
    display: flex;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 28px;
}

.brand {
    align-items: center;
    color: #06214a;
    display: inline-flex;
    font-size: 22px;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0;
    text-decoration: none;
}

.brand img {
    height: 36px;
    object-fit: contain;
    width: 36px;
}

.brand span span {
    color: #08b39a;
}

.topbar-nav {
    align-items: center;
    display: flex;
    gap: 16px;
}

.user-pill {
    background: #eef8f6;
    border: 1px solid #c9eee8;
    border-radius: 999px;
    color: #064c46;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
}
.perfil-pill {
    background: #eef8f6;
    border: 1px solid #c9eee8;
    border-radius: 999px;
    color: #064c46;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
}

.logout-link {
    color: #06214a;
    font-weight: 700;
    text-decoration: none;
}

.logout-link:hover {
    color: #08b39a;
}

.topbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #dfe7f2;
    display: flex;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 28px;
}

.brand-link {
    align-items: center;
    color: #06214a;
    display: inline-flex;
    font-size: 22px;
    font-weight: 800;
    gap: 10px;
    line-height: 1;
    text-decoration: none;
}

.brand-mark {
    display: block;
    height: 38px;
    max-height: 38px;
    max-width: 38px;
    object-fit: contain;
    width: 38px;
}

.brand-name span {
    color: #08b39a;
}

.topbar-nav {
    align-items: center;
    display: flex;
    gap: 16px;
}

.user-pill {
    background: #eef8f6;
    border: 1px solid #c9eee8;
    border-radius: 999px;
    color: #064c46;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
}

.logout-link {
    color: #06214a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.logout-link:hover {
    color: #08b39a;
}

.perfil-link{
    background: white;
    color: #072F6B;
    font-size: 16dp;
}

@media (max-width: 760px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
    }

    .app-content {
        padding: 24px 16px;
    }
}
