/* Estilos Front-End do e-SIC (CISPORTAL) - Apple Material Inspired */

.esic-portal-wrapper {
	margin-top: 20px;
	font-family: 'Inter', sans-serif;
}

/* Sistema de Abas */
.esic-tabs {
	display: flex;
	background: #e5e5ea;
	border-radius: 12px;
	padding: 4px;
	margin-bottom: 30px;
	gap: 4px;
}

.esic-tab-btn {
	flex: 1;
	border: none;
	background: none;
	font-size: 14px;
	font-weight: 600;
	color: #6e6e73;
	padding: 12px 15px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.25s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.esic-tab-btn:hover {
	color: #1d1d1f;
}

.esic-tab-btn.active {
	background: #ffffff;
	color: #154794;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Painéis de Conteúdo */
.esic-tab-pane {
	display: none;
}

.esic-tab-pane.active {
	display: block;
	animation: esicFadeIn 0.4s ease;
}

@keyframes esicFadeIn {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Aba Apresentação */
.esic-presentation h3 {
	font-size: 20px;
	color: #1d1d1f;
	margin: 0 0 15px 0;
	border-bottom: 2px solid #e5e5ea;
	padding-bottom: 8px;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
}

.esic-presentation p {
	font-size: 14.5px;
	line-height: 1.6;
	color: #48484a;
	margin-bottom: 20px;
}

.esic-secao {
	margin-bottom: 35px;
}

/* Grid de Cards Informativos */
.esic-info-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 35px;
}

.esic-info-card-item {
	background: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esic-info-card-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.esic-info-card-item .card-icon {
	font-size: 28px;
	color: #154794;
	margin-bottom: 12px;
}

.esic-info-card-item h4 {
	font-size: 15px;
	font-weight: 700;
	color: #1d1d1f;
	margin: 0 0 8px 0;
	font-family: 'Outfit', sans-serif;
}

.esic-info-card-item p {
	font-size: 12.5px;
	line-height: 1.5;
	color: #6e6e73;
	margin: 0;
}

/* Bloco SIC Presencial */
.esic-sic-presencial {
	background: #f5f5f7;
	border-radius: 14px;
	padding: 25px;
	border: 1px solid #e5e5ea;
	margin-bottom: 35px;
}

.esic-sic-header {
	margin-bottom: 20px;
}

.esic-sic-header h3 {
	border: none;
	margin: 0;
	padding: 0;
}

.esic-sic-base-legal {
	font-size: 12px;
	color: #8e8e93;
	font-style: italic;
	margin-top: 3px;
	display: block;
}

.esic-sic-grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 30px;
}

.esic-sic-servidor {
	display: flex;
	gap: 15px;
	align-items: center;
	background: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 12px;
	padding: 20px;
}

.esic-sic-servidor-icone {
	font-size: 32px;
	color: #5bc82c;
	background: rgba(91, 200, 44, 0.08);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.esic-sic-servidor-info {
	display: flex;
	flex-direction: column;
}

.esic-sic-servidor-info small {
	font-size: 10px;
	text-transform: uppercase;
	color: #8e8e93;
	font-weight: bold;
}

.esic-sic-servidor-info strong {
	font-size: 15px;
	color: #1d1d1f;
	margin: 2px 0;
}

.esic-sic-servidor-info span {
	font-size: 12px;
	color: #6e6e73;
}

.esic-sic-dados {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px 25px;
	margin: 0;
}

.esic-sic-dados dt {
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	color: #6e6e73;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.esic-sic-dados dt i {
	color: #154794;
}

.esic-sic-dados dd {
	font-size: 13.5px;
	color: #1d1d1f;
	margin: 0;
	font-weight: 500;
}

/* Call to Action */
.esic-cta-box {
	background: linear-gradient(135deg, rgba(21, 71, 148, 0.04) 0%, rgba(91, 200, 44, 0.04) 100%);
	border: 1px solid rgba(21, 71, 148, 0.1);
	border-radius: 14px;
	padding: 30px;
	text-align: center;
}

.esic-cta-box h3 {
	border: none;
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 8px;
}

.esic-cta-box p {
	font-size: 13.5px;
	margin-bottom: 20px;
}

.esic-cta-btns {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.btn-cta-action {
	font-size: 13.5px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	transition: all 0.25s ease;
}

.btn-cta-action.btn-register {
	background: #5bc82c;
	color: #ffffff;
}

.btn-cta-action.btn-register:hover {
	background: #48a322;
}

.btn-cta-action.btn-query {
	background: #154794;
	color: #ffffff;
}

.btn-cta-action.btn-query:hover {
	background: #0e326b;
}

/* Aba Estatísticas */
.esic-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 35px;
}

.esic-stat-card {
	border-radius: 12px;
	padding: 25px 20px;
	text-align: center;
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.esic-stat-card.card-total { background: #154794; }
.esic-stat-card.card-respondido { background: #5bc82c; }
.esic-stat-card.card-analise { background: #ff9500; }
.esic-stat-card.card-indeferido { background: #ff2d55; }

.esic-stat-card .stat-number {
	font-size: 32px;
	font-weight: 800;
	display: block;
	line-height: 1.1;
	margin-bottom: 6px;
}

.esic-stat-card .stat-label {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.9;
	text-transform: uppercase;
}

/* Gráficos de Barra */
.esic-chart-wrapper {
	background: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 14px;
	padding: 25px;
	margin-bottom: 20px;
}

.esic-chart-wrapper h4 {
	font-size: 16px;
	margin: 0 0 20px 0;
	color: #1d1d1f;
	font-weight: 700;
}

.chart-row {
	margin-bottom: 18px;
}

.chart-row:last-child {
	margin-bottom: 0;
}

.chart-label {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #1d1d1f;
	margin-bottom: 6px;
}

.chart-bar-bg {
	background: #e5e5ea;
	height: 10px;
	border-radius: 5px;
	overflow: hidden;
	width: 100%;
}

.chart-bar-fill {
	height: 100%;
	border-radius: 5px;
	transition: width 1s ease-in-out;
}

/* Formulário do e-SIC (Layout Corrigido) */
.esic-form-container {
	background: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.esic-form-container h2 {
	font-size: 20px;
	margin: 0 0 25px 0;
	color: #154794;
	border-bottom: 2px solid #e5e5ea;
	padding-bottom: 8px;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
}

.esic-form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
}

.esic-group {
	display: flex;
	flex-direction: column;
	flex: 1;
	margin-bottom: 18px;
}

.esic-group label {
	font-size: 13px;
	font-weight: 600;
	color: #1d1d1f;
	margin-bottom: 6px;
}

.esic-group input[type="text"],
.esic-group input[type="email"],
.esic-group select,
.esic-group textarea {
	background: #ffffff;
	border: 1px solid #d2d2d7;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	color: #1d1d1f;
	font-family: 'Inter', sans-serif;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
	outline: none;
	box-sizing: border-box;
}

.esic-group input[type="text"]:focus,
.esic-group input[type="email"]:focus,
.esic-group select:focus,
.esic-group textarea:focus {
	border-color: #154794;
	box-shadow: 0 0 0 3px rgba(21, 71, 148, 0.15);
}

.esic-group input[type="file"] {
	font-size: 13px;
	padding: 6px 0;
}

.esic-submit-row {
	display: flex;
	justify-content: flex-end;
	margin-top: 15px;
}

.btn-esic-submit {
	background: #154794;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.btn-esic-submit:hover {
	background: #0e326b;
}

/* Card de Protocolo de Sucesso */
.esic-protocol-card {
	background: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 16px;
	padding: 30px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.esic-protocol-card i {
	font-size: 48px;
	color: #5bc82c;
	margin-bottom: 15px;
}

.esic-protocol-card h3 {
	font-size: 22px;
	color: #1d1d1f;
	margin-bottom: 10px;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
}

.esic-protocol-card p {
	font-size: 14.5px;
	color: #48484a;
	line-height: 1.6;
	margin-bottom: 25px;
}

.protocol-number-box {
	background: #f5f5f7;
	border: 1px solid #e5e5ea;
	border-radius: 12px;
	padding: 20px;
	max-width: 450px;
	margin: 0 auto 25px auto;
}

.protocol-number-box p {
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	color: #6e6e73;
	margin-bottom: 4px;
}

.protocol-number-box strong {
	font-size: 24px;
	color: #154794;
	font-family: monospace;
	display: block;
}

/* Consulta Detalhada */
.esic-pedido-detalhado {
	margin-top: 25px;
}

/* Acessibilidade Alto Contraste */
body.gh-high-contrast .esic-tabs {
	background: #000000 !important;
	border: 1px solid #ffffff !important;
}

body.gh-high-contrast .esic-tab-btn {
	color: #ffffff !important;
}

body.gh-high-contrast .esic-tab-btn.active {
	background: #ffff00 !important;
	color: #000000 !important;
}

body.gh-high-contrast .esic-info-card-item,
body.gh-high-contrast .esic-sic-presencial,
body.gh-high-contrast .esic-sic-servidor,
body.gh-high-contrast .esic-chart-wrapper,
body.gh-high-contrast .esic-form-container,
body.gh-high-contrast .esic-protocol-card,
body.gh-high-contrast .protocol-number-box {
	background: #000000 !important;
	border: 1px solid #ffffff !important;
	color: #ffffff !important;
}

body.gh-high-contrast .esic-presentation h3,
body.gh-high-contrast .esic-presentation p,
body.gh-high-contrast .esic-info-card-item h4,
body.gh-high-contrast .esic-info-card-item p,
body.gh-high-contrast .esic-sic-servidor-info strong,
body.gh-high-contrast .esic-sic-servidor-info span,
body.gh-high-contrast .esic-sic-dados dd,
body.gh-high-contrast .esic-cta-box h3,
body.gh-high-contrast .esic-cta-box p,
body.gh-high-contrast .esic-chart-wrapper h4,
body.gh-high-contrast .chart-label,
body.gh-high-contrast .esic-group label,
body.gh-high-contrast .esic-protocol-card h3,
body.gh-high-contrast .esic-protocol-card p,
body.gh-high-contrast .protocol-number-box p {
	color: #ffffff !important;
}

body.gh-high-contrast .esic-group input[type="text"],
body.gh-high-contrast .esic-group input[type="email"],
body.gh-high-contrast .esic-group select,
body.gh-high-contrast .esic-group textarea {
	background: #000000 !important;
	border: 1px solid #ffffff !important;
	color: #ffffff !important;
}

body.gh-high-contrast .esic-group input[type="text"]:focus,
body.gh-high-contrast .esic-group input[type="email"]:focus,
body.gh-high-contrast .esic-group select:focus,
body.gh-high-contrast .esic-group textarea:focus {
	border-color: #ffff00 !important;
}

body.gh-high-contrast .esic-sic-servidor-icone {
	background: #000000 !important;
	border: 1px solid #ffffff !important;
	color: #ffffff !important;
}

body.gh-high-contrast .btn-cta-action.btn-register,
body.gh-high-contrast .btn-cta-action.btn-query,
body.gh-high-contrast .btn-esic-submit {
	background: #000000 !important;
	border: 1px solid #ffffff !important;
	color: #ffffff !important;
}

body.gh-high-contrast .btn-cta-action.btn-register:hover,
body.gh-high-contrast .btn-cta-action.btn-query:hover,
body.gh-high-contrast .btn-esic-submit:hover {
	background: #ffff00 !important;
	color: #000000 !important;
	border-color: #ffff00 !important;
}

body.gh-high-contrast .esic-stat-card {
	background: #000000 !important;
	border: 1px solid #ffffff !important;
	color: #ffffff !important;
}

body.gh-high-contrast .esic-stat-card .stat-number {
	color: #ffff00 !important;
}

body.gh-high-contrast .chart-bar-bg {
	background: #555555 !important;
}

body.gh-high-contrast .chart-bar-fill {
	background: #ffff00 !important;
}

/* Responsividade */
@media (max-width: 991px) {
	.esic-info-cards-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.esic-sic-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.esic-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	
	.esic-form-row {
		flex-direction: column;
		gap: 0;
	}
}
