@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto';
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Estilos Gerais */
:root {
    --primary-color: #4baec5; /* Cor principal alterada */
    --secondary-color: #3a8ba1; /* Tom mais escuro para hover/efeitos */
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* Header */
.header {
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color); /* Cor aplicada */
    box-shadow: var(--shadow);
    z-index: 1000;
}

.footer {
    background-color: #4baec5;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white; /* Texto branco para melhor contraste */
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav ul li a {
    text-decoration: none;
    color: white; /* Texto branco para melhor contraste */
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav ul li a:hover {
    color: white;
    opacity: 0.8;
}

/* Efeito de sublinhado no hover */
.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
}

.nav ul li a:hover::after {
    width: 100%;
}

.nav button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white; /* Ícone branco */
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color); /* Cor aplicada */
    box-shadow: var(--shadow);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar button {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white; /* Ícone branco */
    margin-bottom: 2rem;
}

.sidebar .logo {
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white; /* Texto branco */
    text-decoration: none;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar ul li a {
    text-decoration: none;
    color: white; /* Texto branco */
    font-weight: 500;
    transition: all 0.3s;
    display: block;
    padding: 0.5rem 0;
    position: relative;
}

.sidebar ul li a:hover {
    opacity: 0.8;
}

/* Efeito de sublinhado no hover para sidebar */
.sidebar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
}

.sidebar ul li a:hover::after {
    width: 100%;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* Estilo para links ativos */
.nav ul li a.active,
.sidebar ul li a.active {
    font-weight: bold;
}

.nav ul li a.active::after,
.sidebar ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

/* Responsivo */
@media (max-width: 768px) {
    .nav ul {
        display: none;
    }
    
    .nav button {
        display: block;
    }
    
}


.btn-primary {
    background-color: #4baec5;
    border-color: #4baec5;
}