@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
	--verde-principal: #5aa453;
	--amarelo-solar: #b8d153;
	--azul-ceu: #60aadc;
	--verde-secundario: #469d8e;
	--cinza-texto: #333333;
	--cinza-fundo: #f5f5f5;
	--branco: #ffffff;
	--cinza-claro: #e9e9e9;
	--verde-escuro: #458a42;
	--verde-hover: #4c8f46;
	--azul-escuro: #467ca5;
	--vermelho: #e74c3c;
	--amarelo: #f39c12;
	--sombra-suave: 0 2px 10px rgba(0, 0, 0, 0.1);
	--sombra-media: 0 5px 15px rgba(0, 0, 0, 0.15);
	--sombra-forte: 0 8px 30px rgba(0, 0, 0, 0.2);
	--borda-radius: 8px;
	--transicao: all 0.3s ease;
}

html {
	height: 100%;
}

body {
	margin: 0;
	font-family: 'Poppins', 'Montserrat', sans-serif;
	background-color: var(--cinza-fundo);
	color: var(--cinza-texto);
	line-height: 1.6;
	overflow-x: hidden;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

/* Auth styles - Completely redesigned */
.auth-body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-x: hidden;
	position: relative;
}

/* Particles background */
.particles-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
}

.auth-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: linear-gradient(140deg, var(--verde-principal), var(--azul-ceu));
	background-size: 400% 400%;
	opacity: 0.85;
	animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
	0% {
		background-position: 0% 50%;
	}
	
	50% {
		background-position: 100% 50%;
	}
	
	100% {
		background-position: 0% 50%;
	}
}


/* Container and content styling */
.auth-container {
	background: var(--branco);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	width: 460px;
	max-width: 95%;
	text-align: center;
	overflow: hidden;
	position: relative;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	animation: fadeInUp 0.8s ease-out;
	z-index: 10;
}

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

.auth-logo-container {
	padding: 1.5rem 0 0.5rem;
}

.auth-logo {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	}
	50% {
		transform: scale(1.05);
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	}
}

.auth-content {
	padding: 0 2.5rem 2.5rem;
}

.reset-info {
	color: #777;
	font-size: 0.9rem;
	margin: 1rem auto 1.5rem;
	max-width: 340px;
	line-height: 1.5;
}

.auth-header {
	margin-bottom: 1.5rem;
	text-align: center;
}

.auth-title {
	margin-bottom: 0.5rem;
	color: var(--verde-principal);
	font-size: 1.8rem;
	font-weight: 700;
}

.auth-subtitle {
	color: #777;
	font-size: 0.95rem;
	margin-top: 0;
}

/* Form styling */
.auth-form {
	text-align: left;
}

.form-floating {
	margin-bottom: 1.25rem;
	position: relative;
}

.input-icon-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
}

.input-icon {
	position: absolute;
	left: calc(50% - 140px);
	top: 50%;
	transform: translateY(-50%);
	color: #aaa;
	transition: color 0.3s ease;
}

.auth-input {
	width: 90%;
	max-width: 280px;
	padding: 0.9rem 1rem 0.9rem 3rem;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.3s ease;
	background-color: #f9f9f9;
}

.auth-input:focus {
	border-color: var(--verde-principal);
	box-shadow: 0 0 0 3px rgba(90, 164, 83, 0.2);
	background-color: #fff;
}

.auth-input:focus + .input-icon {
	color: var(--verde-principal);
}

.toggle-password {
	position: absolute;
	right: calc(50% - 140px);
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #aaa;
	transition: color 0.3s ease;
}

.toggle-password:hover {
	color: var(--verde-principal);
}

/* Form actions */
.form-actions {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 1.5rem;
	font-size: 0.85rem;
	max-width: 280px;
	margin-left: auto;
	margin-right: auto;
}

.checkbox-container {
	display: flex;
	align-items: center;
	position: relative;
	padding-left: 25px;
	cursor: pointer;
	user-select: none;
}

.checkbox-container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 18px;
	width: 18px;
	background-color: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
	background-color: #e9e9e9;
}

.checkbox-container input:checked ~ .checkmark {
	background-color: var(--verde-principal);
	border-color: var(--verde-principal);
}

.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
	display: block;
}

.checkbox-container .checkmark:after {
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.forgot-password {
	color: var(--azul-ceu);
	text-decoration: none;
	transition: color 0.3s;
}

.forgot-password:hover {
	color: var(--azul-escuro);
	text-decoration: underline;
}

/* Form terms */
.form-terms {
	margin-bottom: 1.5rem;
	font-size: 0.85rem;
	max-width: 340px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.terms-link {
	color: var(--azul-ceu);
	text-decoration: none;
	transition: color 0.3s;
}

.terms-link:hover {
	color: var(--azul-escuro);
	text-decoration: underline;
}

/* Submit button */
.auth-button {
	width: 90%;
	max-width: 280px;
	margin: 0 auto;
	background: linear-gradient(to right, var(--verde-principal), var(--verde-secundario));
	color: var(--branco);
	border: none;
	padding: 0.9rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.auth-button:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, 
		rgba(255, 255, 255, 0) 0%, 
		rgba(255, 255, 255, 0.2) 50%, 
		rgba(255, 255, 255, 0) 100%);
	transition: all 0.6s;
}

.auth-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.auth-button:hover:before {
	left: 100%;
}

.auth-button:active {
	transform: translateY(-1px);
}

.button-text {
	margin-right: 8px;
}

.button-icon {
	font-size: 0.9rem;
	transition: transform 0.3s ease;
}

.auth-button:hover .button-icon {
	transform: translateX(4px);
}

/* Separator */
.auth-separator {
	display: flex;
	align-items: center;
	margin: 1.5rem 0;
	color: #999;
	font-size: 0.9rem;
}

.auth-separator:before,
.auth-separator:after {
	content: '';
	flex: 1;
	height: 1px;
	background-color: #e0e0e0;
}

.auth-separator span {
	padding: 0 15px;
}

/* Social login */
.auth-social {
	margin-bottom: 1.5rem;
	display: flex;
	justify-content: center;
}

.social-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90%;
	max-width: 280px;
	padding: 0.8rem;
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	color: #555;
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 0.9rem;
}

.social-button:hover {
	background-color: #f8f8f8;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-button i {
	font-size: 1.2rem;
	margin-right: 10px;
}

.social-button.google i {
	color: #DB4437;
}

/* Switch auth link */
.switch-auth {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: #777;
}

.switch-auth a {
	color: var(--azul-ceu);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}

.switch-auth a:hover {
	color: var(--azul-escuro);
	text-decoration: underline;
}

/* Error message */
.error-msg {
	display: flex;
	align-items: center;
	background: #fff0f1;
	border-left: 4px solid #e74c3c;
	color: #c0392b;
	border-radius: 6px;
	padding: 0.8rem 1rem;
	margin-bottom: 1.5rem;
	text-align: left;
	font-size: 0.9rem;
	animation: shake 0.5s ease-in-out;
	box-shadow: 0 4px 6px rgba(231, 76, 60, 0.15);
}

.error-msg i {
	color: #e74c3c;
	font-size: 1.1rem;
	margin-right: 10px;
}

.error-msg p {
	margin: 0;
}

.error-content {
	margin-left: 0.5rem;
}

.input-error-msg {
	color: #e74c3c;
	font-size: 0.8rem;
	margin-top: 0.3rem;
	text-align: left;
}

@keyframes shake {
	0%, 100% {
		transform: translateX(0);
	}
	10%, 30%, 50%, 70%, 90% {
		transform: translateX(-5px);
	}
	20%, 40%, 60%, 80% {
		transform: translateX(5px);
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.auth-container {
		width: 90%;
		max-width: 400px;
		margin: 0 1rem;
	}
	
	.auth-content {
		padding: 0 1.5rem 1.5rem;
	}
	
	.wave {
		height: 100px;
	}
}

@media (max-width: 480px) {
	.auth-title {
		font-size: 1.5rem;
	}
	
	.auth-container {
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
		width: 90%;
	}
	
	.auth-content {
		padding: 0 1.2rem 1.2rem;
	}
	
	.form-actions {
		flex-direction: column;
		align-items: center;
		gap: 0.8rem;
	}
	
	.forgot-password {
		margin-top: 0.5rem;
	}
	
	.auth-logo {
		width: 60px;
		height: 60px;
	}
	
	.auth-input {
		padding: 0.8rem 1rem 0.8rem 2.8rem;
	}
	
	.input-icon {
		left: calc(50% - 130px);
	}
	
	.toggle-password {
		right: calc(50% - 130px);
	}
	
	main {
		padding: 4rem 0.8rem 2rem 0.8rem;
	}
	
	.detail-card {
		padding: 1rem 0.8rem;
	}
	
	.form-row {
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.messages-list {
		max-height: 300px;
	}
	
	.message-content {
		padding: 0.8rem;
	}
	
	.modal-content {
		padding: 1.2rem 0.8rem;
		max-width: 95%;
	}
}

* {
	transition: all 0.2s ease;
}

/* Enhanced Header with Animations */
header.animated-header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
	background-color: var(--verde-principal);
	box-shadow: var(--sombra-media);
	transition: var(--transicao);
	animation: headerFadeIn 0.8s ease-out;
}

@keyframes headerFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.navbar-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 0.5rem 1rem 0.5rem 2rem;
}

/* Mobile menu toggle button */
.menu-toggle {
	display: none;
	background: transparent;
	border: none;
	color: white;
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 1000;
}

/* Responsive styles for navbar */
@media (max-width: 992px) {
	.navbar-container {
		padding: 0.5rem 1rem 0.5rem 1.5rem;
	}
}

@media (max-width: 768px) {
	.navbar-container {
		padding: 0.5rem 1rem;
	}
	
	.menu-toggle {
		display: block;
	}
	
	.nav-links {
		position: fixed;
		top: 0;
		right: -100%;
		width: 250px;
		height: 100vh;
		background-color: var(--verde-principal);
		flex-direction: column;
		padding: 4rem 1rem 2rem;
		transition: all 0.4s ease;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		z-index: 999;
		gap: 1.5rem;
	}
	
	.nav-links.active {
		right: 0;
	}
	
	.nav-item {
		width: 100%;
	}
	
	.nav-link {
		width: 100%;
		padding: 0.8rem 1rem;
		border-radius: 6px;
	}
	
	.dropdown-content {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: rgba(255, 255, 255, 0.1);
		box-shadow: none;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		margin-top: 0.5rem;
		margin-bottom: 0;
	}
	
	.dropdown.active .dropdown-content {
		max-height: 500px;
	}
	
	.dropdown-content a {
		padding: 0.6rem 1rem;
		color: white !important;
	}
	
	.dropdown-content a:hover {
		background-color: rgba(255, 255, 255, 0.2);
		border-left-color: var(--amarelo-solar);
	}
	
	.nav-arrow {
		margin-left: auto;
	}
	
	main {
		padding: 4rem 1rem 3rem 1rem;
		width: 100%;
	}
	
	.brand-logo .logo {
		width: 32px;
		height: 32px;
	}
	
	.detail-card {
		padding: 1rem;
		margin: 1rem auto;
		max-width: 100%;
	}
	
	.table-container {
		overflow-x: auto;
	}
	
	.table-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.table-search input {
		width: 100%;
	}
	
	.hero-title {
		font-size: 1.6rem;
	}
	
	.hero-subtitle {
		font-size: 1rem;
	}
	
	.turbina {
		width: 120px;
	}
	
	.footer-container {
		padding: 1.5rem 1rem;
	}
	
	.footer-links {
		flex-direction: column;
		gap: 1.5rem;
	}
	
	.footer-bottom {
		flex-direction: column;
		text-align: center;
		padding: 1rem;
	}
	
	.compact-actions {
		width: 100%;
	}
	
	.action-dropdown-btn {
		width: 100%;
		justify-content: center;
	}
	
	.action-menu {
		width: 100%;
		left: 0;
		right: 0;
	}
	
	.message-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.message-date {
		margin-top: 0.5rem;
	}
	
	.email-header {
		flex-direction: column;
	}
	
	.avatar-section {
		margin-right: 0;
		margin-bottom: 1rem;
	}
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--branco);
	transition: var(--transicao);
}

.brand-logo:hover {
	transform: scale(1.02);
}

.brand-logo .logo {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: var(--sombra-suave);
	transition: var(--transicao);
}

.brand-logo:hover .logo {
	box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.brand-logo h1 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

@media (max-width: 768px) {
	.brand-logo h1 {
		font-size: 1.2rem;
	}
	
	.brand-logo .logo {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 480px) {
	.brand-logo h1 {
		font-size: 1.1rem;
	}
}

.brand-logo .highlight {
	color: var(--amarelo-solar) !important;
	font-weight: 700;
}

/* Ensure brand logo colors are always correct */
.brand-logo a {
	color: white !important;
	text-decoration: none !important;
}

.brand-logo a:visited,
.brand-logo a:hover,
.brand-logo a:active,
.brand-logo a:focus {
	color: white !important;
	text-decoration: none !important;
}

.brand-logo h1 {
	color: white !important;
}

.brand-logo .highlight {
	color: var(--amarelo-solar) !important;
}

/* Assign Results Scrollable Container */
.assign-results-scrollable {
	max-height: 300px;
	overflow-y: auto;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: white;
}

.assign-results {
	overflow: visible !important;
	max-height: none !important;
}

.assign-results-scrollable::-webkit-scrollbar {
	width: 8px;
}

.assign-results-scrollable::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.assign-results-scrollable::-webkit-scrollbar-thumb {
	background: var(--verde-principal);
	border-radius: 4px;
}

.assign-results-scrollable::-webkit-scrollbar-thumb:hover {
	background: var(--verde-escuro);
}

.assign-result-item {
	padding: 0.8rem;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	transition: background-color 0.3s;
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.assign-result-item:last-child {
	border-bottom: none;
}

.assign-result-item:hover {
	background-color: rgba(90, 164, 83, 0.1);
}

.assign-result-item.selected {
	background-color: var(--verde-principal);
	color: white;
}

.assign-item-icon {
	color: var(--verde-principal);
	width: 20px;
	text-align: center;
}

.assign-result-item.selected .assign-item-icon {
	color: white;
}

.assign-item-name {
	flex: 1;
	font-weight: 500;
}

/* Global link reset to prevent browser defaults from interfering */
header a,
header a:visited,
header a:hover,
header a:active,
header a:focus {
	color: inherit !important;
	text-decoration: none !important;
}

/* Ensure all navbar icons stay white (except dropdowns) */
.navbar-container i:not(.dropdown-content i),
.nav-links i:not(.dropdown-content i),
.nav-link i,
header i:not(.dropdown-content i) {
	color: white !important;
}

.navbar-container a:visited i,
.navbar-container a:hover i,
.navbar-container a:active i,
.navbar-container a:focus i {
	color: white !important;
}

/* Force consistent link colors throughout navbar */
.navbar-container a,
.nav-links a,
.brand-logo a,
.dropdown-content a {
	color: inherit !important;
	text-decoration: none !important;
}

.navbar-container a:visited,
.nav-links a:visited,
.brand-logo a:visited,
.dropdown-content a:visited {
	color: inherit !important;
}

.navbar-container a:hover,
.nav-links a:hover,
.brand-logo a:hover {
	color: inherit !important;
	text-decoration: none !important;
}

/* Enhanced Navigation */
.nav-links {
	list-style: none;
	display: flex;
	gap: 1.2rem;
	margin: 0;
	margin-right: 50px;
	padding: 0;
	align-items: center;
}

.nav-item {
	position: relative;
}

/* Force nav link colors */
.nav-link {
	color: white !important;
	text-decoration: none !important;
}

.nav-link:visited,
.nav-link:hover,
.nav-link:active,
.nav-link:focus {
	color: white !important;
	text-decoration: none !important;
}

.nav-link span {
	color: white !important;
}

.nav-link i {
	color: white !important;
}

.nav-link:visited i,
.nav-link:hover i,
.nav-link:active i,
.nav-link:focus i {
	color: white !important;
}

/* Dropdown links */
.dropdown-content a {
	color: var(--cinza-texto) !important;
	text-decoration: none !important;
}

.dropdown-content a:visited,
.dropdown-content a:active,
.dropdown-content a:focus {
	color: var(--cinza-texto) !important;
	text-decoration: none !important;
}

/* Dropdown icons should be dark/black */
.dropdown-content a i,
.dropdown-content i {
	color: var(--cinza-texto) !important;
}

/* Override any white color inheritance for dropdown icons */
.dropdown-content a:visited i,
.dropdown-content a:hover i,
.dropdown-content a:active i,
.dropdown-content a:focus i {
	color: var(--cinza-texto) !important;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--branco);
	text-decoration: none !important;
	font-weight: 500;
	padding: 0.6rem 1rem;
	border-radius: 30px;
	transition: var(--transicao);
}

.nav-link i {
	font-size: 1rem;
}

.nav-link:hover {
	background-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
	color: var(--branco) !important;
}

.nav-link.nav-logout:hover {
	background-color: rgba(231, 76, 60, 0.2);
}

.login-button {
	background-color: var(--amarelo-solar);
	color: var(--cinza-texto) !important;
	font-weight: 600;
	padding: 0.6rem 1.2rem;
}

.login-button:hover {
	background-color: #d9e675 !important;
	box-shadow: var(--sombra-suave);
}

.nav-arrow {
	font-size: 0.7rem;
	margin-left: 0.25rem;
	transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .nav-arrow {
	transform: rotate(180deg);
}

/* Dropdown Styling */
.dropdown-content {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	background: var(--branco);
	min-width: 200px;
	border-radius: var(--borda-radius);
	box-shadow: var(--sombra-media);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
}

.dropdown:hover .dropdown-content {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
	color: var(--cinza-texto) !important;
	padding: 0.8rem 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none !important;
	transition: var(--transicao);
	border-left: 3px solid transparent;
}

.dropdown-content a:hover {
	background-color: var(--cinza-claro);
	border-left-color: var(--verde-principal);
	padding-left: 1.4rem;
	text-decoration: none !important;
	color: var(--cinza-texto) !important;
}

main {
	padding: 5rem 4rem 6rem 4rem;
	margin: 0 auto;
	animation: mainFadeIn 0.6s ease-out;
	flex: 1 0 auto; /* This allows the main content to grow and push the footer down */
	width: 90%;
}

/* Responsive styles for main content */
@media (max-width: 992px) {
	main {
		padding: 4.5rem 2.5rem 5rem 2.5rem;
		max-width: 1300px;

	}
}

@media (max-width: 768px) {
	main {
		padding: 4rem 1.5rem 5rem 1.5rem;
		max-width: 1300px;

	}
}

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

/* Enhanced Footer with Animations */
footer.footer-animated {
    background-color: var(--verde-escuro);
    color: var(--branco);
    margin-top: 4rem;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    font-family: 'Poppins', sans-serif;
    animation: footerFadeIn 1s ease-out;
    flex-shrink: 0; /* Prevents the footer from shrinking */
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--branco);
    padding: 5px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: var(--transicao);
}

.footer-logo:hover .footer-logo-img {
    transform: rotate(10deg);
}

.footer-company h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--amarelo-solar);
}

.footer-company p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-section h4 {
    color: var(--amarelo-solar);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--amarelo-solar);
    transition: var(--transicao);
}

.footer-section:hover h4:after {
    width: 60px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--branco);
    text-decoration: none;
    transition: var(--transicao);
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-section a:hover {
    color: var(--amarelo-solar);
    transform: translateX(5px);
}

.footer-section p {
    margin: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p i {
    color: var(--amarelo-solar);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Responsive footer */
@media (max-width: 992px) {
    .footer-container {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .footer-links {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 2rem 1.5rem 1rem;
    }
    
    .footer-links {
        width: 100%;
        margin-top: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

/* Styles for assignment modal functionality */
.assign-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.assign-tab {
    padding: 10px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
}

.assign-tab:hover {
    color: var(--verde-medio);
}

.assign-tab.active {
    color: var(--verde-escuro);
    border-bottom: 2px solid var(--verde-escuro);
}

.assign-search {
    margin-bottom: 15px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: #777;
}

#assignSearch {
    padding: 10px 10px 10px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
}

#assignSearch:focus {
    border-color: var(--verde-medio);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 128, 0, 0.1);
}

.assign-results {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 15px;
}

.assign-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.assign-result-item:hover {
    background-color: #f9f9f9;
}

.assign-result-item.selected {
    background-color: #e8f5e9;
    border-left: 3px solid var(--verde-escuro);
}

.assign-item-icon {
    margin-right: 10px;
    width: 25px;
    text-align: center;
    color: var(--verde-escuro);
}

.assign-item-name {
    font-weight: 500;
}

.no-results, .loading, .error {
    padding: 15px;
    text-align: center;
    color: #777;
}

.loading i {
    margin-right: 5px;
    color: var(--verde-medio);
}

.error {
    color: #d32f2f;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--branco);
    transition: var(--transicao);
}

.footer-social a:hover {
    background-color: var(--amarelo-solar);
    color: var(--verde-escuro);
    transform: translateY(-3px);
}

/* Enhanced Tables with Sorting and Filtering */
table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--branco);
	border-radius: 10px;
	box-shadow: var(--sombra-suave);
	transition: var(--transicao);
}

/* Table wrapper with horizontal scroll */
.table-wrapper {
	width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	margin: 0;
	border-radius: 10px;
	box-shadow: var(--sombra-suave);
	background: var(--branco);
	position: relative;
	height: 700px;
}



/* Scrollbar styling */
.table-wrapper::-webkit-scrollbar {
	height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
	background: var(--verde-principal);
	border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
	background: var(--verde-escuro);
}

/* Responsive tables */
@media (max-width: 992px) {
	.table-container {
		overflow: visible;
		border-radius: 10px;
		box-shadow: var(--sombra-suave);
	}
	
	.table-wrapper {
		overflow-x: auto;
	}
	
	table {
		min-width: 1200px;
		border-radius: 0;
		box-shadow: none;
	}
}

@media (max-width: 768px) {
	.table-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.table-title {
		margin-bottom: 1rem;
		font-size: 1.2rem;
	}
	
	.table-controls {
		width: 100%;
	}
	
	.table-search {
		width: 100%;
	}
	
	.table-search input {
		width: 100%;
	}
}

table:hover {
	box-shadow: var(--sombra-media);
}

thead {
	background-color: var(--verde-principal);
	color: var(--branco);
}

th {
	padding: 1rem 1.2rem;
	font-weight: 600;
	text-align: left;
	position: relative;
	cursor: pointer;
	user-select: none;
	transition: var(--transicao);
}

th:hover {
	background-color: var(--verde-escuro);
}

th .sort-arrow {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.85rem;
	transition: var(--transicao);
}

th:hover .sort-arrow {
	opacity: 1;
}

td {
	padding: 1rem 1.2rem;
	border-bottom: 1px solid #eee;
	color: var(--cinza-texto);
	transition: var(--transicao);
}

tr:last-child td {
	border-bottom: none;
}

tr:hover td {
	background-color: rgba(90, 164, 83, 0.05);
}

/* Alternating row colors */
tbody tr:nth-child(even) {
	background-color: #f9f9f9;
}

table a {
	color: var(--verde-principal);
	text-decoration: none !important;
	font-weight: 500;
	transition: var(--transicao);
	position: relative;
}

table a:hover {
	color: var(--verde-escuro);
	text-decoration: none !important;
}

table a:after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -2px;
	left: 0;
	background-color: var(--verde-principal);
	transition: var(--transicao);
}

table a:hover:after {
	width: 100%;
}

/* Table caption and controls */
.table-container {
	position: relative;
	margin-bottom: 2rem;
}

/* Email truncation in tables */
.email-truncate {
	max-width: 250px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
}

.table-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.table-title {
	font-size: 1.4rem;
	color: var(--verde-principal);
	margin: 0;
	position: relative;
	padding-bottom: 0.5rem;
}

.table-title:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 3px;
	background-color: var(--verde-principal);
}

.table-controls {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.table-search {
	position: relative;
}

.table-search input {
	padding: 0.7rem 1rem 0.7rem 2.5rem;
	border: 1px solid #ddd;
	border-radius: 30px;
	font-size: 0.9rem;
	width: 200px;
	transition: var(--transicao);
}

.table-search i {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #aaa;
	transition: var(--transicao);
}

.table-search input:focus {
	width: 250px;
	border-color: var(--verde-principal);
	box-shadow: 0 0 0 3px rgba(90, 164, 83, 0.15);
	outline: none;
}

.table-search input:focus + i {
	color: var(--verde-principal);
}

/* Status badges */
.status-badge {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
}

.status-new {
	background-color: #e3f2fd;
	color: #1976d2;
}

.status-assigned {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.status-progress {
	background-color: #fff3e0;
	color: #e65100;
}

.status-closed {
	background-color: #e0e0e0;
	color: #424242;
}

.status-external {
	background-color: #f3e5f5;
	color: #7b1fa2;
}

button {
	font-family: 'Montserrat', sans-serif;
}

.hero-container {
	text-align: center;
	margin-top: 2rem;
	position: relative;
	padding-bottom: 100px; /* Space for the waves */
}

.hero-title {
	font-size: 3rem;
	color: var(--verde-principal);
	margin-bottom: 1rem;
	font-weight: 700;
	line-height: 1.2;
	animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
	font-size: 1.5rem;
	color: #666;
	margin-bottom: 2rem;
	font-weight: 400;
	animation: fadeInUp 1s ease-out;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

.highlight {
	color: var(--amarelo-solar);
	position: relative;
	display: inline-block;
}

.turbina {
	width: 200px;
	animation: rodar 5s linear infinite;
	margin-top: 1rem;
	z-index: 1;
	position: relative;
}

@keyframes rodar {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.features-section {
	margin: 4rem auto 0;
	max-width: 1200px;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

@media (max-width: 768px) {
	.features-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		margin-top: 2rem;
	}
	
	.hero-title {
		font-size: 2.2rem;
	}
	
	.hero-subtitle {
		font-size: 1.2rem;
	}
}

@media (max-width: 480px) {
	.features-grid {
		gap: 1.2rem;
	}
	
	.hero-title {
		font-size: 1.5rem;
	}
	
	.hero-subtitle {
		font-size: 0.9rem;
		padding: 0 0.5rem;
	}
	
	.turbina {
		width: 100px;
	}
	
	.notif-list li {
		padding: 10px;
		flex-direction: column;
		align-items: flex-start;
	}
	
	.notif-close {
		margin-left: 0;
		margin-top: 10px;
	}
	
	.email-body.fixed-scroll {
		max-height: 200px;
	}
	
	.attachment-list {
		flex-direction: column;
	}
	
	.action-menu button, 
	.action-menu a {
		padding: 0.6rem 0.8rem;
		font-size: 0.85rem;
	}
}

.login-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: linear-gradient(120deg, var(--verde-principal), var(--azul-ceu));
	background-size: 400% 400%;
	animation: gradientMove 15s ease infinite;
}

.login-container {
	max-width: 350px;
	margin: 5rem auto;
	background: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.login-container h2 {
	margin-bottom: 1.5rem;
	color: var(--verde-principal);
	animation: bounce 2s infinite;
}

@keyframes bounce {

	0%,
	20%,
	53%,
	80%,
	100% {
		transform: translateY(0);
	}

	40%,
	43% {
		transform: translateY(-15px);
	}

	70% {
		transform: translateY(-7px);
	}

	90% {
		transform: translateY(-3px);
	}
}

.login-container label {
	display: block;
	text-align: left;
	margin: 0.5rem 0 0.25rem 0;
	font-weight: bold;
	color: var(--cinza-texto);
}

.login-container input[type="text"],
.login-container input[type="password"] {
	width: 100%;
	padding: 0.75rem;
	margin-bottom: 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.login-container button {
	background-color: var(--amarelo-solar);
	color: var(--cinza-texto);
	border: none;
	padding: 0.75rem 1.5rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
	border-radius: 4px;
	font-weight: bold;
}

.login-container button:hover {
	background-color: #f1c40f;
}

.error-msg {
	background: #f8d7da;
	color: #721c24;
	border-radius: 4px;
	padding: 0.75rem;
	margin-bottom: 1rem;
}

.detail-card {
	background: #fff;
	padding: 2rem;
	margin: 2rem auto;
	border-radius: 8px;
	max-width: 90%;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	opacity: 0;
	animation: fadeIn 0.7s forwards ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.divider {
	border-bottom: 1px solid #ccc;
	margin: 1.5rem 0;
}

.process-info p {
	margin: 0.5rem 0;
}

.edit-form,
.message-form {
	margin-bottom: 1rem;
}

.edit-form p,
.message-form p {
	margin-bottom: 0.75rem;
}

/* Button Styles - Previously redefined below with new consolidated styling */

.state-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.messages-header {
	display: flex;
	align-items: center;
	background-color: #f5f5f5;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	cursor: pointer;
	margin-bottom: 1rem;
	transition: all 0.3s ease;
}

.messages-header:hover {
	background-color: #eaeaea;
}

.messages-header h3 {
	margin: 0;
	font-size: 1.2rem;
	color: var(--verde-principal);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.arrow-icon {
	font-size: 0.8rem;
	transition: transform 0.3s ease;
}

.messages-list {
	margin-top: 1rem;
	max-height: 500px;
	overflow-y: auto;
	padding-right: 0.5rem;
	transition: max-height 0.3s ease-in-out;
}

.message {
	background: #ffffff;
	border: 1px solid #eaeaea;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	padding: 0;
	margin-bottom: 1rem;
	border-radius: 10px;
	animation: slideIn 0.4s ease-out;
	overflow: hidden;
	position: relative;
}

.message.internal {
	border-left: 4px solid var(--verde-principal);
}

.message.external {
	border-left: 4px solid var(--azul-ceu);
}

.message-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	background-color: #f9f9f9;
	border-bottom: 1px solid #eaeaea;
}

.message-sender {
	font-weight: 600;
	color: #444;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.message-sender:before {
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
}

.internal .message-sender:before {
	content: '\f007';
	color: var(--verde-principal);
}

.external .message-sender:before {
	content: '\f0e0';
	color: var(--azul-ceu);
}

.message-date {
	font-size: 0.85rem;
	color: #777;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.message-date:before {
	content: '\f017';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	color: #aaa;
}

.message-content {
	padding: 1rem;
	line-height: 1.6;
	color: #333;
	white-space: pre-line;
	background-color: #fff;
}

/* Styling for quote blocks in messages */
.message-original {
	position: relative;
}

.quoted-content {
	background-color: #f9f9f9;
	border-left: 3px solid #ddd;
	padding: 0.8rem;
	margin: 0.5rem 0;
	color: #666;
	font-size: 0.9rem;
	max-height: 200px;
	overflow-y: auto;
	display: none;
}

.new-content {
	background-color: #fff;
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
	margin-bottom: 0.5rem;
}

.toggle-quoted {
	background: none;
	border: none;
	color: #1976d2;
	cursor: pointer;
	font-size: 0.8rem;
	padding: 4px 8px;
	border-radius: 12px;
	background-color: #e3f2fd;
	transition: all 0.2s ease;
	margin-left: auto;
}

.toggle-quoted:hover {
	background-color: #bbdefb;
}

.toggle-quoted i {
	margin-right: 4px;
}

/* Handle email thread markers */
.email-marker {
	display: block;
	font-style: italic;
	color: #888;
	margin: 0.5rem 0;
	padding: 0.3rem 0;
	border-top: 1px dashed #ddd;
	font-size: 0.85rem;
}

/* Special styling for original message with quotation */
.original-message blockquote,
.original-message .quoted-text {
	background-color: #f5f5f5;
	border-left: 3px solid #ddd;
	padding: 0.8rem;
	margin: 0.5rem 0;
	color: #666;
	font-size: 0.9rem;
}

/* Hide quoted text by default */
.hidden-quote {
	display: none;
}

.no-messages {
	text-align: center;
	padding: 2rem;
	background-color: #f9f9f9;
	border-radius: 8px;
	color: #777;
	font-style: italic;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.form-group {
	margin-bottom: 1rem;
}

.form-row {
	display: flex;
	gap: 1rem;
}

.form-group label {
	font-weight: 600;
	margin-bottom: 0.25rem;
	display: inline-block;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.form-group textarea {
	min-height: 80px;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	backdrop-filter: blur(4px);
}

.modal-content {
	background: #fff;
	padding: 2.5rem;
	border-radius: 12px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
	animation: scaleIn 0.3s ease forwards;
	position: relative;
	max-height: 80vh;
	overflow-y: auto;
}

.close-modal {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	transition: color 0.2s;
}

.close-modal:hover {
	color: #333;
}

.terms-content {
	margin: 1.5rem 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #555;
	text-align: left;
}

.terms-content p {
	margin-bottom: 1rem;
}

.terms-content strong {
	color: #333;
}

.modal-button {
	background: linear-gradient(to right, var(--verde-principal), var(--verde-secundario));
	color: white;
	border: none;
	padding: 0.7rem 1.5rem;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s;
	display: block;
	margin: 0 auto;
}

.modal-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive modals */
@media (max-width: 768px) {
	.modal-content {
		padding: 2rem 1.5rem;
		width: 95%;
		max-height: 90vh;
	}
	
	.modal-content h3 {
		font-size: 1.3rem;
	}
	
	.modal-buttons {
		justify-content: center;
	}
	
	.terms-content {
		font-size: 0.85rem;
	}
}

@media (max-width: 480px) {
	.modal-content {
		padding: 1.5rem 1rem;
		width: 95%;
	}
	
	.modal-buttons {
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.modal-buttons button {
		width: 100%;
	}
	
	.close-modal {
		top: 10px;
		right: 15px;
	}
	
	.modal-content h3 {
		font-size: 1.2rem;
		padding-right: 20px;
	}
	
	.terms-content {
		margin: 1rem 0;
		max-height: 60vh;
		overflow-y: auto;
		font-size: 0.8rem;
	}
}

.modal-content h3 {
	font-size: 1.5rem;
	color: var(--verde-principal);
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #f0f0f0;
	text-align: left;
}

.modal-content p.modal-disclaimer {
	font-size: 0.9rem;
	color: #777;
	margin-bottom: 1.5rem;
	text-align: left;
}

@keyframes scaleIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.modal-buttons {
	margin-top: 1.5rem;
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.modal-buttons .action-button {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-buttons .action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modal-buttons .action-button.primary {
    background-color: var(--verde-principal);
    color: white;
}

.modal-buttons .action-button.secondary {
    background-color: #f0f0f0;
    color: #444;
}

/* Enhanced form styles */
.form-group {
	margin-bottom: 1.5rem;
	text-align: left;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: #444;
}

.input-styled, .select-styled {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	transition: all 0.3s ease;
	font-family: 'Montserrat', sans-serif;
}

.input-styled:focus, .select-styled:focus {
	border-color: var(--verde-principal);
	box-shadow: 0 0 0 3px rgba(90, 164, 83, 0.2);
	outline: none;
}

.textarea-styled {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	transition: all 0.3s ease;
	min-height: 100px;
	resize: vertical;
	font-family: 'Montserrat', sans-serif;
}

.textarea-styled:focus {
	border-color: var(--verde-principal);
	box-shadow: 0 0 0 3px rgba(90, 164, 83, 0.2);
	outline: none;
}

/* Search container with icon */
.search-container {
	position: relative;
	margin-bottom: 1rem;
}

.search-icon {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #aaa;
}

.search-container input {
	padding-left: 35px;
	width: 100%;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 6px;
}

/* Improved tabs */
.assign-tabs {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.assign-tab {
	padding: 0.75rem 1rem;
	border-radius: 30px;
	border: none;
	background-color: #f5f5f5;
	color: #555;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.assign-tab:hover, .assign-tab:focus {
	background-color: var(--amarelo-solar);
	color: #333;
}

/* Assign results */
.assign-results {
	max-height: 250px;
	overflow-y: auto;
	border: 1px solid #eee;
	border-radius: 6px;
	margin-bottom: 1.5rem;
}

.assign-option {
	padding: 0.75rem 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
	border-bottom: 1px solid #f0f0f0;
}

.assign-option:hover {
	background-color: #f9f9f9;
}

.assign-option.selected {
	background-color: var(--verde-principal);
	color: white;
}

/* Buttons in modals */
.modify-btn {
	width: 100%;
	margin-bottom: 0.75rem;
	text-align: left;
	padding: 0.75rem 1rem;
}

.create-btn {
	margin-bottom: 1.5rem;
	padding: 0.75rem 1.5rem;
}

/* Action buttons */
.action-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.3;
    background-color: #eee;
    color: #333;
}

.action-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.action-button.primary {
    background-color: var(--verde-principal);
    color: white;
}

.action-button.secondary {
    background-color: var(--azul-ceu);
    color: white;
}

.action-button.warning {
    background-color: var(--amarelo-solar);
    color: #333;
}

.action-button.danger {
    background-color: var(--vermelho-alerta);
    color: white;
}

.action-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 164, 83, 0.25);
    text-decoration: none;
}

.action-button i {
    margin-right: 0.5rem;
}

.action-menu button,
.action-menu a {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-menu button:hover,
.action-menu a:hover {
    background-color: var(--verde-principal);
    color: white;
    text-decoration: none;
}

/* Novo banner */
.novo-banner {
	background-color: #e8f5e9;
	padding: 1rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	border-left: 4px solid var(--verde-principal);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.novo-banner p {
	margin: 0.5rem 0;
	font-weight: 600;
	color: #2e7d32;
}

/* Reaberto banner */
.reaberto-banner {
	background-color: #ffebee;
	padding: 1rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	border-left: 4px solid #e53935;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.reaberto-banner p {
	margin: 0.5rem 0;
	font-weight: 600;
	color: #c62828;
}

/* Aguarda Resposta banner */
.aguarda-resposta-banner {
	background-color: #fff3e0;
	padding: 1rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	border-left: 4px solid #ff9800;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.aguarda-resposta-banner p {
	margin: 0.5rem 0;
	font-weight: 600;
	color: #e65100;
}

/* Resposta Recebida banner */
.resposta-recebida-banner {
	background-color: #e0f7fa;
	padding: 1rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	border-left: 4px solid #00acc1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.resposta-recebida-banner p {
	margin: 0.5rem 0;
	font-weight: 600;
	color: #006064;
}

.assign-tabs {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.assign-tab {
	background-color: var(--verde-principal);
	color: #fff;
	border: none;
	padding: 0.5rem 1rem;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

.assign-tab:hover {
	background-color: var(--amarelo-solar);
	color: #333;
}

.assign-search {
	margin-bottom: 1rem;
}

.assign-search input {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.assign-results {
	max-height: 200px;
	overflow-y: auto;
	text-align: left;
	margin-bottom: 1rem;
}

.assign-option {
	padding: 0.5rem;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}

.assign-option:hover {
	background: #e0e0e0;
  }

.assign-option.selected {
	background-color: var(--amarelo-solar);
	color: #333;
}

.assign-tabs {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.assign-tab {
	background-color: var(--verde-principal);
	color: #fff;
	border: none;
	padding: 0.5rem 1rem;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

.assign-tab:hover {
	background-color: var(--amarelo-solar);
	color: #333;
}

.assign-search {
	margin-bottom: 1rem;
}

.assign-search input {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.assign-results {
	max-height: 200px;
	overflow-y: auto;
	text-align: left;
	margin-bottom: 1rem;
}

.assign-option {
	padding: 0.5rem;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}

.assign-option.selected {
	background-color: var(--amarelo-solar);
	color: #333;
}

/* Dropdown do Navbar */
.dropdown {
	position: relative;
	display: inline-block;
}

.dropbtn {
	color: #fff;
	padding: 1rem;
	text-decoration: none;
	cursor: pointer;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: var(--branco);
	min-width: 160px;
	box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
	z-index: 1;
	border-radius: 8px;

}

.dropdown-content a {
	color: var(--cinza-texto) !important;
	padding: 0.75rem 1rem;
	text-decoration: none;
	display: block;
}

.dropdown-content a:hover {
	background-color: var(--amarelo-solar);
	color: var(--cinza-texto);
}

.dropdown:hover .dropdown-content {
	display: block;
}



.turbina {
	width: 200px;
	animation: rodar 5s linear infinite;
	margin-top: 1rem;
}

@keyframes rodar {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.warning-notes {
	background: #fff3cd;
	color: #856404;
	border-radius: 4px;
	padding: 0.75rem;
	margin-bottom: 1rem;
}

.email-container {
	background: #fff;
	padding: 1.5rem;
	margin: 2rem auto;
	border-radius: 8px;
	max-width: 90%;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.email-header {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
	padding: 5px;
	border-radius: 10px;
}

.avatar-section {
	margin-right: 1rem;
}

.avatar-img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.email-info p {
	margin: 0.25rem 0;
}

.email-subject {
	font-size: 1.1rem;
	margin-top: 0.5rem;
}

.attachments-section {
	background: #fafafa;
	padding: 0.75rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.attachment-list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.5rem;
}

.attachment-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.attachment-icon {
	width: 20px;
	height: 20px;
}

.no-attachments {
	font-style: italic;
	color: #666;
}

.email-body {
	min-height: 100px;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.email-body.fixed-scroll {
	max-height: 300px;  /* Ajuste conforme necessário */
	overflow-y: auto;
	border: 1px solid #ddd;
	padding: 1rem;
}

.email-content {
	white-space: normal;
}

.email-content img {
	max-width: 100%;
	height: auto;
}
  

.email-actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
	background-color: #f8f9fa;
	border-radius: 10px;
	padding: 1.2rem;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.actions-title {
	margin: 0 0 0.8rem 0;
	font-size: 1.1rem;
	color: #555;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.compact-actions {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.dropdown-actions {
    position: relative;
    display: inline-block;
}

.action-dropdown-btn {
    background-color: var(--verde-principal);
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.action-dropdown-btn:hover {
    background-color: #4c8f46;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.action-dropdown-btn i:last-child {
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.action-menu {
    display: none;
    position: absolute;
    right: 0;
    z-index: 100;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

/* We're removing this hover effect since we're using JS click handling */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.action-menu button,
.action-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.7rem 1rem;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.action-menu button:hover,
.action-menu a:hover {
    background-color: #f5f5f5;
    text-decoration: none !important;
    color: #333;
}

.action-menu i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.action-menu button:nth-child(1) i {
    color: var(--verde-principal);
}

.action-menu button:nth-child(2) i {
    color: var(--azul-ceu);
}

.action-menu button:nth-child(3) i {
    color: #607d8b;
}

.action-menu button:nth-child(4) i {
    color: #ff9800;
}

.action-menu button:nth-child(5) i {
    color: #9c27b0;
}

.action-menu a i {
    color: #e53935;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-dropdown-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .action-menu {
        min-width: 180px;
    }
    
    .action-menu button,
    .action-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Keep these styles for modal buttons */
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    text-decoration: none !important;
    color: #fff;
}

.action-button.primary {
    background-color: var(--verde-principal);
}

.action-button.secondary {
    background-color: #607d8b;
}

.action-button.danger {
    background-color: #e53935;
}

/* These classes have been consolidated into more consistent button styles above */

/* Checkbox styling */
.checkbox-styled {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.5rem 0;
	cursor: pointer;
}

.checkbox-styled input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-radius: 4px;
	outline: none;
	transition: all 0.3s ease;
	position: relative;
	cursor: pointer;
}

.checkbox-styled input[type="checkbox"]:checked {
	background-color: var(--verde-principal);
	border-color: var(--verde-principal);
}

.checkbox-styled input[type="checkbox"]:checked::before {
	content: '✓';
	position: absolute;
	color: white;
	font-size: 14px;
	font-weight: bold;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Radio button styling */
.checkbox-styled input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-radius: 50%;
	outline: none;
	transition: all 0.3s ease;
	position: relative;
	cursor: pointer;
}

.checkbox-styled input[type="radio"]:checked {
	background-color: var(--verde-principal);
	border-color: var(--verde-principal);
}

.checkbox-styled input[type="radio"]:checked::before {
	content: '';
	position: absolute;
	width: 8px;
	height: 8px;
	background-color: white;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.checkbox-styled label {
	font-size: 0.95rem;
	cursor: pointer;
}

.warning-notes {
	background: #fff3cd;
	border-left: 4px solid #ffeeba;
	padding: 1rem;
	margin: 1rem 0;
}

.divider {
	border-bottom: 1px solid #ccc;
	margin: 1.5rem 0;
}


.messages-header {
	cursor: pointer;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.messages-header h3 {
	margin: 0;
}

.arrow-icon {
	font-size: 1rem;
	margin-left: 0.5rem;
}

.messages-list {
	margin-top: 0.5rem;
}

.nav-item.notifications {
	position: relative;
}

.bell-icon {
	width: 24px;
	height: 24px;
}

.notif-count {
	position: absolute;
	bottom: 0;
	right: 0;
	background: red;
	color: #fff;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 0.7rem;
}

/* Improved notification styles */
.notif-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.notif-list li {
	position: relative;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 10px;
	background-color: #f9f9f9;
	transition: all 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
	overflow: hidden;
}

.notif-list li.unread {
	background-color: #e8f5e9;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	border-left: 4px solid var(--verde-principal);
}

.notif-list li a, 
.notif-list li span {
	flex: 1;
	color: var(--cinza-texto);
	text-decoration: none;
}

.notif-list li a:hover {
	text-decoration: underline;
}

.notif-list li small {
	color: #777;
	font-size: 0.8rem;
	margin-left: 5px;
}

.notif-close {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 16px;
	padding: 5px;
	margin-left: 10px;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.notif-close:hover {
	background-color: rgba(0, 0, 0, 0.05);
	color: #555;
}

.empty-notif {
	text-align: center;
	color: #888;
	font-style: italic;
	padding: 20px;
	background: none !important;
	border: 1px dashed #ddd;
}
.btn-delete {
    background-color: #e74c3c;
    color: white;
    border: none;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Scroll to top/bottom buttons */
.scroll-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.scroll-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-secundario) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(90, 164, 83, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-btn:hover {
  background: linear-gradient(135deg, var(--verde-escuro) 0%, var(--verde-principal) 100%);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 20px rgba(90, 164, 83, 0.6);
}

.scroll-btn:active {
  transform: translateY(0) scale(1.05);
}

.scroll-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-btn i {
  font-size: 22px;
  line-height: 1;
}

/* Add animation for button appearance */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.scroll-btn.show {
  animation: slideInRight 0.4s ease-out;
}

@media (max-width: 768px) {
  .scroll-buttons {
    bottom: 20px;
    right: 15px;
    gap: 8px;
  }
  
  .scroll-btn {
    width: 45px;
    height: 45px;
    box-shadow: 0 3px 10px rgba(90, 164, 83, 0.3);
  }
  
  .scroll-btn i {
    font-size: 20px;
  }
}


/* Secondary state badges with proper contrast for dark colors */
.secondary-state-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #ddd;
  text-align: center;
  line-height: 1.2;
}

/* Dark color variants - white text for better contrast */
.secondary-state-badge[style*='#1a237e'],
.secondary-state-badge[style*='#2e7d32'],
.secondary-state-badge[style*='#bf360c'],
.secondary-state-badge[style*='#4a148c'],
.secondary-state-badge[style*='#b71c1c'],
.secondary-state-badge[style*='#424242'] {
  color: #fff \!important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3) \!important;
}



/* Estado container styling */
.estado-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.secondary-state-wrapper {
  margin-top: 3px;
}

/* Ensure proper styling for secondary state badges in dark colors */
.secondary-state-badge[style*='#1a237e'],
.secondary-state-badge[style*='#2e7d32'], 
.secondary-state-badge[style*='#bf360c'],
.secondary-state-badge[style*='#4a148c'],
.secondary-state-badge[style*='#b71c1c'],
.secondary-state-badge[style*='#424242'] {
  color: #fff \!important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3) \!important;
}

