:root {
	--primary: #034c8f;
	--secondary: #00a8e3;
	--text-main: #395b8a;
	--text-light: #64748b;
	--bg-body: #ffffff;
	--bg-sidebar: #f8fafc;
	--bg-code: #0b1120;
	--border: #e2e8f0;
	--sidebar-width: 280px;
	--card-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
	--card-hover: 0 8px 25px rgba(37, 99, 235, 0.3);
	--accent-blue: #2563eb;
	--deep-blue: #1e3a8a;
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	font-family:
		"Inter",
		system-ui,
		-apple-system,
		sans-serif;
	background-color: var(--bg-body);
	color: var(--text-main);
	line-height: 1.6;
	overflow-x: hidden;
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: var(--secondary);
	text-decoration: none;
	transition: color 0.2s;
}
a:hover {
	color: var(--primary);
}
.sidebar {
	width: var(--sidebar-width);
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	background-color: var(--bg-sidebar);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	z-index: 1000;
	transition: transform 0.3s ease;
}

.sidebar-header {
	padding: 24px;
	border-bottom: 1px solid var(--border);
}

.logo {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--primary);
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.logo img {
	max-height: 50px;
	width: auto;
	border-radius: 8px;
}

.version-badge {
	font-size: 0.75rem;
	background: #e2e8f0;
	padding: 4px 8px;
	border-radius: 12px;
	color: var(--text-light);
	font-weight: 500;
}

.nav-menu {
	padding: 20px 0;
	list-style: none;
	flex-grow: 1;
}

.nav-section-title {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 600;
	color: #8395af;
	margin-bottom: 0.8rem;
	padding-left: 24px;
}

.nav-link {
	display: block;
	padding: 12px 24px;
	color: var(--text-light);
	font-size: 0.95rem;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
	text-decoration: none;
}

.nav-link:hover {
	background-color: #f1f5f9;
	color: var(--text-main);
}

.nav-link.active {
	background-color: #eff6ff;
	color: var(--primary);
	border-left-color: var(--primary);
	font-weight: 500;
}

/* HEADER MOBILE*/
.mobile-header {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: white;
	padding: 16px 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	z-index: 1001;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--border);
}

.mobile-header-left {
	display: flex;
	align-items: center;
	gap: 15px;
}

.burger-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	z-index: 1002;
}

.burger-btn span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--primary);
	border-radius: 3px;
	transition: 0.2s;
}

.mobile-logo {
	font-size: 1.2rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--primary);
}

.mobile-logo img {
	height: 35px;
	width: auto;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
}

.overlay.active {
	display: block;
}
.burger-btn.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active span:nth-child(2) {
	opacity: 0;
}

.burger-btn.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

.burger-btn span {
	transition: all 0.3s ease;
}

/* Submenu */
.submenu {
	display: none;
	padding-left: 1.5rem;
	list-style: none;
	background-color: #f1f5f9;
	margin: 0 0 0.75rem 0;
	border-radius: 0 12px 12px 0;
}
.submenu .nav-link {
	padding: 0.5rem 1.5rem;
	font-size: 0.85rem;
}
.submenu-trigger {
	display: flex;
	align-items: center;
	cursor: pointer;
}
.arrow-icon {
	transition: transform 0.2s;
}
.arrow-icon.rotated {
	transform: rotate(180deg);
}

.main-content {
	margin-left: var(--sidebar-width);
	padding: 2rem 2.5rem;
	width: calc(100% - var(--sidebar-width));
	max-width: 1400px;
	flex: 1;
}
.api-section .table-wrapper,
.api-section .code-content {
	grid: 1/ -1;
}

/* Seções */
.api-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-bottom: 4rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--border);
	scroll-margin-top: 5rem;
}
.api-section:last-child {
	border-bottom: none;
}

.text-content {
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
	text-align: justify;
}
.text-content h1,
.text-content h2 {
	color: var(--primary);
	margin-bottom: 1rem;
}
.text-content p {
	margin-bottom: 1rem;
	color: var(--text-light);
}

/* Bloco de código */
.code-content {
	background-color: var(--bg-code);
	border-radius: 12px;
	padding: 1.25rem;
	font-family: "Fira Code", monospace;
	font-size: 0.85rem;
	height: fit-content;
	position: sticky;
	top: 2rem;
	width: 100%;
	overflow-x: auto;
}
.code-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.code-tag {
	background: var(--primary);
	color: white;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.2rem 1rem;
	border-radius: 30px;
	white-space: nowrap;
}
.copy-btn {
	background: #2d3e5f;
	border: none;
	color: white;
	padding: 0.25rem 1rem;
	border-radius: 30px;
	cursor: pointer;
	font-size: 0.7rem;
	transition: background 0.2s;
	white-space: nowrap;
}
.copy-btn:hover {
	background: var(--primary);
}
.copy-btn.copied {
	background: #10b981;
}
.code-content pre {
	margin: 0;
	white-space: pre;        /* mantém JSON intacto */
	word-break: normal;
	overflow-x: auto;
	background: #0b1120;
	padding: 0.75rem;
	border-radius: 8px;
	width: 100%;
}
.code-content pre code {
	color: #5b90e4;
	font-family: inherit;
	font-size: 0.85rem;
	white-space: pre;
	word-break: normal;
	display: block;
}
.inline-code {
	background-color: #f4f7f9;
	color: #ff0000;
	padding: 2px 6px;
	border-radius: 2px;

	font-size: 0.85rem;
}
/* Métodos e endpoint */
.method-get-box,
.method-post-box {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 6px;
	font-weight: bold;
	font-size: 0.8rem;
}
.method-get-box {
	background-color: #22c55e;
	color: white;
}
.method-post-box {
	background-color: #3b82f6;
	color: white;
}
.endpoint-container {
	margin: 1.5rem 0;
}
.endpoint-box {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: #f1f5f9;
	padding: 0.5rem 1rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	font-family: monospace;
	margin: 0.25rem 0;
	flex-wrap: wrap;
	word-break: break-all;
	max-width: 100%;
}
.endpoint-box span:last-child {
	word-break: break-all;
}

/* Tabelas */
.table-wrapper {
	overflow-x: auto;
	width: 100%;
	-webkit-overflow-scrolling: touch;
}
.table-wrapper table {
	min-width: 60px;
	width: 100%;
}
table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 0.9rem;
	min-width: 500px;
}
th,
td {
	word-wrap: break-word;
	text-align: left;
	padding: 0.75rem;
	border-bottom: 1px solid var(--border);
}
th {
	background-color: #f8fafc;
	color: var(--primary);
}

.status-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}
.status-item {
	background: #f1f5f9;
	border-radius: 30px;
	padding: 0.25rem 1rem;
	font-size: 0.85rem;
	border: 1px solid #d0d9e8;
}
.status-aviso {
	background: #fef9c3;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	border-left: 4px solid #eab308;
	width: 100%;
}

/* Rodapé */
.footer {
	background-color: #0f172a;
	color: #cbd5e1;
	padding: 2rem 0 0;
	margin-top: auto;
	width: 100%;
}
.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem 2rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2rem;
}
.footer-col h4 {
	color: white;
	margin-bottom: 1rem;
	font-size: 1.1rem;
}
.footer-col p,
.footer-col ul {
	font-size: 0.85rem;
	line-height: 1.5;
}
.footer-col ul {
	list-style: none;
}
.footer-col li {
	margin-bottom: 0.5rem;
}
.footer-col a {
	color: #94a3b8;
}
.footer-col a:hover {
	color: var(--secondary);
}
.footer-col .footer-logo {
	margin-top: -20px;
	width: 50px;
	height: auto;
	margin-bottom: -20px;
}
.footer-bottom {
	text-align: center;
	padding: 1.5rem;
	border-top: 1px solid #1e293b;
	font-size: 0.75rem;
	color: #64748b;
}
@media (max-width: 992px) {
	.sidebar {
		transform: translateX(-100%);
	}
	.sidebar.open {
		transform: translateX(0);
	}
	.main-content {
		margin-left: 0;
		width: 100%;
		padding: 5rem 1rem 2rem;
	}
	.api-section {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		margin-bottom: 3rem;
	}
	.code-content {
		position: relative;
		top: 0;
	}
	.mobile-header {
		display: flex;
	}
	.footer-container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-col ul {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	/* Ajuste para telas pequenas */
	.table-wrapper {
		margin: 0.75rem 0;
	}
	table {
		font-size: 0.85rem;
		min-width: 450px;
	}
	th,
	td {
		padding: 0.5rem;
	}
	.code-content pre {
		font-size: 0.8rem;
	}
	.endpoint-box {
		font-size: 0.85rem;
		padding: 0.4rem 0.75rem;
	}
}

@media (min-width: 993px) {
	.main-content {
		margin-left: var(--sidebar-width);
		width: calc(100% - var(--sidebar-width));
	}
	.footer {
		margin-left: var(--sidebar-width);
		width: calc(100% - var(--sidebar-width));
	}
}

pre,
code {
	word-break: break-word;
	white-space: pre-wrap;
}
h4 {
	margin: 1rem 0 0.5rem;
}

/*HOME/WELCOME*/
#home {
	max-width: 1300px;
	margin: 0 auto;
}

.welcome-container {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.welcome-text {
	flex: 1;
	min-width: 280px;
}

.welcome-title {
	border-left: 6px solid var(--accent-blue);
	padding-left: 24px;
}

.welcome-title h1 {
	font-size: 3rem;
	font-weight: 700;
	color: #0a2540;
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, #0f2b3d 0%, #1a4c7a 100%);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	margin-bottom: 12px;
}

.welcome-title p {
	font-size: 1.15rem;
	color: var(--text-light);
}
.welcome-image {
	flex-shrink: 0;
	max-width: 400px;
	width: 100%;
}

.welcome-image img {
	width: 100%;
	height: auto;
	border-radius: 20px;
}

.apresentacao {
	margin: 20px 0 20px 0;
	text-align: justify;
}

.apresentacao h2 {
	font-size: 24px;
	font-weight: 600;
	color: var(--deep-blue);
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 8px;
	display: inline-block;
	margin-bottom: 20px;
	text-align: center;
}

.apresentacao p {
	font-size: 1.05rem;
	color: #2c3e66;
	margin: 0 auto 20px auto;
	max-width: 100%;
	line-height: 1.65;
	text-align: justify;
}
.cards-row {
	display: flex;
	gap: 25px;
	margin: 20px 0 20px;
	flex-wrap: nowrap;
	padding-bottom: 0px;
	margin-top: 10px;
}

.info-card {
	flex: 1;
	min-width: 310px;
	background: #ffffff;
	border-radius: 20px;
	padding: 28px 26px;
	box-shadow: var(--card-shadow);
	border-left: 6px solid var(--accent-blue);
	transition: all 0.25s ease;
}

.info-card:hover {
	box-shadow: var(--card-hover);
	transform: translateY(-4px);
}

.info-card h3 {
	font-size: 1.6rem;
	font-weight: 600;
	margin-bottom: 20px;
	color: #1e3a8a;
	display: flex;
	align-items: center;
	gap: 12px;
}

.info-card h3 i {
	color: var(--accent-blue);
	font-size: 1.5rem;
}

.info-card ul {
	list-style: none;
	padding-left: 0;
}

.info-card ul li {
	margin-bottom: 14px;
	padding-left: 28px;
	position: relative;
	color: #2c3e66;
	font-weight: 500;
}

.info-card ul li::before {
	content: "✓";
	color: var(--accent-blue);
	font-weight: bold;
	position: absolute;
	left: 0;
	font-size: 1rem;
}
@media (max-width: 900px) {
	.mobile-header {
		display: flex;
	}

	.sidebar {
		transform: translateX(-100%);
	}

	.sidebar.open {
		transform: translateX(0);
	}

	.content {
		margin-left: 0;
		padding: 90px 24px 50px 24px;
	}

	.welcome-container {
		flex-direction: column-reverse;
	}

	.welcome-image {
		max-width: 100%;
		text-align: center;
	}

	.welcome-image img {
		max-width: 300px;
	}

	.welcome-title h1 {
		font-size: 2.3rem;
	}

	.apresentacao p {
		max-width: 100%;
	}

	.cards-row {
		flex-direction: column;
		gap: 24px;
	}

	.info-card {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.content {
		padding: 80px 18px 40px 18px;
	}

	.welcome-title {
		padding-left: 16px;
	}

	.welcome-title h1 {
		font-size: 1.9rem;
	}

	.welcome-title p {
		font-size: 0.95rem;
	}

	.info-card {
		padding: 20px 18px;
	}

	.info-card h3 {
		font-size: 1.4rem;
	}

	.apresentacao h2 {
		font-size: 24px;
	}
}

@media (max-width: 360px) {
	.welcome-title h1 {
		font-size: 1.6rem;
	}
}
