/*
Theme Name: New Eve Dashboard Theme
Theme URI: https://neweve.com
Author: eveCloud
Author URI: https://eveCloud.com
Description: The official theme for New Eve
Version: 1.8.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: new-eve-26
*/

/* ── Brand Tokens ─────────────────────────────────────────── */
:root {
	--ne-primary: #09111f;
	--ne-secondary: #0f1828;
	--ne-accent: #ffb21e;
	--ne-accent-soft: rgba(255, 178, 30, 0.12);
	--ne-bg: #0f1828;
	--ne-text: #0c1a4f;
	--ne-card: #ffffff;
	--ne-card-border: rgba(9, 17, 31, 0.08);
	--ne-subtle: rgba(12, 26, 79, 0.5);
	--ne-muted: rgba(12, 26, 79, 0.7);
	--ne-on-dark: #f7f2e5;
	--ne-on-dark-muted: rgba(247, 242, 229, 0.78);
	--ne-divider: rgba(9, 17, 31, 0.06);
	--ne-green: #22c55e;
	--ne-red: #ef4444;
	--ne-sidebar-width: 260px;
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	font-family: 'Work Sans', sans-serif;
	color: var(--ne-on-dark);
	background-color: var(--ne-bg);
	overflow-x: hidden;
	font-size: 14px;
	line-height: 1.5;
}

a {
	color: var(--ne-on-dark);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--ne-primary);
}

/* Headings use Young Serif */
h1, h2, h3, h4, h5, h6,
.ne-serif {
	font-family: 'Young Serif', serif;
	font-weight: 400;
	color: var(--ne-primary);
	line-height: 1.2;
	letter-spacing: -0.2px;
}

/* Main Layout Container */
.app-container {
	display: flex;
	min-height: 100vh;
	width: 100%;
	background: var(--ne-bg);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.app-sidebar {
	width: var(--ne-sidebar-width);
	background-color: var(--ne-primary);
	color: #fff;
	position: fixed;
	left: 0;
	top: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 32px 0 0;
	z-index: 1000;
	overflow-y: auto;
	overflow-x: hidden;
}

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

.app-sidebar::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.04);
}

.app-sidebar::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 3px;
}

.app-sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Sidebar Brand */
.ne-sidebar-brand {
	font-family: 'Young Serif', serif;
	font-size: 22px;
	line-height: 1;
	color: #fff;
	padding: 0 20px 28px;
	letter-spacing: -0.3px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
}

.ne-sidebar-brand:hover {
	color: #fff;
	text-decoration: none;
}

.ne-sidebar-brand .ne-brand-dot {
	width: 10px;
	height: 10px;
	background: var(--ne-accent);
	border-radius: 50%;
	flex-shrink: 0;
}

.ne-sidebar-brand img {
	max-width: 240px;
	max-height: 66px;
	width: auto;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* Org logo block (legacy slot) */
.ne-sidebar-orglogo {
	padding: 0 28px 18px;
}

.ne-sidebar-orglogo img {
	max-width: 100%;
	height: auto;
	max-height: 44px;
}

/* Sidebar Welcome */
.mb-sidebar-welcome {
	display: none; /* hidden in new design; identity shown in footer */
}

/* Sidebar Menu */
.mb-sidebar-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.mb-sidebar {
	flex: 1;
}

.mb-sidebar-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mb-sidebar-menu li {
	margin: 0;
}

.mb-sidebar-link {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 14px;
	padding: 13px 28px;
	text-decoration: none !important;
	color: rgba(255, 255, 255, 0.55);
	font-family: 'Work Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1px;
	border-left: 3px solid transparent;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
	text-align: left !important;
}

.mb-sidebar-link:hover {
	color: rgba(255, 255, 255, 0.92);
	background-color: rgba(255, 255, 255, 0.04);
	text-decoration: none !important;
}

.mb-sidebar-link.active {
	color: #fff;
	background-color: var(--ne-accent-soft);
	border-left-color: var(--ne-accent);
}

.mb-sidebar-link i {
	font-size: 16px;
	width: 18px;
	text-align: center;
	margin: 0 !important;
	margin-bottom: 0 !important;
	opacity: 0.75;
	flex-shrink: 0;
	color: inherit;
}

.mb-sidebar-link.active i {
	opacity: 1;
	color: var(--ne-accent);
}

.mb-sidebar-link span {
	font-size: 14px;
	line-height: 1.2;
	flex: 1;
}

.mb-sidebar-link .ne-ext-icon {
	font-size: 11px;
	opacity: 0.5;
	margin-left: auto;
	width: auto;
}

/* Sidebar Footer (avatar + name + plan + logout) */
.ne-sidebar-footer {
	padding: 18px 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(0, 0, 0, 0.12);
}

.ne-sidebar-footer .ne-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ne-accent);
	color: var(--ne-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	overflow: hidden;
	flex-shrink: 0;
}

.ne-sidebar-footer .ne-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.ne-sidebar-footer .ne-user-meta {
	flex: 1;
	min-width: 0;
}

.ne-sidebar-footer .ne-user-name {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ne-sidebar-footer .ne-user-plan {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
	margin-top: 2px;
	line-height: 1.2;
}

.ne-sidebar-footer .ne-logout {
	color: rgba(255, 255, 255, 0.45);
	font-size: 14px;
	padding: 6px;
	border-radius: 6px;
	transition: all 0.2s;
}

.ne-sidebar-footer .ne-logout:hover {
	color: var(--ne-accent);
	background: rgba(255, 255, 255, 0.05);
}

/* Switch Container (org selector) */
#switch-container {
	padding: 16px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Main Content ─────────────────────────────────────────── */
.app-main {
	margin-left: var(--ne-sidebar-width);
	flex: 1;
	background-color: var(--ne-bg);
	min-height: 100vh;
	padding: 0;
	width: calc(100% - var(--ne-sidebar-width));
}

/* Content Wrapper */
.content-wrapper {
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
	font-family: 'Young Serif', serif;
	color: #f7f2e5;
	margin-bottom: 16px;
	font-weight: 400;
	letter-spacing: -0.3px;
}

.content-wrapper h1 {
	font-size: 32px;
	margin-bottom: 24px;
}

.content-wrapper h2 {
	font-size: 26px;
}

.content-wrapper h3 {
	font-size: 22px;
}

.content-wrapper p {
	font-family: 'Work Sans', sans-serif;
	color: var(--ne-on-dark-muted);
	line-height: 1.65;
	margin-bottom: 16px;
	font-size: 15px;
}

.content-wrapper a {
	color: var(--ne-accent);
	text-decoration: none;
	border-bottom: 1px solid var(--ne-accent);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.content-wrapper a:hover {
	color: #f7f2e5;
	border-bottom-color: #f7f2e5;
}

.content-wrapper ul,
.content-wrapper ol {
	margin-bottom: 16px;
	padding-left: 24px;
	color: var(--ne-on-dark-muted);
}

.content-wrapper li {
	margin-bottom: 8px;
	line-height: 1.65;
}

.content-wrapper code {
	background-color: rgba(255, 255, 255, 0.08);
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'Menlo', 'Courier New', monospace;
	font-size: 13px;
	color: #f7f2e5;
}

.content-wrapper pre {
	background-color: var(--ne-card);
	border: 1px solid var(--ne-card-border);
	padding: 16px;
	border-radius: 10px;
	overflow-x: auto;
	margin-bottom: 16px;
}

.content-wrapper pre code {
	background: none;
	padding: 0;
}

.content-wrapper blockquote {
	border-left: 4px solid var(--ne-accent);
	padding-left: 16px;
	margin: 16px 0;
	color: var(--ne-on-dark-muted);
	font-style: italic;
}

.content-wrapper img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 16px 0;
}

/* Tables */
.content-wrapper table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
	background-color: var(--ne-card);
	border: 1px solid var(--ne-card-border);
	border-radius: 10px;
	overflow: hidden;
}

.content-wrapper th,
.content-wrapper td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--ne-divider);
}

.content-wrapper th {
	background-color: rgba(9, 17, 31, 0.03);
	font-weight: 600;
	color: var(--ne-primary);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.7px;
}

.content-wrapper td {
	color: var(--ne-muted);
}

/* ── Responsive Design ────────────────────────────────────── */
@media (max-width: 1024px) {
	.app-sidebar {
		width: 220px;
	}

	.app-main {
		margin-left: 220px;
		width: calc(100% - 220px);
	}

	.content-wrapper {
		padding: 0;
	}

	:root {
		--ne-sidebar-width: 220px;
	}
}

@media (max-width: 768px) {
	.app-sidebar {
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		width: 260px;
	}

	.app-sidebar.active {
		transform: translateX(0);
	}

	.app-main {
		margin-left: 0;
		width: 100%;
		padding: 0 0 80px;
	}

	.content-wrapper {
		padding: 0;
	}

	.content-wrapper h1 {
		font-size: 26px;
	}

	.content-wrapper h2 {
		font-size: 22px;
	}

	.content-wrapper h3 {
		font-size: 18px;
	}
}

/* Mobile Top Logo */
.mobile-top-logo {
	display: none;
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
	display: none;
}

@media (max-width: 768px) {
	.mobile-top-logo {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 14px 0;
		background-color: var(--ne-primary);
	}

	.mobile-top-logo img {
		height: 28px;
		width: auto;
	}

	.mobile-bottom-bar {
		display: flex;
		justify-content: space-around;
		align-items: center;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background-color: var(--ne-primary);
		padding: 10px 0;
		z-index: 1000;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.mobile-bottom-bar a {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-decoration: none;
		color: rgba(255, 255, 255, 0.6);
		font-size: 11px;
		gap: 4px;
		transition: color 0.2s ease;
	}

	.mobile-bottom-bar a:hover,
	.mobile-bottom-bar a:active {
		color: var(--ne-accent);
	}

	.mobile-bottom-bar a i {
		font-size: 18px;
	}
}

/* ── Page Template Variants ──────────────────────────────── */

/* Wide Padding — extra breathing room around the main content */
body.eve-tpl-wide .content-wrapper {
	padding: 48px 64px;
}

@media (max-width: 1024px) {
	body.eve-tpl-wide .content-wrapper {
		padding: 36px 36px;
	}
}

@media (max-width: 768px) {
	body.eve-tpl-wide .content-wrapper {
		padding: 24px 18px;
	}
}

/* Narrow — constrain content width for readability */
body.eve-tpl-narrow .content-wrapper {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 24px;
}

@media (max-width: 768px) {
	body.eve-tpl-narrow .content-wrapper {
		padding: 24px 18px;
	}
}

/* Full Width — edge-to-edge */
body.eve-tpl-fullwidth .content-wrapper {
	max-width: 100%;
	padding: 0;
	margin: 0;
}

body.eve-tpl-fullwidth .app-main {
	padding: 0;
}

/* Dark Mode — dark background, light text */
body.eve-tpl-dark {
	background-color: var(--ne-primary);
	color: rgba(255, 255, 255, 0.86);
}

body.eve-tpl-dark .app-main {
	background-color: var(--ne-primary);
}

body.eve-tpl-dark .content-wrapper {
	color: rgba(255, 255, 255, 0.86);
}

body.eve-tpl-dark .content-wrapper h1,
body.eve-tpl-dark .content-wrapper h2,
body.eve-tpl-dark .content-wrapper h3,
body.eve-tpl-dark .content-wrapper h4,
body.eve-tpl-dark .content-wrapper h5,
body.eve-tpl-dark .content-wrapper h6 {
	color: #fff;
}

body.eve-tpl-dark .content-wrapper p,
body.eve-tpl-dark .content-wrapper li,
body.eve-tpl-dark .content-wrapper td {
	color: rgba(255, 255, 255, 0.78);
}

body.eve-tpl-dark .content-wrapper a {
	color: var(--ne-accent);
	border-bottom-color: rgba(255, 178, 30, 0.4);
}

body.eve-tpl-dark .content-wrapper a:hover {
	color: #fff;
	border-bottom-color: #fff;
}

body.eve-tpl-dark .content-wrapper code {
	background-color: rgba(255, 255, 255, 0.08);
	color: #fff;
}

body.eve-tpl-dark .content-wrapper pre {
	background-color: var(--ne-secondary);
	border-color: rgba(255, 255, 255, 0.08);
}

body.eve-tpl-dark .content-wrapper blockquote {
	color: rgba(255, 255, 255, 0.72);
}

body.eve-tpl-dark .content-wrapper table {
	background-color: var(--ne-secondary);
	border-color: rgba(255, 255, 255, 0.08);
}

body.eve-tpl-dark .content-wrapper th {
	background-color: rgba(255, 255, 255, 0.04);
	color: #fff;
}

body.eve-tpl-dark .content-wrapper th,
body.eve-tpl-dark .content-wrapper td {
	border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ── Centered Logo Template ──────────────────────────────── */

body.eve-centered-body {
	margin: 0;
	background-color: var(--ne-bg);
}

.eve-centered-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
}

.eve-centered-header {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 48px 24px 24px;
}

.eve-centered-logo {
	display: inline-flex;
	border-bottom: none;
}

.eve-centered-logo img {
	max-width: 220px;
	height: auto;
	display: block;
}

.eve-centered-main {
	flex: 1;
	display: flex;
	justify-content: center;
	padding: 16px 24px 64px;
}

.eve-centered-content {
	width: 100%;
	max-width: 720px;
}

.eve-centered-content h1,
.eve-centered-content h2,
.eve-centered-content h3,
.eve-centered-content h4,
.eve-centered-content h5,
.eve-centered-content h6 {
	font-family: 'Young Serif', serif;
	color: var(--ne-on-dark);
	margin-bottom: 16px;
	font-weight: 400;
	letter-spacing: -0.3px;
	line-height: 1.2;
}

.eve-centered-content h1 {
	font-size: 32px;
	margin-bottom: 24px;
}

.eve-centered-content p {
	font-family: 'Work Sans', sans-serif;
	color: var(--ne-on-dark-muted);
	line-height: 1.65;
	margin-bottom: 16px;
	font-size: 15px;
}

.eve-centered-content a {
	color: var(--ne-accent);
	text-decoration: none;
	border-bottom: 1px solid var(--ne-accent);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.eve-centered-content a:hover {
	color: var(--ne-on-dark);
	border-bottom-color: var(--ne-on-dark);
}

/* Centered + Dark combo */
body.eve-centered-body.eve-tpl-dark {
	background-color: var(--ne-primary);
	color: rgba(255, 255, 255, 0.86);
}

body.eve-centered-body.eve-tpl-dark .eve-centered-content h1,
body.eve-centered-body.eve-tpl-dark .eve-centered-content h2,
body.eve-centered-body.eve-tpl-dark .eve-centered-content h3,
body.eve-centered-body.eve-tpl-dark .eve-centered-content h4,
body.eve-centered-body.eve-tpl-dark .eve-centered-content h5,
body.eve-centered-body.eve-tpl-dark .eve-centered-content h6 {
	color: #fff;
}

body.eve-centered-body.eve-tpl-dark .eve-centered-content p,
body.eve-centered-body.eve-tpl-dark .eve-centered-content li {
	color: rgba(255, 255, 255, 0.78);
}

body.eve-centered-body.eve-tpl-dark .eve-centered-content a {
	color: var(--ne-accent);
	border-bottom-color: rgba(255, 178, 30, 0.4);
}

body.eve-centered-body.eve-tpl-dark .eve-centered-content a:hover {
	color: #fff;
	border-bottom-color: #fff;
}

@media (max-width: 768px) {
	.eve-centered-header {
		padding: 32px 18px 18px;
	}

	.eve-centered-main {
		padding: 12px 18px 48px;
	}

	.eve-centered-logo img {
		max-width: 180px;
	}
}

/* ── Utility Classes ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
