/* Layout Global */
html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* layout.css - Estrutura Principal */

.topbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-text-main);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-primary-700);
    text-decoration: none;
}

.logo-text {
    display: none; /* Deixar apenas a imagem, ou se quiser, deixar o texto. O usuario ja tem a imagem. Vamos mostrar só a imagem bonita. */
}

.logo-img {
    height: 48px; /* Aumentado pra não ficar achatado */
    width: auto;
    object-fit: contain;
}

.logo:hover {
    color: var(--color-primary-700);
}

/* Navegação */
.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary-500);
}

.nav-link.active {
    color: var(--color-primary-600);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-500);
    transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
    padding: 0.5rem;
}

/* Footer */
.main-footer {
    background-color: white;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
}
.footer-links a:hover {
    color: var(--color-primary-600);
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg-card);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        gap: 1rem;
    }
    
    .main-nav.show {
        display: flex;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
}
