/* ==========================================================================
   1. VARIÁVEIS GLOBAIS E TIPOGRAFIA
   ========================================================================== */
:root {
	--primary-color: #016334;
	--primary-hover: #017a41;
	--primary-dark: #01351b;
	--primary-light: #e6f0eb;
	--sidebar-bg: #1e293b;
	--text-dark: #0f172a;
	--text-muted: #64748b;
	--border-color: #e2e8f0;
	--bg-light: #f8fafc;
	--white: #ffffff;
	--dark-bg: #0c0e0d;
	--left-bg: #022b17;
}

* {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}

body {
	background-color: #f4f6f9;
	color: var(--text-dark);
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   2. NAVEGAÇÃO E SIDEBAR (ADMINLTE CUSTOMIZADO)
   ========================================================================== */

.main-sidebar {
	background-color: var(--sidebar-bg) !important;
}

.brand-link {
	background: var(--white) !important;
	border-bottom: 1px solid var(--border-color) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 15px !important;
	transition: all 0.3s ease;
}

.brand-link img,
.logo-mc-backoffice {
	max-height: 42px !important;
	width: auto !important;
	object-fit: contain !important;
	transition: all 0.3s ease !important;
}

.sidebar-collapse .brand-link img,
.sidebar-collapse .logo-mc-backoffice {
	max-height: 32px !important;
	width: auto !important;
}

.sidebar-collapse .brand-link {
	padding: 10px 5px !important;
}

.nav-sidebar .nav-link {
	border-radius: 8px;
	margin-bottom: 4px;
	font-weight: 500;
	color: #cbd5e1 !important;
	transition: all 0.2s ease-in-out;
}

.nav-sidebar .nav-link i {
	margin-right: 10px;
	font-size: 15px;
	color: #94a3b8;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-dark-primary .nav-sidebar .nav-treeview>.nav-item>.nav-link.active {
	background-color: var(--primary-color) !important;
	color: var(--white) !important;
	font-weight: 600 !important;
	box-shadow: 0 4px 12px rgba(1, 99, 52, 0.35) !important;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active i,
.sidebar-dark-primary .nav-sidebar .nav-treeview>.nav-item>.nav-link.active i {
	color: var(--white) !important;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link:hover,
.sidebar-dark-primary .nav-sidebar .nav-treeview>.nav-item>.nav-link:hover {
	background-color: rgba(255, 255, 255, 0.08) !important;
	color: var(--white) !important;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link:hover i {
	color: var(--white) !important;
}

/* ==========================================================================
   3. TABELAS E COMPONENTES DE DADOS
   ========================================================================== */
.table td,
.table th {
	padding: 10px 8px !important;
	vertical-align: middle !important;
	border-color: var(--border-color);
}

.table thead th {
	background-color: #f8fafc;
	color: var(--text-dark);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid var(--border-color);
}

.select2-container .select2-selection--single {
	height: 42px !important;
	border: 1px solid var(--border-color) !important;
	border-radius: 8px !important;
	display: flex;
	align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 42px !important;
	padding-left: 12px;
	color: var(--text-dark);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 40px !important;
	right: 8px;
}

/* ==========================================================================
   4. BOTÕES, PAGINAÇÃO E MÓDULOS
   ========================================================================== */
.btn_opcoes {
	width: 32px;
	height: 32px;
	font-size: 12px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	color: var(--white) !important;
	cursor: pointer;
	border: none;
	transition: opacity 0.2s ease;
}

.btn_opcoes:hover {
	opacity: 0.85;
}

.btn_class {
	margin-top: 10px;
}

.btn_class a {
	background-color: var(--white);
	border-radius: 6px;
	border: 1px solid var(--border-color);
	padding: 6px 18px;
	color: var(--text-dark);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.btn_class a:hover {
	background-color: var(--primary-color);
	color: var(--white);
	border-color: var(--primary-color);
}

.current {
	background-color: var(--primary-color) !important;
	color: var(--white) !important;
	border-radius: 6px;
	padding: 6px 12px;
	font-weight: 600;
}

.page_links {
	font-size: 13px;
	border: 1px solid var(--border-color);
	padding: 6px 12px;
	margin: 0 3px;
	background-color: var(--white);
	color: var(--text-dark);
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.page_links:hover {
	background-color: var(--primary-light);
	color: var(--primary-color);
	border-color: var(--primary-color);
}

span.dots {
	padding: 0 6px;
	color: var(--text-muted);
}

.imagem_list {
	padding: 10px;
}

.imagem_list a.fechar {
	float: right;
	font-size: 1.3rem;
	font-weight: 700;
	color: #ef4444;
	margin-right: -10px;
	text-decoration: none;
}

.imagem_list .imagem {
	height: 140px;
	background-position: center;
	background-size: cover;
	margin-top: 10px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
}

.item_medida {
	display: flex;
	padding: 6px 10px;
	background-color: #f1f5f9;
	border-radius: 6px;
	align-items: center;
}

ul#sortable {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.modulo {
	display: flex;
	align-items: center;
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Modais Gerais */
.modal-content {
	border-radius: 16px;
	border: none;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header-crm {
	background: var(--primary-color);
	color: var(--white);
	padding: 20px 25px;
}

/* ==========================================================================
   5. NOVO LAYOUT DE LOGIN (TELA INTEIRA DARK / GREEN GRID + SUPORTE ALBINET)
   ========================================================================== */
.login-body-bg {
	background-color: var(--dark-bg);
	height: 100vh;
	display: flex;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.auth-container {
	display: flex;
	width: 100vw;
	height: 100vh;
}

/* Lado Esquerdo */
.left-panel {
	flex: 1.4;
	background-color: var(--left-bg);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 32px 32px;
	padding: 50px 70px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #ffffff;
	position: relative;
}

.brand-logo img {
	max-height: 55px;
	width: auto;
	filter: brightness(0) invert(1);
}

.hero-section {
	margin-top: 20px;
	margin-bottom: 25px;
}

.hero-tag {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #86efac;
	margin-bottom: 8px;
}

.hero-title {
	font-size: 46px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.1;
	margin-bottom: 10px;
	letter-spacing: -1px;
}

.hero-subtitle {
	font-size: 16px;
	color: #cbd5e1;
	font-weight: 400;
}

.features-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 25px;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.feature-icon {
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #86efac;
	flex-shrink: 0;
}

.feature-content h4 {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 2px;
}

.feature-content p {
	font-size: 12.5px;
	color: #94a3b8;
	line-height: 1.4;
}

/* Cartão Suporte Albinet */
.support-card {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 16px;
	backdrop-filter: blur(10px);
	max-width: 520px;
}

.support-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 12px;
}

.support-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.support-avatar {
	width: 28px;
	height: 28px;
	background: #ffffff;
	color: #000000;
	font-weight: 800;
	font-size: 13px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.support-info h5 {
	font-size: 12.5px;
	font-weight: 700;
	color: #ffffff;
}

.support-info p {
	font-size: 11px;
	color: #94a3b8;
}

.support-status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: #22c55e;
	font-weight: 600;
}

.status-dot {
	width: 7px;
	height: 7px;
	background: #22c55e;
	border-radius: 50%;
	box-shadow: 0 0 8px #22c55e;
}

.support-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.support-link-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-decoration: none;
	color: #e2e8f0;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 6px;
	transition: background 0.2s;
}

.support-link-item:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
}

.support-link-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.badge-abrir {
	background: #22c55e;
	color: #000000;
	font-size: 9px;
	font-weight: 800;
	padding: 2px 5px;
	border-radius: 4px;
	text-transform: uppercase;
	margin-left: 5px;
}

/* Lado Direito: Formulário */
.right-panel {
	flex: 1;
	background-color: var(--dark-bg);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 60px 80px;
	position: relative;
}

.login-box {
	width: 100%;
	max-width: 380px;
	margin: auto;
}

.form-header {
	margin-bottom: 30px;
}

.form-header h2 {
	font-size: 32px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.5px;
	margin-bottom: 4px;
}

.form-header p {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #64748b;
}

.alert-error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #fca5a5;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 12.5px;
	margin-bottom: 20px;
}

.input-group-custom {
	margin-bottom: 20px;
}

.input-group-custom label {
	display: block;
	font-size: 12.5px;
	font-weight: 500;
	color: #cbd5e1;
	margin-bottom: 8px;
}

.input-wrapper {
	position: relative;
}

.input-field {
	width: 100%;
	height: 46px;
	background: #141715;
	border: 1px solid #232a25;
	border-radius: 8px;
	color: #ffffff;
	padding: 10px 14px;
	font-size: 13.5px;
	outline: none;
	transition: all 0.2s ease;
}

.input-field:focus {
	border-color: var(--primary-color);
	background: #181d1a;
	box-shadow: 0 0 0 3px rgba(1, 99, 52, 0.25);
}

.input-field::placeholder {
	color: #475569;
}

.toggle-password {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	cursor: pointer;
	font-size: 14px;
}

.toggle-password:hover {
	color: #cbd5e1;
}

.form-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 25px;
}

.checkbox-container {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #94a3b8;
	cursor: pointer;
}

.checkbox-container input {
	accent-color: var(--primary-color);
	width: 15px;
	height: 15px;
	cursor: pointer;
}

.btn-submit {
	width: 100%;
	height: 48px;
	background-color: var(--primary-color);
	border: none;
	border-radius: 8px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
}

.btn-submit:hover {
	background-color: var(--primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(1, 99, 52, 0.35);
}

.footer-copyright {
	text-align: center;
	font-size: 11.5px;
	color: #475569;
}

.footer-copyright a {
	color: #86efac;
	text-decoration: none;
	font-weight: 500;
}

.footer-copyright a:hover {
	text-decoration: underline;
}

/* Responsividade */
@media (max-width: 1024px) {
	.left-panel {
		display: none;
	}

	.right-panel {
		padding: 40px 20px;
	}
}