:root {
    --primary-color: #2a2a2a;
    --secondary-color: #1a1a1a;
    --accent-color: #4a90e2;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dark-theme {
    background-color: var(--primary-color);
    color: var(--text-color);
}

header {
    background-color: var(--secondary-color);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
    width: 100%;
}

.pacotes h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.pacotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

footer {
    background-color: var(--secondary-color);
    padding: 1rem;
    text-align: center;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* Responsividade */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        margin: 0 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    footer {
        padding: 0.8rem;
        font-size: 0.9em;
    }
}

/* Garantir que o layout funcione em todas as páginas */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Melhorias para páginas específicas */
.login-container,
.checkout-container,
.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Garantir que o footer sempre fique na parte inferior */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Fallback para navegadores antigos */
@supports not (display: flex) {
    body {
        min-height: 100vh;
        position: relative;
    }
    
    main {
        padding-bottom: 80px; /* Altura do footer + margem */
    }
    
    footer {
        position: absolute;
        bottom: 0;
        width: 100%;
    }
}

/* Garantir que o footer sempre fique acima de outros elementos */
footer {
    z-index: 100 !important;
}

/* Evitar que botões e outros elementos passem por cima do footer */
.btn-comprar,
.filtro-btn,
.pacote-card {
    z-index: 1;
}

/* Popup deve ficar acima de tudo */
.popup {
    z-index: 9999 !important;
} 