* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    /* overflow visível: senão o menu (☰) é cortado na borda da caixa */
    overflow: visible;
}

header {
    /* cantos arredondados no cabeçalho (antes vinham do overflow: hidden da .container) */
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

header p {
    opacity: 0.9;
}
/* Fundo para o modal */
.modal-body.fundo-verde {
    background-color: #c8e6c9 !important;
}

.modal-body.fundo-amarelo {
    background-color: #fefec1 !important;
}
.controls {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

select:hover {
    border-color: #667eea;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 50px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lista-unidades {
    padding: 30px;
}

.unidade-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.unidade-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.unidade-item.feito {
    background: #e8f5e9;
    border-color: #4caf50;
    border-left-width: 5px;
}
.unidade-item.feito-parcial {
    background: #fff9c4;
    border-color: #ffc107;
    border-left-width: 5px;
}

.unidade-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.unidade-titulo .icone-feito {
    font-size: 1.3em;
}

.unidade-obs {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9em;
    line-height: 1.4;
}

.btn-maps {
    background: #4285f4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.btn-maps:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 20px 20px 0 0;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin-right: 30px;
}

.modal-body {
    padding: 20px;
}

.info-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.info-section h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.info-row {
    margin: 10px 0;
    line-height: 1.5;
}

.info-label {
    font-weight: 600;
    color: #555;
    display: inline-block;
    min-width: 120px;
}

.info-value {
    color: #333;
}

.evento-dados {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.sem-evento {
    color: #999;
    font-style: italic;
    padding: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        width: 100%;
    }
    
    select, .btn-secondary {
        width: 100%;
    }
    
    .info-label {
        display: block;
        margin-bottom: 5px;
    }
}
.dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #f0f0f0;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.badge {
	background-color: #4CAF50;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.badge.admin {
	background-color: #ff9800;
}

.badge.gerente {
	background-color: #2196F3;
}

.badge.usuario {
	background-color: #4CAF50;
}

.btn-logout {
	background-color: #dc3545;
	color: white;
	padding: 8px 16px;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.3s;
}

.btn-logout:hover {
	background-color: #c82333;
}

.welcome-card {
	background: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	text-align: center;
}

.welcome-card h2 {
	color: #333;
	margin-bottom: 15px;
}

.welcome-card p {
	color: #666;
	margin-bottom: 10px;
}

.user-details {
	margin-top: 20px;
	padding: 15px;
	background-color: #f8f9fa;
	border-radius: 4px;
	text-align: left;
}

.user-details p {
	margin: 5px 0;
}

@media (max-width: 768px) {
	.dashboard-header {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}
}

/* Estilos específicos para a página de login */
.login-container {
	max-width: 450px;
	margin: 80px auto;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	padding: 30px;
}

.login-header {
	text-align: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #f0f0f0;
}

.login-header h1 {
	color: #333;
	margin-bottom: 10px;
}

.login-header p {
	color: #666;
	font-size: 14px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #333;
	font-weight: 500;
}

.form-group input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s;
}

.form-group input:focus {
	outline: none;
	border-color: #4CAF50;
}

.btn-login {
	width: 100%;
	padding: 12px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
}

.btn-login:hover {
	background-color: #45a049;
}

.message {
	margin-top: 20px;
	padding: 12px;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
	display: none;
}

.message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}

.message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}

.info-box {
	margin-top: 20px;
	padding: 15px;
	background-color: #f8f9fa;
	border-radius: 4px;
	text-align: center;
	font-size: 13px;
	color: #666;
}

.users-list {
	margin-top: 10px;
	text-align: left;
	font-size: 12px;
}

.users-list table {
	width: 100%;
	margin-top: 10px;
	border-collapse: collapse;
}

.users-list td {
	padding: 5px;
	border-bottom: 1px solid #eee;
}

.users-list td:first-child {
	font-weight: bold;
}

@media (max-width: 768px) {
	.login-container {
		margin: 40px 20px;
		padding: 20px;
	}
}
/* Gráfico de progresso */
.grafico-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    border: 1px solid #e0e0e0;
}

.grafico-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.grafico-label {
    font-weight: 600;
    color: #555;
}

.grafico-valor {
    font-weight: 700;
    color: #667eea;
}

.grafico-barra {
    background: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.grafico-preenchimento {
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.grafico-detalhes {
    margin-top: 8px;
    font-size: 0.75em;
    color: #888;
    text-align: right;
}