/*-----------------------------------------------------------*
Theme Name: LunaOne
Author: Ciclos Place
Author URI: https://ciclosplace.com
Description: Tema desenvolvido para a plataforma LunaOne.
Version: 1.0
Text Domain: lunaone

Este tema é propriedade intelectual da Ciclos Place.
É proibida a cópia, distribuição ou modificação sem autorização.
*-----------------------------------------------------------*/

body.global-player-active {
    padding-bottom: 150px; /* Adjust this value based on your global player's height */
}

@media (max-width: 768px) {
    body.global-player-active {
        padding-bottom: 100px; /* Adjust for mobile global player height */
    }
}

body, html {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow: hidden;
	font-family: Arial, sans-serif;
}

#particles-js {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: #000;
	z-index: 1;
}

.site-container {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100vh;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
}

#main-content {
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.entry-content {
	background-color: rgba(255, 255, 255, 0.8);
	padding: 20px;
	border-radius: 10px;
}

.front-page-content {
	text-align: center;
	color: white;
	padding: 50px 20px;
	background-color: transparent;
	border-radius: 15px;
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.front-page-content h1 {
	font-size: 2.5em;
	margin-bottom: 20px;
	color: #fff;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.front-page-content p {
	font-size: 1.2em;
	color: #ddd;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
}

.btn {
	display: inline-block;
	text-decoration: none;
	padding: 12px 25px;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.btn-primary {
	background-color: #007bff;
	color: #ffffff;
}

.btn-secondary {
	background-color: #6c757d;
	color: #ffffff;
}

.btn:hover {
	opacity: 0.9;
	transform: translateY(-3px);
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsivo */
@media (max-width: 768px) {
	.site-container {
		padding: 10px;
	}
}

/* Dashboard Styles */
.sidebar {
	width: 250px;
	height: 100vh;
	background-color: #11101d;
	padding: 20px 0;
	position: fixed;
	left: 0;
	top: 0;
	transition: all 0.3s ease;
	overflow-y: auto;
	z-index: 1000;
	transition: width 0.3s ease-in-out;
	overflow: hidden;
	white-space: nowrap;
}

.sidebar-minimized {
	width: 80px;
}

.sidebar-minimized .sidebar-header h2,
.sidebar-minimized .sidebar-links h4 span,
.sidebar-minimized .sidebar-text,
.sidebar-minimized .user-account {
	display: none;
}

.sidebar-item {
	display: flex;
	align-items: center;
}

.sidebar-minimized .sidebar-item {
	justify-content: center;
}

.sidebar-text {
	margin-left: 10px;
	opacity: 1;
	transition: opacity 0.3s ease-in-out;
}

.sidebar-minimized .sidebar-text {
	opacity: 0;
	width: 0;
}

.sidebar-links a {
	display: flex;
	align-items: center;
	padding: 10px;
	text-decoration: none;
}

.sidebar-minimized .sidebar-links a {
	justify-content: center;
}

.sidebar-minimized .material-symbols-outlined,
.sidebar-minimized .sidebar-links a i {
	margin: 0 auto;
}

.sidebar-header {
	display: flex;
	align-items: center;
	padding: 0 20px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-right: 10px;
}

.sidebar-header h2 {
	color: white;
	font-size: 1.2rem;
	margin: 0;
}

.sidebar-links {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.sidebar-links h4 {
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	font-size: 0.8rem;
	padding: 10px 20px;
	position: relative;
	margin: 0;
}

.menu-separator {
	height: 1px;
	background-color: rgba(255, 255, 255, 0.1);
	margin-top: 5px;
}

.sidebar-links li a {
	display: flex;
	align-items: center;
	color: white;
	text-decoration: none;
	padding: 10px 20px;
	transition: background-color 0.3s ease;
}

.sidebar-links li a:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-links li a .material-symbols-outlined {
	margin-right: 10px;
	font-size: 1.2rem;
}

.user-account {
	position: absolute;
	bottom: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.2);
	padding: 15px 20px;
}

.user-profile {
	display: flex;
	align-items: center;
}

.user-profile img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-right: 10px;
}

.user-detail h3 {
	color: white;
	margin: 0;
	font-size: 1rem;
}

.user-detail span {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8rem;
	text-transform: capitalize;
}

.dashboard-content {
	margin-left: 250px;
	padding: 20px;
	min-height: 100vh;
	background-color: #f4f6f9;
	transition: margin-left 0.3s ease;
}

.dashboard-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.dashboard-card {
	background: white;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	animation: slideIn 0.3s ease-out forwards;
	opacity: 0;
	transform: translateY(20px);
	color: #1a1a1a; /* Default text color for dashboard cards */
}

.dashboard-card:nth-child(1) { animation-delay: calc(var(--index) * 0.1s); }
.dashboard-card:nth-child(2) { animation-delay: calc(var(--index) * 0.2s); }
.dashboard-card:nth-child(3) { animation-delay: calc(var(--index) * 0.3s); }

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

.dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.dashboard-header h1 {
	margin: 0;
	font-size: 1.8rem;
	color: #1a1a1a;
}

.dashboard-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.form-group label {
	font-weight: 500;
	color: #495057;
}

.form-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

/* Ajustes para o sidebar minimizado */
.sidebar-minimized + .dashboard-content {
	margin-left: 80px;
}

.upload-area {
	display: none;
}

.upload-area.active {
	display: block;
}

.file-upload-container {
	position: relative;
	border: 2px dashed #ccc;
	border-radius: 5px;
	padding: 20px;
	text-align: center;
	margin-bottom: 15px;
	background: #f8f9fa;
	cursor: pointer;
	transition: all 0.3s ease;
}

.file-upload-container:hover {
	border-color: #007bff;
	background: #f1f8ff;
}

.file-upload-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.upload-icon {
	font-size: 24px;
	color: #6c757d;
}

.file-upload-container:hover .upload-icon {
	color: #007bff;
}

.file-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.file-name {
	margin-top: 10px;
	font-size: 0.9em;
	color: #6c757d;
}

.upload-summary {
	padding: 20px;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.resumo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: center;
}

.resumo-item {
	padding: 15px;
	background: #f8f9fa;
	border-radius: 5px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: #495057; /* Default text color for summary items */
}

.resumo-label {
	font-size: 0.9em;
	color: #6c757d;
}

.resumo-valor {
	font-size: 1.5em;
	font-weight: bold;
	color: #495057;
}

.resumo-valor.positive {
	color: #28a745;
}

.resumo-valor.warning {
	color: #ffc107;
}

.dashboard-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.dashboard-table th,
.dashboard-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #dee2e6;
	color: #1a1a1a; /* Default text color for table cells */
}

.dashboard-table th {
	background-color: #f8f9fa;
	font-weight: 600;
	color: #1a1a1a; /* Default text color for table headers */
}

.dashboard-table tr:hover {
	background-color: #f8f9fa;
}

.badge {
	padding: 5px 10px;
	border-radius: 15px;
	font-size: 0.8em;
}

.badge.positive {
	background-color: #d4edda;
	color: #155724;
}

.badge.warning {
	background-color: #fff3cd;
	color: #856404;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
}

.hidden-submit {
	display: none;
}

.dashboard-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.search-container {
	display: flex;
	gap: 10px;
}

.mb-3 {
	margin-bottom: 1rem;
}

.form-control {
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 1rem;
}

.form-control:focus {
	border-color: #80bdff;
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

@media (max-width: 768px) {
	.sidebar {
		width: 0;
		overflow: hidden;
		position: fixed;
		left: -250px;
		top: 0;
		height: 100vh;
		z-index: 1001;
		transition: left 0.3s ease;
		box-shadow: 2px 0 5px rgba(0,0,0,0.2);
		background-color: transparent;
	}

	.sidebar.active {
		width: 250px;
		left: 0;
		overflow-y: auto;
		background-color: #11101d;
	}

	.dashboard-content {
		margin-left: 0;
		width: 100%;
		padding: 15px 15px 15px 15px;
	}

	.dashboard-container {
		grid-template-columns: 1fr;
	}

	.dashboard-card {
		width: 100%;
		box-sizing: border-box;
		padding: 15px;
	}

	.resumo-grid {
		grid-template-columns: 1fr;
	}

	.resumo-item {
		margin-bottom: 15px;
	}

	.dashboard-header {
		flex-direction: column;
		gap: 15px;
		align-items: flex-start;
	}

	.dashboard-actions {
		width: 100%;
		flex-direction: column;
		gap: 10px;
	}

	.search-container {
		width: 100%;
	}

	.search-container input {
		flex: 1;
	}

	/* Hamburger Menu Styles */
	.hamburger-menu {
		display: block;
		position: fixed;
		top: 15px;
		right: 15px;
		width: 30px;
		height: 25px;
		cursor: pointer;
		z-index: 1002;
		background-color: transparent;
	}

	.hamburger-menu span {
		display: block;
		position: absolute;
		height: 3px;
		width: 100%;
		background: #11101d;
		border-radius: 3px;
		opacity: 1;
		left: 0;
		transform: rotate(0deg);
		transition: .25s ease-in-out;
	}

	.hamburger-menu span:nth-child(1) {
		top: 0px;
	}

	.hamburger-menu span:nth-child(2) {
		top: 10px;
	}

	.hamburger-menu span:nth-child(3) {
		top: 20px;
	}

	.hamburger-menu.active span:nth-child(1) {
		top: 10px;
		transform: rotate(135deg);
	}

	.hamburger-menu.active span:nth-child(2) {
		opacity: 0;
		left: -60px;
	}

	.hamburger-menu.active span:nth-child(3) {
		top: 10px;
		transform: rotate(-135deg);
	}

	/* Overlay for sidebar when active */
	.sidebar-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,0.5);
		z-index: 1000;
	}

	.sidebar-overlay.active {
		display: block;
	}
}

/* Animações complementares para o sidebar */
@keyframes sidebar-hover-in {
	from {
		transform: translateX(-20px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes sidebar-hover-out {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(-20px);
		opacity: 0;
	}
}

.sidebar-minimized .sidebar-links a {
	position: relative;
	overflow: hidden;
}

.sidebar-minimized .sidebar-links a .sidebar-text {
	position: absolute;
	left: 100%;
	opacity: 0;
	transition: all 0.3s ease;
}

.sidebar:not(.sidebar-minimized) .sidebar-links a .sidebar-text {
	animation: sidebar-hover-in 0.3s ease forwards;
}

.sidebar-minimized .sidebar-links a:hover .sidebar-text {
	left: calc(100% + 50px);
	opacity: 1;
	animation: sidebar-hover-in 0.3s ease forwards;
}

/* Efeito de sombra dinâmica */
.sidebar::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 10px;
	background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.sidebar:not(.sidebar-minimized)::before {
	opacity: 1;
}

/* Animação de ícones */
.sidebar-minimized .sidebar-links a .material-symbols-outlined,
.sidebar-minimized .sidebar-links a i {
	transition: transform 0.3s ease;
}

.sidebar-minimized .sidebar-links a:hover .material-symbols-outlined,
.sidebar-minimized .sidebar-links a:hover i {
	transform: scale(1.2) rotate(5deg);
}

/* Adicione estas regras ao final do seu arquivo CSS */

/* Ajustes para o layout mobile */
.mobile-layout .dashboard-content,
.mobile-layout #main-content,
.mobile-layout .site-container {
	margin-left: 0 !important;
	width: 100% !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* Ajustes para o sidebar em modo mobile */
@media (max-width: 768px) {
	.sidebar.mobile-view {
		width: 0;
		left: -250px;
		position: fixed;
	}

	.sidebar.mobile-view.active {
		width: 250px;
		left: 0;
	}

	/* Mostrar texto dos ícones no mobile quando o sidebar está ativo */
	.sidebar.mobile-view.active .sidebar-text {
		display: inline-block !important;
		opacity: 1 !important;
		width: auto !important;
		position: static !important;
		margin-left: 10px !important;
	}

	/* Mostrar nome do usuário no cabeçalho do sidebar */
	.sidebar.active .sidebar-header h2 {
		display: block !important;
		color: white !important;
		font-size: 1.2rem !important;
		margin: 0 !important;
	}

	.sidebar.active .sidebar-item {
		justify-content: flex-start !important;
	}

	.sidebar.active .sidebar-links a {
		justify-content: flex-start !important;
	}

	.sidebar.active .material-symbols-outlined,
	.sidebar.active .sidebar-links a i {
		margin-right: 10px !important;
		margin-left: 0 !important;
	}

	/* Mostrar cabeçalhos de seção no mobile */
	.sidebar.active .sidebar-links h4 span {
		display: inline-block !important;
	}

	/* Ajuste para o conteúdo principal */
	.dashboard-content,
	#main-content,
	.site-container {
		margin-left: 0 !important;
		width: 100% !important;
		padding-left: 15px !important;
		padding-right: 15px !important;
	}
}

/* Esconder o sidebar em dispositivos móveis quando não estiver ativo */
@media (max-width: 768px) {
	.sidebar:not(.active) {
		width: 0 !important;
		left: -250px !important;
		overflow: hidden !important;
	}

	/* Ajustes para cores de texto e fundo no mobile */
	.dashboard-card {
		background-color: white;
		color: #1a1a1a; /* Cor do texto principal */
	}

	.summary-item {
		background-color: #f8f9fa;
		color: #495057; /* Cor do texto dos itens de resumo */
	}

	.summary-label {
		color: #6c757d;
	}

	.summary-value {
		color: #495057;
	}

	.dashboard-table th {
		background-color: #f8f9fa;
		color: #1a1a1a; /* Cor do texto do cabeçalho da tabela */
	}

	.dashboard-table td {
		background-color: white;
		color: #1a1a1a; /* Cor do texto das células da tabela */
	}
}
