:root { 
	/* Modern Color Palette */
	--bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--bg-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--bg-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	--text: #1a202c; 
	--text-light: #2d3748;
	--text-muted: #000000;
	--card: rgba(255, 255, 255, 0.95); 
	--cardSurface: rgba(255, 255, 255, 0.8); 
	--border: rgba(255, 255, 255, 0.2); 
	--brand: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--brand-solid: #667eea;
	--sidebar: rgba(26, 32, 44, 0.95); 
	--sidebarText: #ffffff; 
	--sidebarLink: #cbd5e0; 
	--ok: #48bb78; 
	--warn: #ed8936; 
	--bad: #f56565;
	--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] { 
	--bg: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
	--text: #f7fafc; 
	--text-light: #e2e8f0;
	--text-muted: #f7fafc;
	--card: rgba(45, 55, 72, 0.95); 
	--cardSurface: rgba(26, 32, 44, 0.9); 
	--border: rgba(255, 255, 255, 0.1); 
	--brand: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
	--brand-solid: #4299e1;
	--sidebar: rgba(26, 32, 44, 0.98); 
}

* { 
	box-sizing: border-box; 
}

html, body {
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
}

html, body { 
	margin: 0; 
	padding: 0; 
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; 
	color: var(--text); 
	background: var(--bg);
	background-attachment: fixed;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container { 
	display: grid; 
	grid-template-columns: 280px 1fr; 
	min-height: 100vh; 
	position: relative;
	width: 100%;
	max-width: 100vw;
	overflow-x: hidden;
}

.container::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--bg);
	z-index: -1;
}

#sidebar { 
	background: var(--sidebar);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-right: 1px solid var(--border);
	color: var(--sidebarText); 
	padding: 32px 24px;
	box-shadow: var(--shadow-xl);
	position: relative;
	z-index: 10;
}

#sidebar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
	pointer-events: none;
}

#sidebar .brand { 
	font-weight: 800; 
	font-size: 1.5rem;
	margin-bottom: 32px; 
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	position: relative;
}

#sidebar .nav { 
	list-style: none; 
	padding: 0; 
	margin: 0; 
}

#sidebar .nav-item { 
	margin: 4px 0; 
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
}

#sidebar .nav-item:hover {
	transform: translateX(4px);
	background: rgba(255, 255, 255, 0.1);
}

#sidebar .nav-item a { 
	color: var(--sidebarLink); 
	text-decoration: none; 
	display: block;
	padding: 12px 16px;
	border-radius: 12px;
	transition: all 0.3s ease;
	font-weight: 500;
	position: relative;
	overflow: hidden;
}

#sidebar .nav-item a::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s ease;
}

#sidebar .nav-item a:hover::before {
	left: 100%;
}

#sidebar .nav-item.active a { 
	color: var(--sidebarText); 
	font-weight: 600; 
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
	box-shadow: var(--shadow-md);
}

#sidebar .logout, #sidebar #themeToggle { 
	margin-top: 24px; 
	width: 100%; 
	padding: 14px 20px; 
	border-radius: 12px; 
	border: none; 
	background: var(--brand);
	color: #fff; 
	cursor: pointer; 
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
}

#sidebar .logout:hover, #sidebar #themeToggle:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

#sidebar .logout::before, #sidebar #themeToggle::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 ease;
}

#sidebar .logout:hover::before, #sidebar #themeToggle:hover::before {
	left: 100%;
}

.content { 
	padding: 40px; 
	background: transparent;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.card { 
	background: var(--card);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 32px; 
	border-radius: 24px; 
	border: 1px solid var(--border); 
	box-shadow: var(--shadow-lg);
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
	pointer-events: none;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-xl);
	border-color: rgba(102, 126, 234, 0.3);
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
	position: relative;
	z-index: 2;
}

.btn { 
	display: inline-block; 
	background: var(--brand);
	color: white; 
	padding: 16px 32px; 
	border-radius: 50px; 
	text-decoration: none; 
	border: none; 
	cursor: pointer; 
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.btn::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 ease;
}

.btn:hover::before {
	left: 100%;
}

.btn:focus, .btn:hover { 
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	filter: brightness(1.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, var(--text) 0%, var(--text-light) 100%);
	background-clip: text;
	-webkit-background-clip: text;
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.typewriter {
	overflow: hidden;
	border-right: 3px solid var(--brand-solid);
	white-space: nowrap;
	margin: 0 auto;
	animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
	from { width: 0; }
	to { width: 100%; }
}

@keyframes blink-caret {
	from, to { border-color: transparent; }
	50% { border-color: var(--brand-solid); }
}

.fade-in {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.login-wrapper { 
	max-width: 450px; 
	margin: 10vh auto; 
	background: var(--card);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 40px; 
	border-radius: 24px; 
	border: 1px solid var(--border); 
	box-shadow: var(--shadow-xl);
	position: relative;
	overflow: hidden;
}

.login-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
	pointer-events: none;
}

.input { 
	width: 100%; 
	padding: 16px 20px; 
	border-radius: 12px; 
	border: 2px solid var(--border); 
	background: var(--cardSurface);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: var(--text); 
	font-size: 1rem;
	transition: all 0.3s ease;
	position: relative;
}

.input:focus {
	outline: none;
	border-color: var(--brand-solid);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	transform: translateY(-2px);
}

/* Utility Classes */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.text-muted { 
	color: var(--text-muted); 
	font-size: 0.95rem; 
	line-height: 1.6;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Focus States */
:focus { 
	outline: 3px solid rgba(102, 126, 234, 0.3); 
	outline-offset: 2px; 
	border-radius: 8px;
}

/* Loading Animation */
.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(102, 126, 234, 0.3);
	border-radius: 50%;
	border-top-color: var(--brand-solid);
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 900px) {
	.container { grid-template-columns: 1fr; }
	#sidebar { 
		position: sticky; 
		top: 0; 
		z-index: 100;
		grid-template-columns: 260px;
	}
	.content { padding: 24px; }
	.card { padding: 24px; }
	h1 { font-size: 2.5rem; }
	h2 { font-size: 2rem; }
	h3 { font-size: 1.75rem; }
}

@media (max-width: 600px) {
	.content { padding: 16px; }
	.card { padding: 20px; }
	h1 { font-size: 2rem; }
	h2 { font-size: 1.75rem; }
	h3 { font-size: 1.5rem; }
}

/* Enhanced Components */
.video-placeholder { 
	width: 100%; 
	aspect-ratio: 16/9; 
	display: grid; 
	place-items: center; 
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
	color: var(--text); 
	border: 2px dashed var(--border); 
	border-radius: 16px; 
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.video-placeholder:hover {
	border-color: var(--brand-solid);
	transform: scale(1.02);
}

.resource-list a { 
	display: block; 
	margin: 8px 0; 
	padding: 12px 16px;
	background: var(--cardSurface);
	border-radius: 12px;
	text-decoration: none;
	color: var(--text);
	transition: all 0.3s ease;
	border: 1px solid var(--border);
}

.resource-list a:hover {
	background: var(--card);
	transform: translateX(4px);
	box-shadow: var(--shadow-md);
}

.badge { 
	display: inline-block; 
	padding: 8px 16px; 
	border-radius: 50px; 
	background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
	color: #fff; 
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
}

.badge:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

/* Video Modal Styles */
.video-modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(4px);
}

.video-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-modal-content {
	background: var(--card);
	border-radius: 12px;
	padding: 24px;
	max-width: 90vw;
	max-height: 90vh;
	position: relative;
	box-shadow: var(--shadow-xl);
	overflow: hidden;
}

.video-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
}

.video-modal-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}

.video-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--text-muted);
	padding: 4px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.video-modal-close:hover {
	background: var(--border);
	color: var(--text);
}

.video-container {
	position: relative;
	width: 100%;
	max-width: 800px;
	aspect-ratio: 16/9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.video-container iframe,
.video-container video {
	width: 100%;
	height: 100%;
	border: none;
}

.video-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--brand);
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.video-trigger:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.video-trigger::before {
	content: "▶";
	font-size: 12px;
}

/* Bull Market Indicators */
.bull-indicator {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--cardSurface);
	border-radius: 8px;
	margin-bottom: 8px;
	border-left: 4px solid transparent;
}

.bull-indicator.hit {
	border-left-color: var(--ok);
	background: rgba(72, 187, 120, 0.1);
}

.bull-indicator.close {
	border-left-color: var(--warn);
	background: rgba(237, 137, 54, 0.1);
}

.bull-indicator.far {
	border-left-color: var(--bad);
	background: rgba(245, 101, 101, 0.1);
}

.indicator-name {
	font-weight: 500;
	color: var(--text);
}

.indicator-status {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.indicator-status.hit { color: var(--ok); }
.indicator-status.close { color: var(--warn); }
.indicator-status.far { color: var(--bad); }

@media (max-width: 600px) {
	.video-modal-content {
		margin: 20px;
		padding: 16px;
		max-width: calc(100vw - 40px);
	}
	
	.video-trigger {
		padding: 10px 16px;
		font-size: 13px;
	}
} 