body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

nav {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1100;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 5px;
}

.hamburger-icon {
    color: rgb(0, 0, 0);
    font-size: 24px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #007BFF, #0056b3);
        overflow-y: scroll; /* Adiciona rolagem quando necessário */
        flex-direction: column;
        justify-content: flex-start; /* Alinha itens ao topo */
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        margin: 0;
        padding: 60px 0 30px 0; /* Adiciona espaço no topo e embaixo */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 5px 0;
        width: 80%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        font-size: 16px; /* Reduz tamanho da fonte */
        padding: 12px 15px;
        width: 100%;
    }

    .nav-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1200;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.menu-toggle.active {
    transform: rotate(90deg);
}

    /* Adiciona indicador de rolagem para mostrar que há mais conteúdo */
.nav-menu::after {
    content: '';
    display: block;
    height: 20px;
    width: 100%;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #007BFF, #0056b3);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateY(0);
    }

    nav ul li a {
        font-size: 1.2rem;
        padding: 15px 25px;
        display: block;
        text-align: center;
    }

    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    color: #007BFF;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 40px;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 80px;
    background-color: #007BFF;
}

.centered h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.form-container {
    background: white;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

input, select, textarea {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

input[type="file"] {
    padding: 10px;
    background-color: #f8f9fa;
}

input[type="range"] {
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e9ecef;
    border-radius: 4px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007BFF;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

button, .btn {
    background: #007BFF;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

button:hover, .btn:hover {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

table th {
    background-color: #007BFF;
    color: white;
    font-weight: 500;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:nth-child(even) {
    background-color: #f8f9fa;
}

table tr:hover {
    background-color: #f1f3f5;
}

.presentes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.presente-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.presente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.presente-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.presente-card h3 {
    margin: 15px 15px 10px;
    font-size: 1.2rem;
    color: #343a40;
}

.preco {
    color: #dc3545;
    font-weight: bold;
    margin: 0 15px 15px;
    font-size: 1.1rem;
}

.btn-link {
    display: block;
    background: #007BFF;
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    margin: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.chart-container {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    margin: 0 0 25px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    transition: all 0.3s;
}

#searchInput:focus {
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
    border-color: #007BFF;
}

.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    .form-container {
        padding: 20px;
        width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 8px 0;
    }
    
    .presentes-list {
        grid-template-columns: 1fr;
    }
    
    table th, table td {
        padding: 10px;
    }
    
    input, select, button {
        font-size: 14px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.badge-primary {
    background-color: #007BFF;
}

.badge-success {
    background-color: #28a745;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

footer a {
    color: #007BFF;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}