@charset "utf-8";
/* CSS Document */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* COLOR PRIMARIO PARA CAMBIAR TODO  */
:root {
	--primary-gradient: linear-gradient(135deg, #081b3dd7 0%, #0c3378d7 100%);
	--primary-solid: #0c3378; /* NUEVA VARIABLE - Color sólido */
	--primary-color: #667eea;
	--secondary-color: #764ba2;
	--bg-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
	--card-bg: rgba(255, 255, 255, 0.95);
	--sidebar-bg: rgba(255, 255, 255, 0.95);
	--text-primary: #2d3748;
	--text-secondary: #718096;
	--border-color: rgba(255, 255, 255, 0.2);
}

/* Tema Morado */
[data-theme="purple"] {
	--primary-gradient: linear-gradient(135deg, #9f7aea 0%, #553c9a 100%);
	--primary-solid: #9f7aea; /* NUEVA VARIABLE */
	--primary-color: #9f7aea;
	--secondary-color: #553c9a;
	--bg-gradient: linear-gradient(135deg, #44337a 0%, #553c9a 100%);
}

/* Tema Verde */
[data-theme="green"] {
	--primary-gradient: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
	--primary-solid: #48bb78; /* NUEVA VARIABLE */
	--primary-color: #48bb78;
	--secondary-color: #38a169;
	--bg-gradient: linear-gradient(135deg, #2f855a 0%, #276749 100%);
}

/* Tema Rojo */
[data-theme="red"] {
	--primary-gradient: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
	--primary-solid: #f56565; /* NUEVA VARIABLE */
	--primary-color: #f56565;
	--secondary-color: #e53e3e;
	--bg-gradient: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
}

/* Tema Cyan */
[data-theme="cyan"] {
	--primary-gradient: linear-gradient(135deg, #4fd1c7 0%, #319795 100%);
	--primary-solid: #4fd1c7; /* NUEVA VARIABLE */
	--primary-color: #4fd1c7;
	--secondary-color: #319795;
	--bg-gradient: linear-gradient(135deg, #2c7a7b 0%, #285e61 100%);
}

/* Tema Dorado */
[data-theme="gold"] {
	--primary-gradient: linear-gradient(135deg, #f6ad55 0%, #d69e2e 100%);
	--primary-solid: #f6ad55; /* NUEVA VARIABLE */
	--primary-color: #f6ad55;
	--secondary-color: #d69e2e;
	--bg-gradient: linear-gradient(135deg, #b7791f 0%, #975a16 100%);
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--bg-gradient);
	min-height: 100vh;
	color: #333;
	transition: all 0.3s ease;
}

.dashboard-container {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

/* TOP BAR */
.top-bar {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2rem;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1001;
}

.top-bar-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.menu-toggle {
	background: none;
	border: none;
	color: var(--primary-color);
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 8px;
	transition: background-color 0.3s ease;
}

.menu-toggle:hover {
	background: rgba(102, 126, 234, 0.1);
}

.top-bar-right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.top-nav-item {
	padding: 0.5rem 1rem;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--text-primary);
	font-weight: 500;
	position: relative;
}

.top-nav-item:hover {
	background: rgba(102, 126, 234, 0.1);
	color: var(--primary-color);
}

.theme-picker {
	position: relative;
	display: inline-block;
}

.theme-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	padding: 0.5rem;
	display: none;
	min-width: 200px;
	z-index: 1002;
}

.theme-dropdown.show {
	display: block;
}

.theme-option {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.8rem;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.theme-option:hover {
	background: #f7fafc;
}

.theme-color {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #e2e8f0;
}

.logout-btn {
	background: linear-gradient(135deg, #e53e3e, #c53030);
	color: white;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.3s ease;
}

.logout-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

/* MAIN CONTAINER */
.main-container {
	display: flex;
	flex: 1;
	margin-top: 60px;
}

/* BARRA LATERAL IZQUIERDA */
.sidebar {
	width: 300px;
	background: var(--sidebar-bg);
	backdrop-filter: blur(20px);
	border-right: 1px solid var(--border-color);
	box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	position: fixed;
	height: calc(100vh - 60px);
	z-index: 1000;
	transition: transform 0.3s ease;
	top: 60px;
}

.sidebar.collapsed {
	transform: translateX(-100%);
}

.sidebar-header {
	padding: 1rem 0.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	background: var(--primary-gradient);
	color: white;
}

.sidebar-header h1 {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.sidebar-header p {
	font-size: 0.9rem;
	opacity: 0.9;
}

/* SEARCH BAR STYLES */
.sidebar-search {
	padding: 1rem 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(0, 0, 0, 0.02);
}

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

.search-container i.fa-search {
	position: absolute;
	left: 0.8rem;
	color: var(--text-secondary);
	font-size: 0.9rem;
	z-index: 1;
}

.search-container input {
	width: 100%;
	padding: 0.7rem 0.7rem 0.7rem 2.2rem;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 0.9rem;
	background: white;
	transition: all 0.3s ease;
	color: var(--text-primary);
}

.search-container input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-container input::placeholder {
	color: var(--text-secondary);
}

.clear-search {
	position: absolute;
	right: 0.5rem;
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: 0.3rem;
	border-radius: 50%;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.clear-search:hover {
	background: rgba(102, 126, 234, 0.1);
	color: var(--primary-color);
}

.nav-item.hidden {
	display: none;
}

.nav-section.hidden {
	display: none;
}

.no-results {
	padding: 2rem 1.5rem;
	text-align: center;
	color: var(--text-secondary);
}

.no-results i {
	font-size: 2rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.search-highlight {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 600;
}

.sidebar-nav {
	flex: 1;
	padding: 1rem 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--primary-color) transparent;
}

.sidebar-nav::-webkit-scrollbar {
	width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
	background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
	background: var(--primary-color);
	border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
	background: var(--secondary-color);
}

.nav-section {
	margin-bottom: 2rem;
}

.nav-section h3 {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	padding: 0.6rem 1.5rem;
	margin: 0 1rem 1rem 1rem;
	background: var(--primary-gradient);
	color: white;
	border-radius: 8px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.nav-section h3::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		45deg,
		transparent 30%,
		rgba(255, 255, 255, 0.1) 50%,
		transparent 70%
	);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
}

.nav-section h3:hover::before {
	transform: translateX(100%);
}

.nav-section h3:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-item {
	display: flex;
	align-items: center;
	padding: 0.8rem 1.5rem;
	color: #4a5568;
	cursor: pointer;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
	position: relative;
}

.nav-item:hover {
	background: rgba(102, 126, 234, 0.1);
	color: var(--primary-color);
	transform: translateX(5px);
}

.nav-item.active {
	background: rgba(102, 126, 234, 0.15);
	color: var(--primary-color);
	border-left-color: var(--primary-color);
	/*font-weight: 600;*/
}

.nav-item i {
	width: 20px;
	margin-right: 0.8rem;
	font-size: 1rem;
}

.nav-item.has-submenu {
	justify-content: space-between;
}

.nav-item.has-submenu::after {
	content: "\f107";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	transition: transform 0.3s ease;
}

.nav-item.has-submenu.expanded::after {
	transform: rotate(180deg);
}

.submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background: rgba(0, 0, 0, 0.02);
}

.submenu.expanded {
	max-height: 1000px;
}

.submenu .nav-item {
	padding-left: 3rem;
	font-size: 0.9rem;
	border-left: 3px solid transparent;
}

.sidebar-footer {
	padding: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(0, 0, 0, 0.02);
}

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

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--primary-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 600;
	margin-right: 0.8rem;
}

.user-info h4 {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-primary);
}

.user-info p {
	font-size: 0.8rem;
	color: var(--text-secondary);
}

/* MAIN CONTENT */
.main-content {
	flex: 1;
	margin-left: 280px;
	padding: 2rem;
	transition: margin-left 0.3s ease;
}

.main-content.full-width {
	margin-left: 0;
}

.content-header {
	margin-bottom: 2rem;
}

.content-header h1 {
	color: white;
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.content-header p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.1rem;
}

.content-area {
	display: none;
}

.content-area.active {
	display: block;
	animation: fadeIn 0.5s ease-in-out;
}

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

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

/* PROJECT CARDS */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.project-card {
	background: var(--card-bg);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 2rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--border-color);
}

.project-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--gradient);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.project-card:hover::before {
	transform: scaleX(1);
}

.project-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.project-card.react {
	--gradient: linear-gradient(90deg, #61dafb, #21232a);
}

.project-card.vue {
	--gradient: linear-gradient(90deg, #4fc08d, #324157);
}

.project-card.node {
	--gradient: linear-gradient(90deg, #68a063, #3c873a);
}

.project-card.mobile {
	--gradient: linear-gradient(90deg, #ff6b6b, #ee5a24);
}

.project-card.fullstack {
	--gradient: var(--primary-gradient);
}

.card-icon {
	width: 60px;
	height: 60px;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	font-size: 2rem;
	color: white;
	background: var(--gradient);
}

.card-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.card-description {
	color: var(--text-secondary);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.start-btn {
	background: var(--gradient);
	color: white;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	font-size: 0.95rem;
}

.start-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* STATS SECTION */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.stat-card {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(20px);
	border-radius: 15px;
	padding: 2rem;
	text-align: center;
	border: 1px solid var(--border-color);
}

.stat-card h3 {
	color: white;
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.stat-card p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1rem;
}

/* SETTINGS AND PROFILE CONTENT */
.settings-form,
.profile-form {
	background: var(--card-bg);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 2rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	margin-bottom: 2rem;
}

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

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
	font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.8rem;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-color);
}

.btn-primary {
	background: var(--primary-gradient);
	color: white;
	border: none;
	padding: 0.8rem 2rem;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.overlay {
	display: none;
	position: fixed;
	top: 60px;
	left: 0;
	width: 100%;
	height: calc(100vh - 60px);
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
}

.overlay.active {
	display: block;
}

.notification {
	position: fixed;
	top: 80px;
	right: 20px;
	background: #48bb78;
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 10px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	transform: translateX(400px);
	transition: transform 0.3s ease;
	z-index: 1001;
}

.notification.show {
	transform: translateX(0);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
	.top-bar {
		padding: 0 1rem;
	}

	.sidebar {
		width: 100%;
		transform: translateX(-100%);
	}

	.sidebar.mobile-visible {
		transform: translateX(0);
	}

	.main-content {
		margin-left: 0;
		padding: 1rem;
	}

	.content-header h1 {
		font-size: 2rem;
	}

	.projects-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.project-card {
		padding: 1.5rem;
	}

	.top-bar-right {
		gap: 0.5rem;
	}

	.top-nav-item {
		padding: 0.5rem;
		font-size: 0.9rem;
	}
}
