/* ===== Fontes e cores ===== */
:root {
    --primary-color: #4a90e2;
    --bg-color: #ffffff;
    --text-color: #333;
    --menu-hover: #e6f0ff;
}

/* ===== Reset básico ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Corpo ===== */
body {
    background-color: #f5f5f5;
    color: var(--text-color);
    min-height: 100vh;
}

/* ===== Menu Toggle no canto ===== */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    height: 4px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Menu flutuante ===== */
nav.menu {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 200px;
    background-color: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(0);
    transform-origin: top right;
    transition: transform 0.3s ease;
    z-index: 1000;
}

nav.menu.active {
    transform: scale(1);
}

nav.menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

nav.menu ul li {
    border-bottom: 1px solid #eee;
}

nav.menu ul li:last-child {
    border-bottom: none;
}

nav.menu ul li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}

nav.menu ul li a:hover {
    background-color: var(--menu-hover);
    color: var(--primary-color);
}

/* ===== Toggle animado ===== */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
