/* 🌐 Estilo global */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* 🧱 Containers */
.container {
    padding: 1rem 1.5rem 2rem;
    max-width: 900px;
    margin: auto;
}

/* 🔝 Topo do site */
header {
    background-color: #005b8f;
    color: white;
    padding: 1rem;
    text-align: center;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #005b8f;
    padding: 0.5rem 1rem;
    height: 50px;
    color: white;
}

/* Estilo específico para logout na barra superior */
.topbar .logout-button .btn-link {
    font-weight: 500;
}

/* 🧭 Logo e texto */
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 30px;
}

.logo-text {
    font-weight: bold;
    font-size: 18px;
}

/* 🍔 Menu hamburguer */
.menu-toggle {
    font-size: 24px;
    cursor: pointer;
}

.menu-section-title {
    color: white;
    font-weight: normal;
    margin-bottom: 8px;
}

/* 👤 Saudação do usuário */
.user-greeting {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 14px;
    gap: 4px;
}

.user-greeting a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.user-greeting a:hover {
    color: #ffd700;
    text-decoration: none;
}

/* 📋 Menu lateral */
.side-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background-color: #004570;
    width: 200px;
    padding: 1rem;
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu ul li {
    margin-bottom: 10px;
}

.side-menu ul li a {
    color: white;
    text-decoration: none;
}

.side-menu form .btn-link {
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    padding: 0;
    margin: 0;
}

.side-menu form .btn-link:hover {
    color: #ffd700;
    text-decoration: none;
}

/* 🔘 Botão estilo link */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: white;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:hover {
    color: #ffd700;
    text-decoration: none;
}

/* 🎠 Carrossel Swiper */
.swiper {
    width: 100%;
    padding-bottom: 30px;
}

.swiper-slide img {
    width: 100%;
    border-radius: 8px;
}

/* 🔗 Links gerais */
.links {
    margin-top: 2rem;
}

.links a {
    display: inline-block;
    margin-right: 1rem;
    color: #005b8f;
    text-decoration: none;
    font-weight: bold;
}

.links a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    footer {
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .container {
        max-width: 1100px;
        font-size: 1.05rem;
    }

    .topbar .logo-text {
        font-size: 1.2rem;
    }

    .user-greeting {
        font-size: 1rem;
    }
}

@media (min-width: 1441px) {
    .container {
        max-width: 1300px;
        font-size: 1.1rem;
    }

    .topbar {
        height: 70px;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .menu-toggle {
        font-size: 28px;
    }

    .user-greeting {
        font-size: 1.1rem;
    }
}

/* Esconde o texto extra em telas menores */
.desktop-extra {
  display: none;
}

@media (min-width: 768px) {
  .desktop-extra {
    display: inline;
  }
}

.greeting-text {
    font-weight: 500;
}

.logout-button form {
    display: inline-block;
}

.logout-button button {
    font-size: 0.85rem;
    padding: 4px 8px;
    margin-top: 2px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.logout-button button:hover {
    background-color: #c9302c;
}
