.anatra-gerenciador-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.anatra-gerenciador-wrapper h1 {
	color: #333;
	margin-bottom: 30px;
	font-size: 28px;
}

/* Dashboard Stats */
.anatra-dashboard {
	margin-bottom: 40px;
}

.stats-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.stat-card {
	background: white;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s, box-shadow 0.2s;
	border-left: 4px solid #ccc;
}

.stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-total {
	border-left-color: #6c757d;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stat-ativo {
	border-left-color: #28a745;
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.stat-pendente {
	border-left-color: #ffc107;
	background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.stat-inadimplente {
	border-left-color: #dc3545;
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.stat-cancelado {
	border-left-color: #6c757d;
	background: linear-gradient(135deg, #e2e3e5 0%, #d3d6d8 100%);
}

.stat-number {
	font-size: 36px;
	font-weight: bold;
	color: #333;
	margin: 10px 0;
}

.stat-label {
	font-size: 14px;
	color: #666;
	font-weight: 500;
	margin-bottom: 5px;
}

.stat-percentage {
	font-size: 12px;
	color: #999;
	margin-top: 8px;
}

/* Controls */
.anatra-controls {
	display: flex;
	gap: 15px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.btn {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s;
}

.btn-primary {
	background: #003366;
	color: white;
}

.btn-primary:hover {
	background: #002244;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 51, 102, 0.3);
}

.btn-secondary {
	background: #6c757d;
	color: white;
}

.btn-secondary:hover {
	background: #5a6268;
}

.btn-editar {
	background: #0d6efd;
	color: white;
	padding: 6px 12px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	margin-right: 5px;
	transition: background 0.2s;
}

.btn-editar:hover {
	background: #0b5ed7;
}

.btn-deletar {
	background: #dc3545;
	color: white;
	padding: 6px 12px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	transition: background 0.2s;
}

.btn-deletar:hover {
	background: #bb2d3b;
}

.search-box {
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
	flex: 1;
	min-width: 200px;
}

.search-box:focus {
	outline: none;
	border-color: #003366;
	box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

/* Tabela */
.anatra-tabela-wrapper {
	overflow-x: auto;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.anatra-tabela {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.anatra-tabela thead {
	background: #f8f9fa;
	border-bottom: 2px solid #dee2e6;
}

.anatra-tabela th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
	color: #333;
}

.anatra-tabela td {
	padding: 15px;
	border-bottom: 1px solid #dee2e6;
}

.anatra-tabela tbody tr:hover {
	background: #f8f9fa;
}

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

.modal-content {
	background: white;
	margin: 5% auto;
	padding: 30px;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
	margin-top: 0;
	color: #333;
	margin-bottom: 20px;
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 20px;
}

.close:hover {
	color: #000;
}

/* Formulário */
#form-associado {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group.full-width {
	grid-column: 1 / -1;
}

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

.form-group input,
.form-group select {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
	font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
	outline: none;
	border-color: #003366;
	box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

#senha-section {
	border-top: 1px solid #ddd;
	padding-top: 15px;
	margin-top: 15px;
}

.form-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.form-actions .btn {
	flex: 1;
}

/* Notificações */
.anatra-gerenciador-notice {
	background: #f8d7da;
	color: #721c24;
	padding: 15px;
	border-radius: 5px;
	border: 1px solid #f5c6cb;
	margin-bottom: 20px;
}

.anatra-gerenciador-notice.error {
	background: #f8d7da;
	color: #721c24;
	border-color: #f5c6cb;
}

/* Responsivo */
@media (max-width: 768px) {
	.stats-container {
		grid-template-columns: repeat(2, 1fr);
	}

	.modal-content {
		width: 95%;
		margin: 20% auto;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.anatra-tabela {
		font-size: 12px;
	}

	.anatra-tabela th,
	.anatra-tabela td {
		padding: 10px;
	}

	.btn-editar,
	.btn-deletar {
		padding: 4px 8px;
		font-size: 11px;
	}
}
