:root {
    --bg-color: #ffffff; /* Branco */
    --text-color: #000000; /* Preto */
    --accent-color: #006400; /* Verde Escuro */
    --btn-blue: #28a745; /* Verde */
    --btn-green-dark: #218838; /* Verde Escuro */
    --btn-gold: #006400; /* Verde Escuro */
    --danger-color: #dc3545;
    --success-color: #28a745;
    --card-bg: #f8f9fa; /* Fundo claro para cards */
    --border-color: #dee2e6;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Nav */
header {
    background-color: #ffffff;
    border-bottom: 2px solid var(--accent-color);
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.nav-links a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}



.user-menu {
    position: relative;
    cursor: pointer;
}

.dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    display: none;
    flex-direction: column;
    width: 150px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.user-menu:hover .dropdown {
    display: flex;
}

.dropdown a {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.dropdown a:hover {
    background-color: #f8f9fa;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
    text-align: center;
    display: inline-block;
}

.btn:hover {
    opacity: 0.9;
}

.btn-gold {
    background-color: var(--btn-gold);
    color: #fff;
}

.btn-blue {
    background-color: var(--btn-blue);
    color: #fff;
}

.btn-green-dark {
    background-color: var(--btn-green-dark);
    color: #fff;
}

.btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

.btn-success {
    background-color: var(--success-color);
    color: #fff;
}

/* Layout Columns */
.main-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.col-left {
    flex: 1;
}

.col-right {
    flex: 1;
}

/* Home Specific */
.slogan {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 10px;
}

h1.title {
    font-size: 3rem;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.description {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.raffle-info {
    background-color: #1b263b;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #415a77;
}

.raffle-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.buy-section select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #415a77;
    color: #fff;
    border: 1px solid #415a77;
    border-radius: 5px;
    font-size: 1rem;
}

.buy-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: #a0a0a0;
}

/* Carousel Placeholder */
.carousel {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #1b263b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.copy-text {
    text-align: center;
    font-style: italic;
    color: var(--accent-color);
}

/* Vitrine */
.vitrine-section {
    margin-top: 40px;
}

.vitrine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Replaced raffle-card with product-card */
.product-card {
    background-color: #1b263b;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #415a77;
}

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

.card-body {
    padding: 15px;
}

/* Vitrine Pontos (New Feature) */
.numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.number-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Make them circular */
    font-weight: bold;
    user-select: none;
    transition: all 0.2s ease;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.number-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.number-item:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.number-item.available {
    background-color: var(--accent-color);
    color: #000;
    cursor: pointer;
    border: 2px solid #cc7000; /* Darker orange border */
}

.number-item.sold {
    background-color: #415a77;
    color: #aaa;
    cursor: not-allowed;
    border: 2px solid #415a77;
}

.number-item.selected {
    background-color: #fff;
    color: #000;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transform: scale(1.1);
}

.selected-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    min-height: 40px;
    padding: 10px;
    background-color: #415a77;
    border-radius: 5px;
    border: 1px solid #415a77;
}

.selected-badge {
    background-color: var(--accent-color);
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}

.packages-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Advantages Cards */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.adv-card {
    background-color: #1b263b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--accent-color);
    padding: 5px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-links a {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: #fff;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #415a77;
    border: 1px solid #415a77;
    color: #fff;
    border-radius: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto; /* Fallback for non-flex */
    padding: 0; /* Removed padding to allow header to stretch */
    border: 1px solid #dee2e6;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    max-height: 90vh; /* Increased slightly */
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    color: #333;
    position: relative;
    /* overflow: hidden; removed to allow scrolling */
}

.modal-content h2 {
    background-color: var(--accent-color);
    color: #fff;
    margin: 0;
    padding: 20px;
    font-size: 1.5rem;
    border-bottom: none;
    border-radius: 12px 12px 0 0; /* Ensure rounded corners on top */
}

.modal-content form {
    padding: 25px;
}

.modal-content .form-group label {
    color: #555;
    font-weight: 600;
}

.modal-content input, 
.modal-content select, 
.modal-content textarea {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #333;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    transition: border-color 0.2s;
}

.modal-content input:focus, 
.modal-content select:focus, 
.modal-content textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: #fff; /* White to contrast with green header */
    cursor: pointer;
    transition: color 0.2s;
    opacity: 0.8;
}

.close-modal:hover {
    color: #fff;
    opacity: 1;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}



/* Carousel Styles - Cleaned */
.carousel-window {
    position: relative;
    width: 100%;
}


/* RESPONSIVE MEDIA QUERIES */
@media screen and (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-left {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
    }

    /* Main Content Stacking */
    .main-content {
        flex-direction: column-reverse;
        gap: 20px;
        margin-top: 20px;
    }
    
    /* Order manipulation if desired: 
    .col-right { order: -1; } 
    to show image first */

    /* Typography */
    h1.title {
        font-size: 2rem;
    }

    /* Vitrine Numbers */
    .number-item {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .numbers-grid {
        gap: 5px;
    }

    /* Advantages Grid */
    .advantages {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        margin-left: 0;
    }

    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* Carousel Height */
    .carousel-images {
        height: 250px;
    }
}
