/* Variables CSS para temas */
:root {
    --primary-color: #3B82F6;       /* Azul moderno y suave */
    --primary-dark: #2563EB;
    --primary-light: #93C5FD;
    --secondary-color: #1E40AF;
    --accent-color: #60A5FA;
    --bg-color: #F9FAFB;
    --text-color: #374151;          /* Gris elegante */
    --border-color: #D1D5DB;
    --form-bg: #F3F4F6;
    --header-bg: #3B82F6;
    --header-gradient: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --nav-bg: #2563EB;
    --nav-gradient: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
    --sidebar-title-bg: #3B82F6;
    --button-bg: #2563EB;
    --link-color: #3B82F6;
    --link-hover: #1D4ED8;
    --shadow-color: rgba(59, 130, 246, 0.2);
    --input-bg: #ffffff;
    --input-text: #1F2937;
}

/* Tema oscuro*/
[data-theme="dark"] {
    --primary-color: #60A5FA;
    --primary-dark: #3B82F6;
    --primary-light: #BFDBFE;
    --secondary-color: #1E3A8A;
    --accent-color: #93C5FD;
    --bg-color: #111827;
    --text-color: #E5E7EB;
    --border-color: #1F2937;
    --form-bg: #1E293B;
    --header-bg: #1E3A8A;
    --header-gradient: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%);
    --nav-bg: #1E3A8A;
    --nav-gradient: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%);
    --sidebar-title-bg: #1D4ED8;
    --button-bg: #1D4ED8;
    --link-color: #93C5FD;
    --link-hover: #BFDBFE;
    --shadow-color: rgba(147, 197, 253, 0.2);
    --input-bg: #2d3d53;
    --input-text: #E5E7EB;
}
ul.tabs {
	margin: 0;
	padding: 0;
	float: left;
	list-style: none;
	height: 45px;
	border-bottom: 2px solid var(--primary-color);
	border-left: 2px solid var(--primary-color);
	width: 100%;
	max-width: 970px;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	background: var(--header-gradient);
	box-shadow: 0 2px 8px var(--shadow-color);
	overflow: hidden;
	transition: all 0.3s ease;
}

ul.tabs li {
	float: left;
	margin: 0;
	padding: 0;
	height: 43px;
	line-height: 43px;
	border: 2px solid var(--primary-color);
	border-left: none;
	margin-bottom: -2px;
	overflow: hidden;
	position: relative;
	background: var(--nav-gradient);
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	min-width: 120px;
	text-align: center;
}

ul.tabs li::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.5s;
}

ul.tabs li:hover::before {
	left: 100%;
}

ul.tabs li:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px var(--shadow-color);
	background: var(--header-gradient);
}

ul.tabs li div {
	text-decoration: none;
	color: var(--bg-color);
	display: block;
	font-size: 1.1em;
	font-weight: 600;
	padding: 0 20px;
	border: 1px solid transparent;
	outline: none;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	position: relative;
	z-index: 2;
}

ul.tabs li div:hover {
	background: rgba(255, 255, 255, 0.2);
	color: var(--bg-color);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Active Tab Styling */
html ul.tabs li.active, 
html ul.tabs li.active div:hover {
	background: var(--bg-color);
	border-bottom: 2px solid var(--bg-color);
	transform: translateY(0);
	box-shadow: 0 -2px 8px var(--shadow-color);
}

html ul.tabs li.active div,
html ul.tabs li.active div:hover {
	color: var(--primary-color);
	background: transparent;
	font-weight: 700;
	text-shadow: none;
}

/* Tab Container */
.tab_container {
	border: 2px solid var(--primary-color);
	border-top: none;
	overflow: hidden;
	clear: both;
	float: left;
	width: 950px;
	background: var(--bg-color);
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	box-shadow: 0 4px 15px var(--shadow-color);
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

/* Tab Content */
.tab_content {
	border: none;
	padding: 20px;
	font-size: 1.1em;
	line-height: 1.6;
	color: var(--text-color);
	background: var(--form-bg);
	border-radius: 8px;
	margin: 8px;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

/* Theme-specific adjustments for dark mode */
[data-theme="dark"] .tab_content {
	box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] ul.tabs li::before {
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

[data-theme="dark"] ul.tabs li div:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* BBCode Style Enhancements */
.tab_content h3 {
	color: var(--primary-color);
	font-weight: 700;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--border-color);
}

.tab_content p {
	margin-bottom: 12px;
	color: var(--text-color);
}

.tab_content ul {
	padding-left: 20px;
	margin-bottom: 15px;
}

.tab_content li {
	margin-bottom: 8px;
	color: var(--text-color);
}

/* Link Styling dentro de tabs */
.tab_content a {
	color: var(--link-color);
	text-decoration: none;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.tab_content a:hover {
	background: var(--primary-light);
	color: var(--link-hover);
	text-decoration: none;
	transform: translateX(2px);
}

/* Dark theme hover effect for links */
[data-theme="dark"] .tab_content a:hover {
	background: var(--primary-dark);
	color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
	ul.tabs {
		width: 100%;
		height: 40px;
		border-radius: 8px;
	}
	
	ul.tabs li {
		height: 38px;
		line-height: 38px;
		min-width: 100px;
		border-radius: 6px;
	}
	
	ul.tabs li div {
		font-size: 1rem;
		padding: 0 15px;
	}
	
	.tab_container {
		width: 100%;
		border-radius: 8px;
	}
	
	.tab_content {
		padding: 15px;
		font-size: 1rem;
		margin: 5px;
	}
}

@media (max-width: 480px) {
	ul.tabs li {
		min-width: 80px;
	}
	
	ul.tabs li div {
		padding: 0 10px;
		font-size: 0.9rem;
	}
	
	.tab_content {
		padding: 12px;
		margin: 3px;
	}
}

/* Animation for tab switching */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tab_content {
	animation: fadeIn 0.3s ease-in-out;
}

/* Additional theme-aware styling */
[data-theme="dark"] ul.tabs {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .tab_container {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}