/* Estilos para a aplicação "Eai Cidadão!" */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 1000px; /* Ajustado para 3 botões por linha */
    text-align: center;
    z-index: 1;
}

h1 {
    color: #0d47a1;
    margin-bottom: 5px;
    font-weight: 600;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Grid responsivo para diferentes tamanhos de tela */
@media (min-width: 768px) {
    .options {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Limitando a 3 botões por linha em todas as larguras de tela */
@media (min-width: 992px) {
    .options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.options a {
    text-decoration: none;
}

.option-box {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.option-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.9;
}

.option-box:nth-child(1)::before {
    background: linear-gradient(45deg, #66bb6a, #4caf50, #2e7d32); /* Verde para Esporte */
}

.option-box:nth-child(2)::before {
    background: linear-gradient(45deg, #ec407a, #e91e63, #c2185b); /* Rosa para Assistência Social */
}

.option-box:nth-child(3)::before {
    background: linear-gradient(45deg, #ef5350, #f44336, #c62828); /* Vermelho para Agricultura */
}

.option-box:nth-child(4)::before {
    background: linear-gradient(45deg, #ffca28, #ffc107, #ff8f00); /* Amarelo para Rodoviário */
}

.option-box:nth-child(5)::before {
    background: linear-gradient(45deg, #26a69a, #009688, #00796b); /* Verde-azulado para Meio Ambiente */
}

/* Cores para os novos botões */
.option-box:nth-child(6)::before {
    background: linear-gradient(45deg, #42a5f5, #2196f3, #1976d2); /* Azul para Serviços Urbanos */
}

.option-box:nth-child(7)::before {
    background: linear-gradient(45deg, #ab47bc, #9c27b0, #7b1fa2); /* Roxo para Educação */
}

.option-box:nth-child(8)::before {
    background: linear-gradient(45deg, #7e57c2, #673ab7, #512da8); /* Violeta para Fiscalização */
}

.option-box:nth-child(9)::before {
    background: linear-gradient(45deg, #8d6e63, #795548, #5d4037); /* Marrom para Obras */
}

.option-box:nth-child(10)::before {
    background: linear-gradient(45deg, #ff7043, #ff5722, #e64a19); /* Laranja para Cultura */
}

.option-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.option-box i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.option-box:hover i {
    transform: scale(1.2);
}

.option-box h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.municipality-logo {
    display: inline-block;
    width: 200px;
    height: 100px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.municipality-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    text-align: left;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.login-buttons-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 2;
}

.login-button {
    background-color: #fff;
    color: #0d47a1;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.login-button i {
    margin-right: 8px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-login {
    background-color: #fff;
    color: #2e7d32;
}

.user-login:hover {
    background-color: #2e7d32;
    color: #fff;
}

.admin-login {
    background-color: #fff;
    color: #0d47a1;
}

.admin-login:hover {
    background-color: #0d47a1;
    color: #fff;
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #1976d2, transparent);
    margin: 25px 0;
}

.municipality-name {
    color: #000000;
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #555;
    font-size: 0.85rem;
    text-align: center;
}

/* Responsividade */
@media (max-width: 576px) {
    .options {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 25px;
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .municipality-logo {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }
    
    .login-buttons-container {
        flex-direction: column;
    }
    
    .login-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .title-container {
        align-items: center;
        margin-top: 10px;
    }
    
    h1 {
        margin-top: 10px;
    }
}