@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   🎨 TEMA - CORES PERSONALIZÁVEIS
   ============================================

   Para alterar a cor do tema, modifique apenas as 4 variáveis abaixo.
   Copie e cole um dos conjuntos de cores abaixo!

   PALETAS DISPONÍVEIS:

   🔵 AZUL MODERNO (atual):
      --theme-primary: #3b82f6;
      --theme-primary-light: #60a5fa;
      --theme-primary-rgb: 59, 130, 246;
      --theme-primary-light-rgb: 96, 165, 250;

   💜 ROXO/VIOLETA:
      --theme-primary: #7c3aed;
      --theme-primary-light: #a855f7;
      --theme-primary-rgb: 124, 58, 237;
      --theme-primary-light-rgb: 168, 85, 247;

   🟢 VERDE/ESMERALDA:
      --theme-primary: #10b981;
      --theme-primary-light: #34d399;
      --theme-primary-rgb: 16, 185, 129;
      --theme-primary-light-rgb: 52, 211, 153;

   🔴 VERMELHO/ROSA:
      --theme-primary: #f43f5e;
      --theme-primary-light: #fb7185;
      --theme-primary-rgb: 244, 63, 94;
      --theme-primary-light-rgb: 251, 113, 133;

   🟠 LARANJA:
      --theme-primary: #f97316;
      --theme-primary-light: #fb923c;
      --theme-primary-rgb: 249, 115, 22;
      --theme-primary-light-rgb: 251, 146, 60;

   🩵 CIANO/TEAL:
      --theme-primary: #06b6d4;
      --theme-primary-light: #22d3ee;
      --theme-primary-rgb: 6, 182, 212;
      --theme-primary-light-rgb: 34, 211, 238;

   🌸 ROSA/PINK:
      --theme-primary: #ec4899;
      --theme-primary-light: #f472b6;
      --theme-primary-rgb: 236, 72, 153;
      --theme-primary-light-rgb: 244, 114, 182;

   💛 ÂMBAR/DOURADO:
      --theme-primary: #f59e0b;
      --theme-primary-light: #fbbf24;
      --theme-primary-rgb: 245, 158, 11;
      --theme-primary-light-rgb: 251, 191, 36;

   ============================================ */

:root {
	/* ======================================
	   🎨 COR DO TEMA - ALTERE AQUI!
	   Copie uma paleta dos comentários acima
	   ====================================== */
	--theme-primary: #3b82f6;
	--theme-primary-light: #60a5fa;
	--theme-primary-rgb: 59, 130, 246;
	--theme-primary-light-rgb: 96, 165, 250;

	/* Variações automáticas baseadas na cor primária */
	--theme-glow: rgba(var(--theme-primary-rgb), 0.4);
	--theme-glow-light: rgba(var(--theme-primary-rgb), 0.2);
	--theme-glow-strong: rgba(var(--theme-primary-rgb), 0.6);
	--theme-border: rgba(var(--theme-primary-rgb), 0.2);
	--theme-border-hover: rgba(var(--theme-primary-rgb), 0.35);
	--theme-border-focus: rgba(var(--theme-primary-rgb), 0.5);
	--theme-bg-subtle: rgba(var(--theme-primary-rgb), 0.08);
	--theme-bg-hover: rgba(var(--theme-primary-rgb), 0.12);
	--theme-bg-active: rgba(var(--theme-primary-rgb), 0.15);
	--theme-gradient: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
}

:root[data-bs-theme="light2"] {

	--bg-primary: #ffffff;
	--bg-secondary: #f5f5f5;
	--text-primary: #333333;
	--text-secondary: #666666;
	--border-color: transparent;
	--accent-color: #007bff;

	--primary-color: #0d6efd;
	--secondary-color: #6c757d;
	--success-color: #198754;
	--info-color: #0dcaf0;
	--warning-color: #ffc107;
	--danger-color: #dc3545;
	--light-color: #f8f9fa;
	--dark-color: #212529;

	--czs-card-border-color: #575757;
	--czs-card-border-radius: 14px;
	--czs-card-box-shadow: 0 0px 15px -5px rgba(0, 0, 0, 1.0), 0 0px 0px 1px rgba(255 255 255 / 25%);

	--czs-label-color: #333333;

	--czs-dropdown-item-hover: #f7f7f7;

	--czs-input-bg: #ffffff;
	--czs-input-bg-focus: #ffffff;

	--czs-select2-bg-dropdown: #ffffff;
	--czs-select2-arrow-color: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	--czs-select2-bg-dropdown-hover: #f8f9fa;
	--czs-select2-bg-dropdown-active: var(--accent-color);
	--czs-select2-bg-dropdown-search: #ffffff;

	--czs-table-bg-state: #FFF;
	--czs-table-hover-bg: inset 0 0 0 9999px rgba(var(--dt-row-hover), 0.075);

	--czs-table-overlay-color: rgba(255, 255, 255, 0.9);

	--czs-stat-box-bg: #f8fafc;
	--czs-stat-box-bg-rgb: 248, 250, 252;

	--czs-tab-content-bg: #f8fafc;

	--czs-profile-info-card-steam-border-color: #2860A6;
	--czs-profile-info-card-discord-border-color: #5865F2;
	--czs-profile-info-card-battlemetrics-border-color: #F26522;
	--czs-profile-info-card-tebex-border-color: #00A8E1;

	--czs-select2-min-height: 46px;

    --cz-primary: #0d6efd;
    --cz-primary-rgb: 13, 110, 253;
    --cz-bg-dark: #0d1117;
    --cz-bg-card: #161b22;
    --cz-bg-card-hover: #1c2128;
    --cz-bg-input: #21262d;
    --cz-border-color: #30363d;
    --cz-text-primary: #e6edf3;
    --cz-text-muted: #8b949e;

}

:root {

	/* --bg-primary: #1a1a1a; */
	--bg-primary: color-mix(in oklab,hsl(231.429 calc(1*6.542%) 20.98% /1) 100%,var(--theme-base-color,#000) var(--theme-base-color-amount,0%));

	/* --bg-secondary: #2c2d32; */
	--bg-secondary: #2a2b30;

	--text-primary: #ffffff;
	--text-secondary: #cccccc;
	/* --border-color: #404040; */
	--border-color: transparent;
	--accent-color: #0d6efd;

	--primary-color: #0d6efd;
	--secondary-color: #6c757d;
	--success-color: #198754;
	--info-color: #0dcaf0;
	--warning-color: #ffc107;
	--danger-color: #dc3545;
	--light-color: #1a1c1f;
	--dark-color: #212529;

	--czs-card-border-color: #575757;
	--czs-card-box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.20), 0 0px 4px -1px rgba(0 0 0 / 100%);

	--czs-label-color: #A1A1A1;

	--czs-dropdown-item-hover: #1e2124;

	--czs-input-bg: color-mix(in oklab,hsl(0 calc(1*0%) 0%/0.35) 100%,hsl(var(--theme-base-color-hsl,0 0% 0%)/0.2) var(--theme-base-color-amount,0%));
	--czs-input-bg-focus: color-mix(in oklab,hsl(0 calc(1*0%) 0%/0.4) 100%,hsl(var(--theme-base-color-hsl,0 0% 0%)/0.2) var(--theme-base-color-amount,0%));

	--czs-select2-bg-dropdown: #1b1c1f;
	--czs-select2-arrow-color: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23DEE2E6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	--czs-select2-bg-dropdown-hover: #27292d;
	--czs-select2-bg-dropdown-active: var(--accent-color);
	--czs-select2-bg-dropdown-search: #161719;

	--czs-table-bg-state: #212226;
	--czs-table-hover-bg: inset 0 0 0 9999px rgba(0 0 0 / 15%);

	--czs-table-overlay-color: rgb(24 24 28 / 90%);

	--czs-stat-box-bg: #1c1d20;
	--czs-stat-box-bg-rgb: 28, 29, 32;

	--czs-tab-content-bg: #212529;

	--czs-profile-info-card-steam-border-color: #2860A6;
	--czs-profile-info-card-discord-border-color: #5865F2;
	--czs-profile-info-card-battlemetrics-border-color: #F26522;
	--czs-profile-info-card-tebex-border-color: #00A8E1;

	--czs-select2-padding-left: 1.25rem;

	--btn-disabled-color: rgb(91 189 27);
	--btn-disabled-color-hover: rgb(91 189 27);

}

html[data-bs-theme] ::placeholder,
html[data-bs-theme] .form-control::placeholder,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__placeholder,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__placeholder {
	color: var(--text-secondary);
	font-size: 0.95rem;
	opacity: 0.7;
}

/* Aplicar as variáveis aos elementos */
body,
html {
	background-color: var(--bg-primary);
}

body {
	color: var(--text-primary);
	font-family: "Quicksand", sans-serif;
}

a,
.btn {
	text-decoration: none;
}

a,
.btn-link,
.nav-link {
	color: var(--text-secondary);
}

	a:hover,
	.btn-link:hover,
	.nav-link:hover,
	.nav-link:focus,
	.nav-link:active,
	.nav-link.active,
	.nav-link.show,
	.nav-link.show:focus,
	.nav-link.show:active,
	.nav-link.show:hover,
	.nav-link.show.active,
	.nav-link.show.active:focus,
	.nav-link.show.active:hover,
	.nav-link.show.active:active,
	.breadcrumb-item.active {
		color: var(--text-primary);
	}

.btn.active, .btn.show,
.btn-check:checked+.btn,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
	border: 1px solid transparent;
}

/* Melhorias na navbar */
.navbar {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 1000;
}

.navbar-brand img {
	transition: transform 0.2s ease-in-out;
}

.text-success {
    color: #6cff00 !important;
}

#serversTable .bi-circle-fill.text-success {
    box-shadow: 0px 0px 10px -2px rgb(6 255 0 / 80%);
    font-size: .7568rem;
}

.border-radius-0,
.table-responsive.border-radius-0 table.dataTable thead th:last-child,
.table-responsive.border-radius-0 table.dataTable thead th:first-child,
.table-responsive.border-radius-0 table.dataTable tbody tr:last-child td:last-child,
.table-responsive.border-radius-0 table.dataTable tbody tr:last-child td:first-child {
	border-radius: 0 !important;
}

/* Melhorias nos cards */
.card,
.welcome-card {
	--bs-card-border-radius: 0.75rem;
	--bs-card-border-color: var(--czs-card-border-color);
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
	border: var(--bs-card-border-width) solid var(--bs-card-border-color);
}

.card-header:first-child {
	border-radius: var(--bs-card-border-radius) var(--bs-card-border-radius) 0 0;
}

.card.card-collapse .card-header {
    border-bottom-left-radius: var(--bs-card-border-radius);
    border-bottom-right-radius: var(--bs-card-border-radius);
}

.card-header {
	--card-header-padding: 0.85rem 1.35rem 0.0rem;
	background-color: transparent;
	border-bottom: 0;
	padding: var(--card-header-padding);
}

.card-body {
	--card-body-padding: 1.0rem 1.25rem 1.5rem;
	padding: var(--card-body-padding);
}

.card-body label {
	font-size: 0.97rem;
	color: var(--czs-label-color);
}

.card-body p {
	font-size: 1.15rem;
	font-weight: 500;
	margin-bottom: 0.2rem;
}

.card.card-console .bg-dark {
	background-color: #0C0E10!important;
}

.card-footer:last-child {
    border-radius: 0 0 1.0rem 1.0rem;
}

.form-control,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection {
	background-color: var(--czs-input-bg);
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted {
	color: var(--bs-body-color);
}

	html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown {
		background-color: var(--czs-select2-bg-dropdown);
		border: 0;
	}

		html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted {
			background-color: var(--czs-select2-bg-dropdown-hover);
		}

		html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
		html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
			background-color: var(--czs-select2-bg-dropdown-active);
		}

		html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
			background-color: var(--czs-select2-bg-dropdown-search);
			border: 0;
		}

.form-control:focus {
	background-color: var(--czs-input-bg-focus);
}

.form-control[readonly] {
	cursor: not-allowed;
	filter: grayscale(1.0) opacity(0.6) brightness(1.15);
}

.form-control,
html[data-bs-theme] .dataTables_filter input,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection {
	border: 1px solid var(--bs-border-color);
}

	html[data-bs-theme] .form-control:focus,
	html[data-bs-theme] .dataTables_filter input:focus	,
	html[data-bs-theme] .select2-container--bootstrap-5.select2-container--open .select2-selection,
	html[data-bs-theme] .select2-container--bootstrap-5.select2-container--focus .select2-selection,
	html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
		border: 1px solid var(--primary-color);
	}

	.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
		border-color: var(--bs-border-color);
	}

.form-select:focus,
.form-control:focus,
html[data-bs-theme] .dataTables_filter input:focus,
html[data-bs-theme] .select2-container--bootstrap-5.select2-container--open .select2-selection,
html[data-bs-theme] .select2-container--bootstrap-5.select2-container--focus .select2-selection,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
	box-shadow: none;
}

.page-link.disabled,
.disabled>.page-link {
	--link-disabled-bg-color: #3E3F45;
	background-color: var(--link-disabled-bg-color);
	border-color: var(--link-disabled-bg-color);
	color: #707177;
	pointer-events: none;
	cursor: not-allowed;
	transition: all 0.2s ease-in-out;
}

[data-bs-theme=dark] .form-select {
    background-color: #1b1c1f;
    padding: 0.55rem 2.5rem 0.55rem 0.95rem;
    border-radius: 0.45rem;
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--single {
	background-image: var(--czs-select2-arrow-color);
}

/* DataTables filter - ver seção DATATABLES MODERNOS abaixo */

.form-control,
html[data-bs-theme] .dataTables_filter input,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection {
	padding: .375rem 2.25rem .375rem .75rem;
}

	html[data-bs-theme] .dt-action-buttons .form-control {
		line-height: 2.0;
		max-width: 500px;
		min-width: 250px;
		padding: .375rem 0.75rem .375rem .75rem;
	}

.form-control,
html[data-bs-theme] .dataTables_filter input,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
	--datatables-input-padding-y: .5rem;
	line-height: 1.75;
	margin-left: -0.25rem !important;
	padding: var(--datatables-input-padding-y) 0.5rem var(--datatables-input-padding-y) var(--czs-select2-padding-left);
}

	.input-group>.form-select,
	.input-group>.form-control,
	.input-group>.form-floating {
		border-right: 0;
	}

	html[data-bs-theme] .dataTables_filter input {
		padding-left: calc(var(--czs-select2-padding-left) + 1.5rem);
	}

		html[data-bs-theme] div.dataTables_wrapper .dataTables_filter input {
			padding-left: 2.75rem !important;
			width: 400px;
		}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--single {
	min-height: calc(1.5em + .75rem + 4px);
	padding: .375rem 2.25rem .375rem .75rem;
}

	html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-search {
		display: inline;
	}

	html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-search,
	html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered,
	html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
		display: inline;
	}

		html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-search,
		html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
			display: flex;
			gap: 0.5rem;
			padding: 0;
		}

		html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple span.select2-search.select2-search--inline {
			align-items: center;
			flex-basis: content;
			min-height: 33px;
			position: absolute;
		}

		html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
			padding: 0 0 0 calc(var(--czs-select2-padding-left) - 0.5rem);
		}

/* ===================================
   Select2 Multiple
   =================================== */

/* Container principal do select multiple */
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple {
	border-radius: 0.5rem;
	min-height: 3.35rem;
	padding: 0.25rem 0.5rem;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	background: #141618;
	border: 1px solid var(--bs-border-color);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	margin-top: 3px;
}

/* Estado focus melhorado */
html[data-bs-theme] .select2-container--bootstrap-5.select2-container--focus .select2-selection--multiple,
html[data-bs-theme] .select2-container--bootstrap-5.select2-container--open .select2-selection--multiple {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
	background-color: var(--czs-input-bg-focus);
}

/* Tags/Chips selecionados - Design Moderno */
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
	border: none;
	border-radius: 0.356rem;
	background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 85%, #000));
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	padding: 0.25rem 0.75rem 0.25rem 0.65rem;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear:hover,
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear:hover {
	background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") 50% / .75rem auto no-repeat;
}

/* Hover effect nas tags */
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--primary-color) 90%, #fff),
		color-mix(in srgb, var(--primary-color) 75%, #000));
}

/* Efeito de brilho sutil nas tags */
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease-in-out;
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice:hover::before {
	left: 100%;
}

/* Botão de remover modernizado */
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
	background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") 50% / 10px auto no-repeat;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	transition: all 0.2s ease;
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove:hover {
	background-color: rgba(255, 255, 255, 0.15);
	transform: scale(1.1);
}

/* Campo de busca dentro do select */
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-search--inline .select2-search__field {
	background: transparent;
	border: none;
	outline: none;
	font-size: 0.9rem;
	color: var(--text-primary);
	min-width: 100px;
	margin: 0.15rem 0;
	padding: 0.2rem 0.5rem;
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
	color: var(--text-secondary);
	opacity: 0.7;
}

/* Placeholder quando nenhum item está selecionado */
html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__placeholder {
	color: var(--text-secondary);
	font-size: 0.9rem;
	opacity: 0.7;
	margin: 0.25rem 0.5rem;
	font-style: italic;
}

/* Dropdown modernizado */
html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown {
	border-radius: 0 0 0.75rem 0.75rem;
	border: 1px solid var(--czs-card-border-color);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	margin: 0 0 0 -4px;
	overflow: hidden;
	backdrop-filter: blur(8px);
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-search {
	padding: 0.75rem;
	background: var(--czs-select2-bg-dropdown-search);
	border-bottom: 1px solid var(--czs-card-border-color);
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
	border-radius: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: var(--czs-input-bg);
	border: 1px solid var(--czs-card-border-color);
	transition: all 0.2s ease;
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
}

/* Opções no dropdown */
html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
	border-radius: 0.456rem;
	font-weight: 500;
	margin-bottom: 0.25rem;
	padding: 0.5rem 0.5rem!important;
	position: relative;
	transition: all 0.15s ease;
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted {
	background: #28292B;
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
	background: linear-gradient(135deg, #063c8d, color-mix(in srgb, #0059dd 85%, #000));
	color: #ffffff;
	position: relative;
	text-shadow: 1px 1px 2px rgba(0 0 0 / 90%);
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected::after {
	content: '✓';
	position: absolute;
	right: 1rem;
	font-weight: bold;
	font-size: 1rem;
}

/* Grupos no dropdown */
html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__group {
	background: var(--czs-select2-bg-dropdown);
	color: var(--text-secondary)!important;
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.5rem 1rem;
	border-bottom: 1px solid var(--czs-card-border-color);
	z-index: 10;
    width: 100%;
    display: inline-block;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options:not(.select2-results__options--nested) {
	max-height: 30rem;
}

/* Animação de entrada para o dropdown */
@keyframes select2DropdownFadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

html[data-bs-theme] .select2-container--bootstrap-5.select2-container--open .select2-dropdown {
	animation: select2DropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsividade */
@media (max-width: 768px) {
	html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
		font-size: 0.75rem;
		padding: 0.3rem 0.6rem 0.3rem 0.5rem;
	}

	html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
		padding: 0.65rem 0.85rem;
	}
}

/* Estado desabilitado */
html[data-bs-theme] .select2-container--bootstrap-5.select2-container--disabled .select2-selection--multiple {
	background-color: var(--bs-secondary-bg);
	opacity: 0.65;
	cursor: not-allowed;
}

html[data-bs-theme] .select2-container--bootstrap-5.select2-container--disabled .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
	background: var(--bs-secondary);
	opacity: 0.8;
}

/* ===================================
   Select2 Modern JavaScript - Estilos de Feedback
   =================================== */

/* Animações de feedback para seleções */
@keyframes select2PulseSuccess {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), 0.7);
	}
	70% {
		transform: scale(1.02);
		box-shadow: 0 0 0 10px rgba(var(--bs-success-rgb), 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), 0);
	}
}

@keyframes select2PulseRemove {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0.7);
	}
	70% {
		transform: scale(0.98);
		box-shadow: 0 0 0 10px rgba(var(--bs-danger-rgb), 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), 0);
	}
}

.select2-modern-pulse-success .select2-selection--multiple {
	animation: select2PulseSuccess 0.3s ease-out;
}

.select2-modern-pulse-remove .select2-selection--multiple {
	animation: select2PulseRemove 0.3s ease-out;
}

/* Estado aberto melhorado */
.select2-container--bootstrap-5.select2-modern-open .select2-selection--multiple {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
}

/* Dropdown com animação melhorada */
.select2-modern-dropdown-enter {
	animation: select2DropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	transform-origin: top center;
}

/* Contador de seleções */
.select2-selection-counter {
	font-size: 0.8rem;
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
	margin-top: 0.25rem;
}

.select2-selection-counter i {
	font-size: 0.75rem;
	opacity: 0.8;
}

.select2-selection-counter.text-success {
	color: var(--success-color) !important;
}

.select2-selection-counter.text-warning {
	color: var(--warning-color) !important;
}

.select2-selection-counter.text-danger {
	color: var(--danger-color) !important;
}

/* Opções modernas no dropdown */
.select2-modern-option {
	display: flex;
	align-items: center;
	transition: all 0.15s ease;
}

.select2-modern-option i {
	color: var(--primary-color);
	transition: all 0.15s ease;
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted .select2-modern-option i {
	color: var(--primary-color);
	transform: scale(1.1);
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected .select2-modern-option i {
	color: #ffffff;
}

/* Tags modernas customizadas */
.select2-modern-tag {
	display: inline-flex;
	align-items: center;
	background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 85%, #000));
	color: #ffffff;
	border-radius: 50rem;
	padding: 0.35rem 0.75rem 0.35rem 0.65rem;
	margin: 0.15rem 0.25rem 0.15rem 0;
	font-size: 0.8rem;
	font-weight: 600;
	gap: 0.4rem;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.select2-modern-tag:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--primary-color) 90%, #fff),
		color-mix(in srgb, var(--primary-color) 75%, #000));
}

.select2-modern-tag-text {
	flex: 1;
}

.select2-modern-tag-remove {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	cursor: pointer;
}

.select2-modern-tag-remove:hover {
	background-color: rgba(255, 255, 255, 0.15);
	transform: scale(1.1);
}

.select2-modern-tag-remove i {
	font-size: 0.8rem;
	color: #ffffff;
}

/* Melhorias de acessibilidade */
.select2-container--bootstrap-5:focus-within .select2-selection--multiple {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Indicador de carregamento moderno */
.select2-container--bootstrap-5 .select2-selection--multiple.select2-loading::after {
	content: '';
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	border: 2px solid var(--primary-color);
	border-top-color: transparent;
	border-radius: 50%;
	animation: select2LoadingSpinner 1s linear infinite;
}

@keyframes select2LoadingSpinner {
	0% { transform: translateY(-50%) rotate(0deg); }
	100% { transform: translateY(-50%) rotate(360deg); }
}

/* Tooltip para tags */
.select2-modern-tag[title]:hover::before {
	content: attr(title);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--bs-dark);
	color: #ffffff;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.7rem;
	white-space: nowrap;
	z-index: 1000;
	margin-bottom: 0.25rem;
}

/* Estados de validação */
.was-validated .select2-container--bootstrap-5 .select2-selection--multiple:invalid,
.select2-container--bootstrap-5 .select2-selection--multiple.is-invalid {
	border-color: var(--danger-color);
	box-shadow: 0 0 0 3px rgba(var(--bs-danger-rgb), 0.1);
}

.was-validated .select2-container--bootstrap-5 .select2-selection--multiple:valid,
.select2-container--bootstrap-5 .select2-selection--multiple.is-valid {
	border-color: var(--success-color);
	box-shadow: 0 0 0 3px rgba(var(--bs-success-rgb), 0.1);
}

/* Modo compacto para espaços reduzidos */
.select2-compact .select2-container--bootstrap-5 .select2-selection--multiple {
	min-height: 2.25rem;
	padding: 0.15rem 0.4rem;
}

.select2-compact .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
	padding: 0.2rem 0.5rem 0.2rem 0.4rem;
	margin: 0.1rem 0.2rem 0.1rem 0;
	font-size: 0.7rem;
}

/* Modo escuro específico - melhorias */
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
	backdrop-filter: blur(12px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .select2-modern-tag::before {
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Print styles */
@media print {
	.select2-container--bootstrap-5 .select2-selection--multiple {
		border: 1px solid #000 !important;
		background: #fff !important;
		color: #000 !important;
	}

	.select2-modern-tag {
		background: #000 !important;
		color: #fff !important;
		box-shadow: none !important;
	}
}

html[data-bs-theme] .select2-container--bootstrap-5 .select2-selection {
	display: flex;
	min-height: 52px;
	padding: .5rem 2.25rem .5rem .75rem;
}

/* Avatar e badges */
.avatar-sm {
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.avatar-title {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.375rem;
}

.bg-primary-subtle {
	background-color: rgba(13, 110, 253, 0.1);
}

/* Melhorias nos botões */
.btn {
	font-weight: 500;
	letter-spacing: 0.025em;
	transition: all 0.2s ease-in-out;
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
	border-color: var(--btn-disabled-color);
	color: var(--btn-disabled-color);
}

.btn:hover {
    background-color: var(--btn-disabled-color-hover);
    border-color: var(--btn-disabled-color-hover);
}

.btn.btn-outline-secondary:hover {
	position: relative;
	top: -2px;
}

.btn-primary {
	box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(13, 110, 253, 0.3);
}

.bg-body {
	background-color: rgba(var(--theme-primary-rgb), 0.08) !important;
}

.bg-light {
	background-color: var(--bg-secondary)!important;
}

.text-secondary {
	color: #BBBBBB !important;
}

h5 {
	font-size: 1.25rem;
	font-weight: 600;
}

.dropdown-menu {
    --bs-dropdown-border-width: 0;
    --bs-dropdown-box-shadow: 0 6px 20px 0px rgba(0, 0, 0, .1);
    --bs-dropdown-border-radius: 0.5rem;
	--bs-dropdown-padding-y: 0;
	--bs-dropdown-font-size: 0.856rem;
	--bs-dropdown-divider-bg: rgba(0, 0, 0, 0.085);
    box-shadow: var(--bs-dropdown-box-shadow);
    min-width: 14em;
}

.dropdown-divider {
	margin: 0;
}

html[data-bs-theme] .dropdown-item {
	font-weight: 600;
	padding: 0.75rem 1.15rem;
}

html[data-bs-theme] .dropdown-item:focus,
html[data-bs-theme] .dropdown-item:hover {
	background-color: rgba(var(--theme-primary-rgb), 0.15);
}

	html[data-bs-theme] .dropdown-menu li:first-child .dropdown-item:focus,
	html[data-bs-theme] .dropdown-menu li:first-child .dropdown-item:hover {
		border-radius: 0.5rem 0.5rem 0 0;
	}

	html[data-bs-theme] .dropdown-menu li:last-child .dropdown-item:focus,
	html[data-bs-theme] .dropdown-menu li:last-child .dropdown-item:hover {
		border-radius: 0 0 0.5rem 0.5rem;
	}

html[data-bs-theme],
.nav-tabs-modern-wrapper {
	overflow-y: hidden;
}

/* Melhorias nas abas modernas */
.nav-tabs-modern-wrapper {
	position: relative;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

.nav-tabs-modern-wrapper::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.nav-tabs-modern {
	border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.1);
	padding-bottom: 0;
	margin-bottom: 0;
	display: inline-flex;
	width: 100%;
}

.nav-tabs-modern .nav-item {
	margin-bottom: -2px;
}

.nav-tabs-modern .nav-link {
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	transition: all 0.2s ease;
	color: var(--text-secondary);
	padding: 0.75rem 1.5rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.nav-tabs-modern .nav-link:hover {
	background-color: rgba(var(--bs-primary-rgb), 0.05);
	color: var(--text-primary);
}

.nav-tabs-modern .nav-link.active {
	color: var(--accent-color);
	background-color: transparent;
	border-bottom: 2px solid var(--accent-color);
}

/* Efeito de loading concluído nas abas */
.nav-tabs-modern .nav-link.loaded {
	animation: tabLoadComplete 1s ease;
}

@keyframes tabLoadComplete {
	0% {
		box-shadow: 0 0 0 2px rgba(var(--bs-success-rgb), 0);
	}
	20% {
		box-shadow: 0 0 0 4px rgba(var(--bs-success-rgb), 0.4);
	}
	100% {
		box-shadow: 0 0 0 2px rgba(var(--bs-success-rgb), 0);
	}
}

.nav-tabs-modern .nav-link i {
	font-size: 1.1rem;
}

/* Estilo para spinner nas abas */
.nav-tabs-modern .nav-link .spinner-border {
	width: 1rem;
	height: 1rem;
	border-width: 0.15rem;
}

.tab-content-modern {
	background-color: var(--bg-secondary);
	border: 1px solid var(--czs-card-border-color);
	border-radius: 0 0 var(--czs-card-border-radius) var(--czs-card-border-radius);
}

/* Animações para o conteúdo das abas */
.tab-content-modern .tab-pane {
	transition: opacity 0.15s linear;
}

.tab-content-modern .tab-pane.fade:not(.show) {
	display: block !important;
	opacity: 0;
	height: 0;
	overflow: hidden;
	padding: 0;
}

.tab-content-modern .tab-pane.fade.show {
	height: auto;
	opacity: 1;
	animation: fadeContentIn 0.25s ease-in-out;
}

@keyframes fadeContentIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Estilos para o conteúdo das abas */
.profile-info-card {
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.profile-info-card:hover {
	box-shadow: 0 3px 10px rgba(0,0,0,0.05);
	transform: translateY(-1px);
}

.bg-steam {
	background-color: var(--czs-profile-info-card-steam-border-color) !important;
}

.profile-info-card.steam-card {
	border-left-color: var(--czs-profile-info-card-steam-border-color);
}

.profile-info-card.discord-card {
	border-left-color: var(--czs-profile-info-card-discord-border-color);
}

.profile-info-card.battlemetrics-card {
	border-left-color: var(--czs-profile-info-card-battlemetrics-border-color);
}

.profile-info-card.tebex-card {
	border-left-color: var(--czs-profile-info-card-tebex-border-color);
}

.profile-info-card .info-title {
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: var(--text-primary);
	display: flex;
	align-items: center;
}

.profile-info-card .info-title i {
	font-size: 1.1rem;
	margin-right: 0.5rem;
	opacity: 0.8;
}

.profile-info-card .info-value {
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--text-primary);
}

.profile-info-card .info-meta {
	color: var(--text-secondary);
	font-size: 0.8rem;
	margin-top: 0.25rem;
}

.profile-info-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.profile-info-grid .profile-info-card {
	flex: 1 0 220px; /* Crescer igualmente, não encolher, base de 220px para melhor acomodar 4 cards */
	min-width: 0; /* Evita overflow horizontal */
	overflow: hidden; /* Previne que o conteúdo cause scroll horizontal */
}

/* Configuração especial para quando há poucos elementos */

/* Quando há apenas um elemento */
.profile-info-grid .profile-info-card:only-child {
	flex: 1 1 100%;
	max-width: 100%;
}

/* Quando há apenas dois elementos */
.profile-info-grid .profile-info-card:first-child:nth-last-child(2),
.profile-info-grid .profile-info-card:first-child:nth-last-child(2) ~ .profile-info-card {
	flex: 1 1 calc(50% - 0.5rem);
	max-width: calc(50% - 0.5rem);
}

/* Quando há apenas três elementos */
.profile-info-grid .profile-info-card:first-child:nth-last-child(3),
.profile-info-grid .profile-info-card:first-child:nth-last-child(3) ~ .profile-info-card {
	flex: 1 1 calc(33.333% - 0.67rem);
	max-width: calc(33.333% - 0.67rem);
}

.connect-prompt {
	background: linear-gradient(145deg, rgba(var(--bs-primary-rgb), 0.05) 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
	border-radius: 16px;
	padding: 2.5rem 1.5rem;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.connect-prompt .icon-large {
	font-size: 3rem;
	margin-bottom: 1.25rem;
	color: var(--text-secondary);
}

.tab-content-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
}

.status-badge {
	padding: 0.4rem 0.75rem;
	border-radius: 50rem;
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	font-size: 0.8rem;
}

.status-badge i {
	margin-right: 0.35rem;
	font-size: 0.9rem;
}

/* Status badges para doações */
.badge.bg-success {
	background-color: #28a745 !important;
}

.badge.bg-danger {
	background-color: #dc3545 !important;
}

.badge.bg-warning {
	background-color: #ffc107 !important;
	color: #212529 !important;
}

.badge.bg-secondary {
    background-color: #43474b !important;
    color: #BBBBBB;
}

/* Responsividade para abas */
@media (max-width: 768px) {
	.nav-tabs-modern .nav-link {
		padding: 0.6rem 1rem;
	}

	.nav-tabs-modern .nav-link span {
		display: none;
	}

	.nav-tabs-modern .nav-link i {
		font-size: 1.2rem;
		margin: 0;
	}

	.profile-info-grid {
		flex-direction: column;
	}

	.profile-info-grid .profile-info-card {
		flex: 1 0 100%;
	}

	.profile-info-card {
		padding: 1rem;
	}

	.profile-info-card .info-title {
		font-size: 0.8rem;
	}

	.profile-info-card .info-value {
		font-size: 1rem;
	}
}

/* Breakpoint para tablets */
@media (min-width: 769px) and (max-width: 991px) {
	.profile-info-grid .profile-info-card {
		flex: 1 0 calc(50% - 1rem); /* Dois cards por linha em tablets */
	}
}

/* Breakpoint para desktop */
@media (min-width: 992px) and (max-width: 1199px) {
	.profile-info-grid .profile-info-card {
		flex: 1 0 calc(33.333% - 1rem); /* Três cards por linha em desktop médio */
		max-width: calc(33.333% - 1rem);
	}
}

/* Breakpoint para telas grandes */
@media (min-width: 1200px) {
	.profile-info-grid .profile-info-card {
		flex: 1 0 calc(25% - 1rem); /* Quatro cards por linha em telas grandes */
		max-width: calc(25% - 1rem);
	}
}

#cloneServerBtn.btn-outline-secondary:not([disabled]) {
	--bs-btn-color: var(--btn-disabled-color-hover);
	--bs-btn-border-color: var(--btn-disabled-color-hover);
}

	#cloneServerBtn.btn-outline-secondary:not([disabled]):hover {
		box-shadow: 0px 2px 10px 0px var(--btn-disabled-color);
	}

/* Tabelas - estilos base (ver DATATABLES MODERNOS para estilos completos) */
html[data-bs-theme] .table>:not(caption)>*>* {
	background-color: transparent;
	color: var(--bs-body-color);
	border-color: rgba(255, 255, 255, 0.05);
}

div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child,
div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child {
	padding: 0;
	margin: 0;
}

/* ============================================
   DATATABLES - ESTILOS MODERNOS UNIFICADOS
   Tema: Roxo/Violeta (var(--theme-primary), var(--theme-primary-light))
   ============================================ */

/* Container principal */
.dataTables_wrapper {
	padding: 1.25rem 0 0.5rem 0;
}

/* ---- CONTROLES SUPERIORES ---- */

/* Input de busca */
.dataTables_filter {
	position: relative;
}

.dataTables_filter label {
	display: flex;
	align-items: center;
	position: relative;
	margin: 0;
	font-weight: 500;
	color: var(--text-secondary);
	font-size: 0.875rem;
}

.dataTables_filter label::before {
	content: '\f52a';
	font-family: 'bootstrap-icons';
	position: absolute;
	left: 1rem;
	color: rgba(var(--theme-primary-light-rgb), 0.6);
	pointer-events: none;
	z-index: 1;
	font-size: 0.9rem;
}

.dataTables_filter input {
	width: 100%;
	max-width: 350px;
	height: 44px;
	padding: 0.5rem 1rem 0.5rem 2.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-primary);
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
	border-radius: 10px;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dataTables_filter input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.dataTables_filter input:hover {
	border-color: rgba(var(--theme-primary-rgb), 0.35);
	background: rgba(0, 0, 0, 0.3);
}

.dataTables_filter input:focus {
	border-color: var(--theme-primary);
	background: rgba(0, 0, 0, 0.35);
	box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.15);
	outline: none;
}

.dataTables_filter input:focus + label::before,
.dataTables_filter label:focus-within::before {
	color: var(--theme-primary-light);
}

/* Select de quantidade */
.dataTables_length label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-weight: 500;
	color: var(--text-secondary);
	font-size: 0.875rem;
}

.dataTables_length select {
	height: 44px;
	padding: 0.5rem 2.25rem 0.5rem 1rem;
	font-size: 0.875rem;
	color: var(--text-primary);
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dataTables_length select:hover {
	border-color: rgba(var(--theme-primary-rgb), 0.35);
}

.dataTables_length select:focus {
	border-color: var(--theme-primary);
	box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.15);
	outline: none;
}

/* ---- TABELA ---- */

table.dataTable {
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 0 !important;
	width: 100% !important;
	border-radius: 14px;
	overflow: hidden;
}

/* Cabeçalho - Design Moderno */
table.dataTable thead {
	position: relative;
}

table.dataTable thead::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg,
		transparent,
		rgba(var(--theme-primary-rgb), 0.4) 20%,
		rgba(var(--theme-primary-light-rgb), 0.5) 50%,
		rgba(var(--theme-primary-rgb), 0.4) 80%,
		transparent
	);
}

table.dataTable thead th {
	background: linear-gradient(180deg,
		rgba(var(--theme-primary-rgb), 0.08) 0%,
		rgba(var(--theme-primary-rgb), 0.04) 100%
	);
	color: rgba(255, 255, 255, 0.7);
	font-family: 'Outfit', 'Quicksand', sans-serif;
	font-weight: 600;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.9rem 1rem;
	border: none;
	border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.15);
	vertical-align: middle;
	white-space: nowrap;
	position: relative;
}

/* Separador sutil entre colunas */
table.dataTable thead th:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 25%;
	height: 50%;
	width: 1px;
	background: linear-gradient(180deg, transparent, rgba(var(--theme-primary-rgb), 0.2), transparent);
}

table.dataTable thead th:first-child {
	border-top-left-radius: 14px;
	padding-left: 1.25rem;
}

table.dataTable thead th:last-child {
	border-top-right-radius: 14px;
	padding-right: 1.25rem;
}

/* Hover no cabeçalho */
table.dataTable thead th:hover {
	background: linear-gradient(180deg,
		rgba(var(--theme-primary-rgb), 0.12) 0%,
		rgba(var(--theme-primary-rgb), 0.06) 100%
	);
	color: rgba(255, 255, 255, 0.9);
}

/* Corpo */
table.dataTable tbody {
	background: rgba(0, 0, 0, 0.15);
}

table.dataTable tbody td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.85rem;
	vertical-align: middle;
}

table.dataTable tbody td:first-child {
	padding-left: 1.25rem;
}

table.dataTable tbody td:last-child {
	padding-right: 1.25rem;
}

table.dataTable tbody tr {
	transition: all 0.2s ease;
	position: relative;
}

/* Hover padrão das linhas - Moderno e Suave */
table.dataTable tbody tr:hover {
	background: linear-gradient(90deg,
		rgba(var(--theme-primary-rgb), 0.08) 0%,
		rgba(var(--theme-primary-rgb), 0.12) 50%,
		rgba(var(--theme-primary-rgb), 0.08) 100%
	) !important;
	box-shadow: inset 0 0 15px rgba(var(--theme-primary-rgb), 0.1);
}

table.dataTable tbody tr:hover td {
	color: rgba(255, 255, 255, 0.95) !important;
}

table.dataTable tbody tr:last-child td {
	border-bottom: none;
}

table.dataTable tbody tr:last-child td:first-child {
	border-bottom-left-radius: 14px;
}

table.dataTable tbody tr:last-child td:last-child {
	border-bottom-right-radius: 14px;
}

/* Linhas alternadas (zebra) - sutil */
table.dataTable tbody tr:nth-child(even) {
	background: rgba(0, 0, 0, 0.08);
}

table.dataTable tbody tr:nth-child(even):hover {
	background: linear-gradient(90deg,
		rgba(var(--theme-primary-rgb), 0.08) 0%,
		rgba(var(--theme-primary-rgb), 0.12) 50%,
		rgba(var(--theme-primary-rgb), 0.08) 100%
	) !important;
}

/* Ordenação */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
	cursor: pointer;
	position: relative;
	padding-right: 2rem;
	transition: all 0.2s ease;
}

table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_desc::before {
	content: '';
	position: absolute;
	right: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border-radius: 4px;
	background: rgba(var(--theme-primary-rgb), 0.1);
	opacity: 0;
	transition: opacity 0.2s ease;
}

table.dataTable thead th.sorting:hover::before {
	opacity: 1;
}

table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_desc::before {
	opacity: 1;
	background: rgba(var(--theme-primary-rgb), 0.25);
}

table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: 'bootstrap-icons';
	font-size: 0.65rem;
	z-index: 1;
}

table.dataTable thead th.sorting::after {
	content: '\f58e';
	color: rgba(var(--theme-primary-light-rgb), 0.4);
}

table.dataTable thead th.sorting:hover::after {
	color: rgba(var(--theme-primary-light-rgb), 0.7);
}

table.dataTable thead th.sorting_asc::after {
	content: '\f148';
	color: var(--theme-primary-light);
}

table.dataTable thead th.sorting_desc::after {
	content: '\f128';
	color: var(--theme-primary-light);
}

table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
	background: linear-gradient(180deg,
		rgba(var(--theme-primary-rgb), 0.15) 0%,
		rgba(var(--theme-primary-rgb), 0.08) 100%
	);
	color: #ffffff;
}

/* ---- BADGES NAS TABELAS ---- */

table.dataTable .badge {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.35rem 0.6rem;
	border-radius: 6px;
}

/* ---- BOTÕES DE AÇÃO ---- */

table.dataTable .btn-group {
	gap: 0.25rem;
}

table.dataTable .btn-group .btn {
	padding: 0.4rem 0.6rem;
	font-size: 0.8rem;
	border-radius: 8px;
	transition: all 0.2s ease;
}

table.dataTable .btn-group .btn:hover {
	transform: translateY(-1px);
}

table.dataTable .btn-group .btn-primary {
	background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
	border: none;
	box-shadow: 0 2px 8px rgba(var(--theme-primary-rgb), 0.3);
}

table.dataTable .btn-group .btn-primary:hover {
	box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.4);
}

table.dataTable .btn-group .btn-danger {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	border: none;
}

table.dataTable .btn-group .btn-outline-primary {
	border-color: rgba(var(--theme-primary-rgb), 0.4);
	color: var(--theme-primary-light);
}

table.dataTable .btn-group .btn-outline-primary:hover {
	background: rgba(var(--theme-primary-rgb), 0.15);
	border-color: var(--theme-primary);
	color: #ffffff;
}

/* ---- INFORMAÇÕES E PAGINAÇÃO ---- */

.dataTables_info {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.75rem 0;
}

.dataTables_paginate {
	padding: 0.75rem 0;
}

.dataTables_paginate .pagination {
	margin: 0;
	gap: 0.35rem;
}

.dataTables_paginate .page-link {
	min-width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
	border-radius: 8px;
	transition: all 0.2s ease;
}

.dataTables_paginate .page-link:hover {
	background: rgba(var(--theme-primary-rgb), 0.15);
	border-color: rgba(var(--theme-primary-rgb), 0.4);
	color: #ffffff;
	transform: translateY(-1px);
}

.dataTables_paginate .page-link:focus {
	box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.15);
}

.dataTables_paginate .paginate_button:last-child .page-link,
.dataTables_paginate .paginate_button:first-child .page-link {
	min-width: 75px;
}

.dataTables_paginate .page-item.active .page-link {
	background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 2px 10px rgba(var(--theme-primary-rgb), 0.4);
}

.dataTables_paginate .page-item.disabled .page-link {
	opacity: 0.35;
	cursor: not-allowed;
	background: rgba(0, 0, 0, 0.1);
}

/* ---- ESTADOS ESPECIAIS ---- */

/* Estado vazio */
.dataTables_empty {
	padding: 3rem 1rem !important;
	text-align: center;
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.9rem;
}

.dataTables_empty::before {
	content: '\f4a5';
	font-family: 'bootstrap-icons';
	display: block;
	font-size: 2.5rem;
	margin-bottom: 0.75rem;
	color: rgba(var(--theme-primary-rgb), 0.4);
}

/* Loading */
.dataTables_processing {
	background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.95) 0%, rgba(var(--theme-primary-light-rgb), 0.95) 100%);
	color: #ffffff;
	border-radius: 12px;
	padding: 1.25rem 2rem;
	font-weight: 600;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 25px rgba(var(--theme-primary-rgb), 0.3);
}

/* Scroll interno do DataTables */
.dataTables_scrollHead {
	overflow: hidden !important;
	border: 0 !important;
	width: 100% !important;
}

.dataTables_scrollHeadInner {
	width: 100% !important;
	padding: 0 !important;
	box-sizing: border-box;
}

.dataTables_scrollHeadInner table {
	margin: 0 !important;
	border-collapse: collapse !important;
}

.dataTables_scrollHeadInner table.dataTable thead th {
	background: linear-gradient(180deg,
		rgba(var(--theme-primary-rgb), 0.08) 0%,
		rgba(var(--theme-primary-rgb), 0.04) 100%
	) !important;
	color: rgba(255, 255, 255, 0.7) !important;
	font-family: 'Outfit', 'Quicksand', sans-serif !important;
	font-weight: 600 !important;
	font-size: 0.7rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	padding: 0.9rem 1rem !important;
	border: none !important;
	border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.15) !important;
	vertical-align: middle !important;
	white-space: nowrap !important;
	position: relative !important;
}

.dataTables_scrollBody {
	border: 0 !important;
	overflow-x: auto !important;
	overflow-y: auto !important;
}

.dataTables_scrollBody table {
	border-collapse: collapse !important;
	margin: 0 !important;
}

.dataTables_scrollBody table.dataTable thead {
	display: none;
}

.dataTables_scroll {
	width: 100% !important;
}

div.table-responsive>div.dataTables_wrapper>div.row {
	align-items: center;
}

/* ---- RESPONSIVIDADE ---- */

@media (max-width: 768px) {
	.dataTables_wrapper .row {
		flex-direction: column;
		gap: 1rem;
	}

	.dataTables_filter input {
		max-width: 100%;
	}

	.dataTables_length {
		width: 100%;
	}

	.dataTables_length select {
		width: 100%;
	}

	table.dataTable thead th,
	table.dataTable tbody td {
		padding: 0.75rem 0.5rem;
		font-size: 0.8rem;
	}

	.dataTables_paginate {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
	}

	.dataTables_paginate .page-link {
		min-width: 34px;
		height: 34px;
		font-size: 0.75rem;
	}
}

/* ---- CARDS COM TABELAS ---- */

.card:has(table.dataTable) {
	overflow: hidden;
}

.card:has(table.dataTable) .card-header {
	border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.15);
	padding: 1.25rem 1.5rem;
	background: transparent;
}

.card:has(table.dataTable) .card-body {
	padding: 0;
}

/* Avatar pequeno para uso em tabelas */
.avatar-sm {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 0.875rem;
}

/* Animações suaves */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

table.dataTable tbody tr {
	animation: fadeIn 0.3s ease-out;
}

/* Linha Selecionada - Estilo Moderno SEM desalinhamento */
table.dataTable tbody tr.table-active {
	background: linear-gradient(90deg,
		rgba(var(--theme-primary-rgb), 0.22) 0%,
		rgba(var(--theme-primary-rgb), 0.30) 50%,
		rgba(var(--theme-primary-rgb), 0.22) 100%
	) !important;
	box-shadow: 
		inset 4px 0 0 rgba(var(--theme-primary-light-rgb), 0.9),
		inset 0 0 30px rgba(var(--theme-primary-rgb), 0.4),
		0 4px 20px rgba(var(--theme-primary-rgb), 0.25),
		0 0 0 1px rgba(var(--theme-primary-rgb), 0.3);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	animation: selectedRowPulse 3s ease-in-out infinite;
}

table.dataTable tbody tr.table-active td {
	color: rgba(255, 255, 255, 0.95) !important;
	font-weight: 500;
	border-color: rgba(var(--theme-primary-rgb), 0.35) !important;
}

/* Hover na linha selecionada */
table.dataTable tbody tr.table-active:hover {
	background: linear-gradient(90deg,
		rgba(var(--theme-primary-rgb), 0.28) 0%,
		rgba(var(--theme-primary-rgb), 0.38) 50%,
		rgba(var(--theme-primary-rgb), 0.28) 100%
	) !important;
	box-shadow: 
		inset 4px 0 0 rgba(var(--theme-primary-light-rgb), 1),
		inset 0 0 40px rgba(var(--theme-primary-rgb), 0.5),
		0 6px 25px rgba(var(--theme-primary-rgb), 0.35),
		0 0 0 1px rgba(var(--theme-primary-rgb), 0.4);
}

table.dataTable tbody tr.table-active:hover td {
	color: #ffffff !important;
}

/* Animação de pulso suave para a linha selecionada */
@keyframes selectedRowPulse {
	0%, 100% {
		box-shadow: 
			inset 4px 0 0 rgba(var(--theme-primary-light-rgb), 0.9),
			inset 0 0 30px rgba(var(--theme-primary-rgb), 0.4),
			0 4px 20px rgba(var(--theme-primary-rgb), 0.25),
			0 0 0 1px rgba(var(--theme-primary-rgb), 0.3);
	}
	50% {
		box-shadow: 
			inset 4px 0 0 rgba(var(--theme-primary-light-rgb), 1),
			inset 0 0 35px rgba(var(--theme-primary-rgb), 0.5),
			0 6px 25px rgba(var(--theme-primary-rgb), 0.3),
			0 0 0 1px rgba(var(--theme-primary-rgb), 0.4);
	}
}

/* Melhorias para tooltips em tabelas */
table.dataTable [data-bs-toggle="tooltip"] {
	cursor: pointer;
}

/* Estados de ordenação melhorados */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
	cursor: pointer;
	user-select: none;
	position: relative;
	padding-right: 2rem;
}

table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
	content: '';
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	opacity: 0.3;
}

table.dataTable thead th.sorting::after {
	border-top: 6px solid var(--text-secondary);
	border-bottom: none;
}

table.dataTable thead th.sorting_asc::after {
	border-bottom: 6px solid var(--primary-color);
	border-top: none;
	opacity: 1;
}

table.dataTable thead th.sorting_desc::after {
	border-top: 6px solid var(--primary-color);
	border-bottom: none;
	opacity: 1;
}

/* Melhorias nos formulários */
.form-control:focus,
.form-select:focus {
	border-color: var(--primary-color);
}

.form-label {
	font-weight: 500;
	margin-bottom: 0.5rem;
}

/* Melhorias nos modais */
.modal-content {
	border: none;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-footer {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Melhorias na paginação */
.pagination {
	--bs-pagination-hover-bg: rgba(13, 110, 253, 0.1);
	--bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.page-link {
	font-weight: 500;
}

/* Melhorias nos alertas */
.alert {
	border: none;
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.log-content {
    background-color: #1b1c1f;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.log-content [ERROR] {
    color: #dc3545;
    font-weight: bold;
}

.log-content [INFO] {
    color: #28a745;
}

.log-content [DEBUG] {
    color: #17a2b8;
}

/* Animações */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	animation: fadeIn 0.3s ease-in-out;
}

/* Responsividade */
@media (max-width: 768px) {
	.card {
		margin-bottom: 1rem;
	}

	.table-responsive {
		margin-bottom: 1rem;
	}
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
	[data-bs-theme="dark"] {
		--bs-body-bg: #1a1d21;
		--bs-body-color: #e9ecef;
		--bs-border-color: rgba(255, 255, 255, 0.1);
	}

	[data-bs-theme="dark"] .card {
		background-color: #242729;
	}

	[data-bs-theme="dark"] .modal-content {
		background-color: #242729;
	}

	[data-bs-theme="dark"] .table {
		--bs-table-hover-bg: rgba(255, 255, 255, 0.05);
	}
}

.card,
.modal-content {
	background-color: #26272b;
	/*box-shadow: var(--czs-card-box-shadow);*/
}

div:where(.swal2-container).swal2-backdrop-show,
div:where(.swal2-container).swal2-noanimation {
    backdrop-filter: blur(5px);
    background: rgb(0 0 0 / 65%)!important;
}

html[data-bs-theme="dark"] div:where(.swal2-container) div:where(.swal2-popup) {
	border-radius: 1.0rem;
    background: #1A1A1E;
    color: var(--bs-secondary-color);
	box-shadow: 0px 0px 50px -10px rgba(0 0 0 / 80%), inset 0px 0px 0px 1px rgba(255 255 255 / 15%);
}

.text-muted {
	color: var(--text-secondary) !important;
	color: #D9DDE3 !important;
	/* text-shadow: 0px 0px 5px rgb(0 142 255); */
}

/* Estilo para o botão de alternar tema */
.theme-toggle {
	background: none;
	border: none;
	color: var(--text-primary);
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: background-color 0.3s;
}

.theme-toggle:hover {
	background-color: var(--bg-secondary);
}

.card-header.bg-white {
	background-color: var(--bg-secondary)!important;
}

.tab-content.bg-white {
	background-color: var(--czs-tab-content-bg)!important;
}

.stat-box,
.info-item,
.status-indicator {
	padding: 1.1rem 1rem 0.7rem 1rem;
	text-align: center;
}

.stat-box,
.info-item,
.status-indicator,
.profile-info-card {
	background: rgba(var(--czs-stat-box-bg-rgb), 0.4);
	border-radius: 0.7rem;
	box-shadow: 0 1px 6px 0 rgba(0,0,0,0.04);
}

.stat-box label,
.info-item label,
.status-indicator label {
	font-size: 0.93rem;
	color: #6c757d;
	font-weight: 500;
}

.stat-box p,
.info-item p,
.status-indicator p {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0d6efd;
}

/* ===================================
   Server Status Indicators
   =================================== */

/* Server status classes */
.server-status-online {
    color: var(--success-color);
}

.server-status-offline {
    color: var(--danger-color);
    opacity: 0.6;
}

/* Table row styling for offline servers */
.table-secondary {
    --bs-table-bg: var(--bg-secondary);
    color: var(--bs-body-color);
	opacity: 0.7;
}

[data-bs-theme="dark"] .table-secondary {
    --bs-table-bg: rgba(108, 117, 125, 0.25);
}

	[data-bs-theme="dark"] .table>:not(caption)>*[class*="table-secondary"]>* {
		background-color: #111214;
	}

		[data-bs-theme="dark"] .table>:not(caption)>*[class*="table-secondary"]>*,
		[data-bs-theme="dark"] .table>:not(caption)>*[class*="table-secondary"]>* .text-muted {
			color: #4d5057!important;
		}

/* Select2 disabled options styling */
.select2-results__option[aria-disabled="true"] {
    color: var(--text-secondary) !important;
    background-color: var(--bg-secondary) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.select2-results__option[aria-disabled="true"]:hover {
    background-color: var(--bg-secondary) !important;
}

[data-bs-theme="dark"] .select2-results__option[aria-disabled="true"] {
    color: #6c757d !important;
    background-color: #343a40 !important;
}

/* Status icon in tables */
.server-status-icon {
    font-size: 0.8rem;
}

/* Toast container adjustments */
.toast-container {
    z-index: 1070;
}

/* Server status badges */
.badge-server-online {
    background-color: var(--success-color);
    color: white;
}

.badge-server-offline {
    background-color: var(--danger-color);
    color: white;
}

/* ============================================
   MODERN PANEL DESIGN - 2024
   ============================================ */

/* Modern accent colors */
:root {
	--czs-accent-primary: var(--theme-primary);
	--czs-accent-secondary: var(--theme-primary-light);
	--czs-accent-gradient: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
	--czs-glow-color: rgba(var(--theme-primary-rgb), 0.3);
}

/* ============================================
   MODERN SIDEBAR STYLES
   ============================================ */

.sidebar {
	background: linear-gradient(180deg, #0f0f14 0%, #13131a 100%) !important;
	border-right: 1px solid rgba(var(--theme-primary-rgb), 0.15) !important;
	position: relative;
	overflow: hidden;
}

/* Sidebar glow effect */
.sidebar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 200px;
	background: radial-gradient(ellipse at 50% 0%, rgba(var(--theme-primary-rgb), 0.1) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.sidebar > * {
	position: relative;
	z-index: 1;
}

.sidebar .sidebar-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding: 1.25rem 1rem !important;
}

.sidebar .sidebar-header a {
	color: #ffffff;
	font-family: 'Outfit', 'Quicksand', sans-serif;
	font-weight: 600;
	letter-spacing: -0.3px;
}

.sidebar .sidebar-header span {
	background: var(--czs-accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Sidebar user section */
.sidebar .sidebar-user {
	background: rgba(var(--theme-primary-rgb), 0.08);
	border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
	border-radius: 12px;
	margin: 0.75rem;
	padding: 0.75rem !important;
}

.sidebar .sidebar-user img {
	border: 2px solid rgba(var(--theme-primary-rgb), 0.4);
}

.sidebar .sidebar-user .badge {
	background: var(--czs-accent-gradient) !important;
	font-size: 0.7rem;
	font-weight: 600;
}

/* Sidebar navigation */
.sidebar .sidebar-heading {
	color: rgba(var(--theme-primary-light-rgb), 0.7) !important;
	font-size: 0.7rem !important;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.sidebar .nav-link {
	color: rgba(255, 255, 255, 0.6);
	border-radius: 10px;
	margin: 2px 0;
	padding: 0.65rem 1rem !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
}

.sidebar .nav-link::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--czs-accent-gradient);
	opacity: 0;
	transition: opacity 0.2s ease;
	border-radius: 0 3px 3px 0;
}

.sidebar .nav-link:hover {
	color: #ffffff;
	background: rgba(var(--theme-primary-rgb), 0.1);
}

.sidebar .nav-link.active {
	color: #ffffff;
	background: rgba(var(--theme-primary-rgb), 0.15);
	font-weight: 500;
}

.sidebar .nav-link.active::before {
	opacity: 1;
}

.sidebar .nav-link i {
	color: rgba(var(--theme-primary-light-rgb), 0.7);
	transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
	color: var(--theme-primary-light);
	transform: scale(1.1);
}

/* Sidebar footer */
.sidebar .sidebar-footer {
	background: rgb(27 27 35);
	border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sidebar .sidebar-footer .btn-icon {
	color: rgba(255, 255, 255, 0.5);
	border-radius: 0;
	transition: all 0.2s ease;
}

.sidebar .sidebar-footer .btn-icon:hover {
	color: var(--theme-primary-light);
	background: rgba(var(--theme-primary-rgb), 0.15);
}

.sidebar .sidebar-footer .btn-icon.active {
	color: var(--theme-primary-light);
	background: rgba(var(--theme-primary-rgb), 0.2);
}

.sidebar .sidebar-footer .btn-icon.btn-danger {
	background: transparent;
}

	.sidebar .sidebar-footer .btn-icon.btn-danger:hover {
		background: rgba(255, 0, 0, 0.1);
		color: #ff0000;
	}


/* ============================================
   MODERN HEADER STYLES
   ============================================ */

.top-header {
	background: rgba(15, 15, 20, 0.6) !important;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.1) !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
	position: sticky;
	top: 0;
	z-index: 1100 !important;
}

.top-header .sidebar-toggle {
	color: rgba(255, 255, 255, 0.7);
}

.top-header .sidebar-toggle:hover {
	color: var(--theme-primary-light);
}

/* Notification button */
.top-header .notifications .btn-link {
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.2s ease;
}

.top-header .notifications .btn-link:hover {
	color: var(--theme-primary-light);
}

.top-header #notificationsBadge {
	background: var(--czs-accent-gradient) !important;
	font-size: 0.65rem;
	font-weight: 700;
}

/* User dropdown */
.top-header .dropdown-toggle {
	color: rgba(255, 255, 255, 0.8);
}

.top-header .dropdown-toggle img {
	border: 2px solid rgba(var(--theme-primary-rgb), 0.4);
	transition: border-color 0.2s ease;
}

.top-header .dropdown-toggle:hover img {
	border-color: var(--theme-primary-light);
}

/* Dropdown menus */
.dropdown-menu {
	background: rgba(20, 20, 28, 0.98) !important;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(var(--theme-primary-rgb), 0.2) !important;
	border-radius: 12px !important;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* User dropdown - garantir que fique por cima de tudo */
.user-dropdown .dropdown-menu,
.dropdown-menu {
	z-index: 1200 !important;
	margin-top: 0.5rem !important;
}

/* Garantir que elementos do main não ultrapassem o header */
main.fade-in,
main.fade-in .container-fluid,
main.fade-in .card,
main.fade-in .btn {
	z-index: auto !important;
}

.dropdown-menu .dropdown-item {
	color: rgba(255, 255, 255, 0.7);
	transition: all 0.2s ease;
}

.dropdown-menu .border-bottom {
	border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ============================================
   MODERN PAGE CONTENT STYLES
   ============================================ */

#page-content-wrapper {
	background: #0a0a0f;
	position: relative;
}

/* Subtle gradient overlay */
#page-content-wrapper::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--theme-primary-rgb), 0.08) 0%, transparent 50%),
		radial-gradient(ellipse 50% 50% at 100% 100%, rgba(var(--theme-primary-light-rgb), 0.05) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

/* Conteúdo principal - z-index menor que o header */
#page-content-wrapper main {
	position: relative;
	z-index: 1;
}

#page-content-wrapper .top-header {
	z-index: 1100 !important;
}

/* Main content area */
main.fade-in {
	padding: 1.5rem;
}

/* ============================================
   MODERN CARD STYLES
   ============================================ */

.card {
	background: rgba(20, 20, 28, 0.8) !important;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
	border-radius: 16px !important;
	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
	border-color: rgba(var(--theme-primary-rgb), 0.2) !important;
	box-shadow:
		0 8px 30px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(var(--theme-primary-rgb), 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.card .card-header {
	background: transparent !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
	padding: 1.25rem 1.5rem !important;
}

.card .card-header h5,
.card .card-header .card-title {
	font-family: 'Outfit', 'Quicksand', sans-serif;
	font-weight: 600;
	color: #ffffff;
	margin: 0;
}

.card .card-footer {
	background: rgba(0, 0, 0, 0.2) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ============================================
   MODERN BUTTON STYLES
   ============================================ */

.btn-primary {
	background: var(--czs-accent-gradient) !important;
	border: none !important;
	box-shadow: 0 4px 15px rgba(var(--theme-primary-rgb), 0.3);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(var(--theme-primary-rgb), 0.4);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-outline-primary {
	border-color: rgba(var(--theme-primary-rgb), 0.5) !important;
	color: var(--theme-primary-light) !important;
}

.btn-outline-primary:hover {
	background: rgba(var(--theme-primary-rgb), 0.15) !important;
	border-color: var(--theme-primary) !important;
	color: #ffffff !important;
}

/* ============================================
   MODERN FORM STYLES
   ============================================ */

.form-control,
.form-select {
	background: rgba(0, 0, 0, 0.3) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 10px !important;
	color: #ffffff !important;
	padding: 0.75rem 1rem !important;
	transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
	background: rgba(0, 0, 0, 0.4) !important;
	border-color: var(--theme-primary) !important;
	box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.15) !important;
	outline: none !important;
}

.form-control::placeholder {
	color: rgba(255, 255, 255, 0.35) !important;
}

.form-label {
	color: rgba(255, 255, 255, 0.7);
	font-weight: 500;
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}

/* ============================================
   TABELAS GENÉRICAS (Bootstrap .table)
   Unificado com DataTables acima
   ============================================ */

.table {
	--bs-table-bg: transparent;
	border-radius: 14px;
	overflow: hidden;
}

.table thead th {
	background: linear-gradient(180deg,
		rgba(var(--theme-primary-rgb), 0.08) 0%,
		rgba(var(--theme-primary-rgb), 0.04) 100%
	) !important;
	color: rgba(255, 255, 255, 0.7) !important;
	font-family: 'Outfit', 'Quicksand', sans-serif;
	font-weight: 600;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.15) !important;
	padding: 0.9rem 1rem !important;
}

.table tbody {
	background: rgba(0, 0, 0, 0.15);
}

.table tbody td {
	border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
	padding: 0.9rem 1rem !important;
	vertical-align: middle;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.85);
}

.table tbody tr {
	transition: all 0.2s ease;
}

.table tbody tr:hover {
	background: linear-gradient(90deg,
		rgba(var(--theme-primary-rgb), 0.1) 0%,
		rgba(var(--theme-primary-rgb), 0.05) 50%,
		rgba(0, 0, 0, 0.08) 100%
	) !important;
}

.table tbody tr:hover td {
	color: #ffffff;
}

.table tbody tr:nth-child(even) {
	background: rgba(0, 0, 0, 0.08);
}

.table tbody tr:nth-child(even):hover {
	background: linear-gradient(90deg,
		rgba(rgb(28 44 101 / 47%), 0.1) 0%,
		rgba(rgb(22 33 67 / 55%), 0.05) 50%,
		rgb(47 60 111 / 70%) 100%
	) !important;
}

/* ============================================
   MODERN BADGE STYLES
   ============================================ */

.badge.bg-primary {
	background: var(--czs-accent-gradient) !important;
}

.badge.bg-success {
	background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}

.badge.bg-danger {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
}

.badge.bg-warning {
	background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
	color: #000 !important;
}

.badge.bg-info {
	background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
}

/* ============================================
   MODERN BREADCRUMB STYLES
   ============================================ */

.breadcrumb {
	background: transparent;
	padding: 0;
	margin-bottom: 1.5rem;
}

.breadcrumb-item a {
	color: var(--theme-primary-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
	color: #c084fc;
}

.breadcrumb-item.active {
	color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
	color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   PAGE TITLE STYLES
   ============================================ */

.page-title,
h1.mb-4,
.card-header h5 {
	font-family: 'Outfit', 'Quicksand', sans-serif;
}

/* ============================================
   MODERN MODAL STYLES
   ============================================ */

.modal-content {
	background: rgba(20, 20, 28, 0.95) !important;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(var(--theme-primary-rgb), 0.2) !important;
	border-radius: 16px !important;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
}

.modal-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
	padding: 1.25rem 1.5rem !important;
}

.modal-header .modal-title {
	font-family: 'Outfit', 'Quicksand', sans-serif;
	font-weight: 600;
}

.modal-body {
	padding: 1.5rem !important;
}

.modal-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
	padding: 1rem 1.5rem !important;
}

/* ============================================
   MODERN ALERT STYLES
   ============================================ */

.alert {
	border-radius: 12px;
	border: none;
	backdrop-filter: blur(10px);
}

.alert-success {
	background: rgba(16, 185, 129, 0.15);
	border-left: 4px solid #10b981;
	color: #6ee7b7;
}

.alert-danger {
	background: rgba(239, 68, 68, 0.15);
	border-left: 4px solid #ef4444;
	color: #fca5a5;
}

.alert-warning {
	background: rgba(245, 158, 11, 0.15);
	border-left: 4px solid #f59e0b;
	color: #fcd34d;
}

.alert-info {
	background: rgba(6, 182, 212, 0.15);
	border-left: 4px solid #06b6d4;
	color: #67e8f9;
}

/* ============================================
   SCROLLBAR STYLES
   ============================================ */

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb {
	background: rgba(var(--theme-primary-rgb), 0.4);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(var(--theme-primary-rgb), 0.6);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991.98px) {
	.sidebar {
		position: fixed;
		top: 0;
		left: -280px;
		width: 280px;
		height: 100vh;
		z-index: 1050;
		transition: left 0.3s ease;
	}

	.sidebar.show {
		left: 0;
	}

	#page-content-wrapper {
		margin-left: 0;
	}
}

/* ============================================
   STAT BOXES MODERN STYLES
   ============================================ */

.stat-box,
.info-item,
.status-indicator {
	background: rgba(var(--theme-primary-rgb), 0.08) !important;
	border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
	border-radius: 12px;
}

.stat-box p,
.info-item p,
.status-indicator p {
	color: var(--theme-primary-light) !important;
}

/* ============================================
   WELCOME CARD MODERN
   ============================================ */

.welcome-card {
	background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2) 0%, rgba(var(--theme-primary-light-rgb), 0.1) 100%) !important;
	border: 1px solid rgba(var(--theme-primary-rgb), 0.3) !important;
}

/* ============================================
   FOOTER MODERN STYLES
   ============================================ */

footer {
	background: transparent !important;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
    filter: brightness(1.05) opacity(0.7);
    font-weight: 500;
}

.border-top {
    border-color: rgba(var(--theme-primary-rgb), 0.15) !important;
}