@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@400..800&family=Manrope:wght@200..800&display=swap');

:root {
  /* Color Palette - Modern, Professional, and Versatile */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  
  --secondary: #64748b;
  --secondary-hover: #475569;
  
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #f1f5f9;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border: #e2e8f0;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;


  --font1: 'Manrope', sans-serif;
  --font2: 'Geologica', sans-serif;


    --med-900: #0d4f3c;
    --med-800: #14715a;
    --med-700: #1a9174;
    --med-600: #21b190;
    --med-500: #2ec4a4;
    --med-400: #54d1b5;
    --med-300: #85dfc9;
	--med-250: #b5ecdd;
    --med-200: #b5ecdd;
	--med-150: #c6f0e5;
    --med-100: #ddf7f0;
    --med-50:  #f0fbf7;

    --n-900: #1a1d21;
    --n-800: #2d3239;
    --n-700: #3f4650;
    --n-600: #5a6370;
    --n-500: #7a8494;
    --n-400: #9aa3b0;
    --n-300: #c0c6cf;
    --n-200: #e0e3e8;
    --n-100: #f0f2f5;
    --n-50: #f8f9fb;

}

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

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
	width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font1);
	line-height: 1.6;
    background: linear-gradient(145deg, var(--med-50) 0%, #f0faf5 30%, var(--n-100) 60%, var(--med-100) 100%);
    background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font2);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-4);
}

/* Typography Helpers */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Layouts */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--spacing-8) var(--spacing-4);
}

.flex { display: flex; gap: var(--spacing-4); }
.flex-column { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

.grid {
  display: grid;
  gap: var(--spacing-6);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Navigation */
.navbar {
  background: var(--bg-card);
  padding: var(--spacing-4);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--spacing-6);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-6);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--spacing-4);
  padding-bottom: var(--spacing-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
  gap: var(--spacing-2);
}

.btn-primary {
	padding: 12px 16px;
  background-color: var(--primary);
  background-color: var(--text-main);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-inverse);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

input, select, textarea {
  padding: 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

input[type="checkbox"], input[type="radio"] {
  width: 28px !important;
  height: 28px;
  margin: 0;
  margin-right: var(--spacing-2);
}
label[for] {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Lists */
.list-unstyled { list-style: none; }

.item-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.list-item {
  background: var(--bg-card);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Badges */
.badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

.demo-card {
  background: white;
  padding: var(--spacing-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 400px;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.mt-4 { margin-top: var(--spacing-4); }
.mb-4 { margin-bottom: var(--spacing-4); }
.flex-gap { display: flex; gap: var(--spacing-2); }

/* Footer */
footer {
  margin-top: var(--spacing-12);
  text-align: center;
  padding: var(--spacing-8);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}






nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	position: relative;
	position: absolute;
	bottom: 56px;
	left: 0;
	width: 100%;
	padding: 24px 0 0;
	z-index:30;
}
nav a {
	text-decoration: none;
	color: var(--text-muted);
	font-weight: 500;
	transition: color 0.2s;
	font-size: 14px;
}
nav a:hover {
	color: var(--primary);
}



.token.html-tag-marker { display: none; }






/* MARK: APP UI
*/
/* ───────────────────────────────────────────────── */


#app-flex {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


#app {
	display: flex;
	flex-flow: column;
	align-items: center;
	justify-content: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#code {
	flex: 0 0 auto;
	width: 0%;
	background: #2d2d2d; /* Dark background matches prism-tomorrow */
	transition: transform 0.3s ease-in-out;
	position: relative;
	z-index: 40;
	transition: 0.5s  all;
}

#code.visible {
	width: 50%;
}


#code.visible .code-handler {
	left: -35px;
	padding: 10px 5px;
	background: var(--n-700);
	color: darkorange;
}
.code-handler:hover {
	background: var(--n-600);
}
.code-handler {
	display: flex;
	justify-content: center;
	position: absolute;
	left: -55px;
	bottom: 35px;
	height: calc(50% - 35px);
	color: white;
	background: var(--primary);
	background: var(--n-500);
	color: darkorange;
	color: var(--n-200);
	padding: 10px 15px;
	cursor: pointer;
	font-weight: 800;
	writing-mode: vertical-lr;
	text-orientation: upright;
	letter-spacing: 2px;
	box-shadow: -2px 0 5px rgba(0,0,0,0.1);
	transition: 0.3s all;
}

.example-code {
	padding: 20px;
	height: 100%;
	overflow-y: auto;
	padding: 48px 24px 64px;
	font-size: 15px;
}

.example-code h3 {
	display: inline-block;
	font-family: var(--font2);
	font-size: 18px;
	font-weight: 700;
	color: var(--n-400);
	border-bottom: 1px solid var(--n-600);
	margin: 16px 0 8px;
	padding: 0 48px 8px 0;

}
.example-code pre {
	margin: 0 !important;
	border-radius: 0 !important;
}

/* --- Beautiful Scrollbars for Code Blocks --- */
.example-code::-webkit-scrollbar,
.example-code pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.example-code::-webkit-scrollbar-track,
.example-code pre::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.example-code::-webkit-scrollbar-thumb,
.example-code pre::-webkit-scrollbar-thumb {
  background: #acabab;
  border-radius: 8px;
  border: 2px solid #2d2d2d; /* Matches Prism background */
}

.example-code::-webkit-scrollbar-thumb:hover,
.example-code pre::-webkit-scrollbar-thumb:hover {
  background: #acabab;
}

/* Firefox Support */
.example-code,
.example-code pre {
  scrollbar-width: thin;
  scrollbar-color: hsl(0, 1%, 30%) rgba(0, 0, 0, 0.2);
}

.color-panel {
    text-align: center;
    margin-bottom: 32px;
    padding: 64px 64px 48px;
    background: linear-gradient(-135deg, var(--med-600) 0%, var(--med-400) 50%, var(--med-200) 100%);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.color-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.color-panel::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,0,0,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.color-panel h1 {
    font-family: var(--font2);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}
.color-panel h1::before,
.color-panel h1::after {
    content: '';
    flex: 1;
    height: 1px;
	margin: 0 8px 0 0;
    background: currentColor;
    opacity: 0.3;
}
.color-panel h1::after { margin: 0 0 0 8px; }
.header-badge {
    font-size: 72px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    position: relative;
    z-index: 1;
}
.header-subtitle {
    font-size: 14px !important;
    color: rgba(255,255,255,0.7) !important;
    font-weight: 300;
    margin: 0 0 24px 0;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}
.url-input-container {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 8px;
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}



.example-description {
	max-width: 600px;
    margin-bottom: 96px;
	font-size: 14px;
	font-family: var(--font2);
	text-align: center;
}
.example-description .small-text {
	max-width: 500px;
	margin-top: 4px;
	font-size: 12px;
	font-family: var(--font1);
	color: var(--text-muted);
}





.library-info {
	display: flex;
	justify-content: space-between;
	position: absolute;
	bottom: 0px;
	left: 0;
	width: 100%;
	padding: 8px 24px 0px;
	text-align: center;
	color: var(--text-muted);
	background: white;
	z-index: 50;
}
.library-info h3 { font-size: 16px; margin: 0 0 8px; }
.library-info p { font-size: 13px; }













/* MARK: Examples
*/
/* ───────────────────────────────────────────────── */

[data-xactus] + [data-xactus] { margin-top: 48px; }



[x-id="products"] .badge { margin-left: 32px; }
[x-id="products"] .demo-card { padding: 8px 16px; }
[x-id="products"] {
	display: flex;
	flex-flow: column;
	gap: 8px;
	list-style: none;
	text-align: left;
}

[x-id="categories"] {
	text-align: left;
}
[x-id="categories"] h3 { margin-bottom: 8px; }
[x-id="categories"] ul { padding-left: 32px; }

.example-03 .demo-card {
	margin-top: 32px;
	text-align: left;
	background: var(--n-200);
}
.example-03 p { font-size: 14px; }
.example-03 b { font-size: 16px; font-family: var(--font2); }
.example-03 label[for] { margin-bottom: 12px; }
.example-03 > input,
.example-03 select {
	width: 100%;
	margin-bottom: 12px;
}



[data-xactus="actions-example"] { text-align: left; }
[data-xactus="actions-example"] li .btn {
	padding: 4px 8px;
    height: 29px;
    margin-left: 2px;
}
[data-xactus="actions-example"] form { gap: 8px; }
[data-xactus="actions-example"] ul {
	margin-bottom: 24px;
}
[data-xactus="actions-example"] ul .list-item {
	margin-bottom: 8px;
}
[data-xactus="actions-example"] .list-item span {
	min-width: 140px;
}
[data-xactus="actions-example"] .edit-form input {
	background: lightyellow;
}






/* ── App Shell ─────────────────────────────────────── */
.app-shell {
	width: 100%;
	max-width: 460px;
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12);
	position: relative;
	z-index: 2;
}

/* ── Header Component (Xactus #1) ─────────────────── */
.header-panel { background: #0f172a; }

.app-header {
	display: flex;
	align-items: center;
	padding: 11px 16px;
	gap: 0;
}
.header-logo {
	font-size: 14px;
	font-weight: 800;
	color: rgba(255,255,255,0.92);
	letter-spacing: -0.3px;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-right: 20px;
}
.header-logo-hex {
	width: 22px;
	height: 22px;
	background: linear-gradient(135deg, #2ec4a4, #3b82f6);
	clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
}
.header-nav {
	display: flex;
	gap: 16px;
	flex: 1;
}
.header-nav-item {
	font-size: 12px;
	color: rgba(255,255,255,0.35);
	font-weight: 500;
	cursor: default;
}
.header-nav-item.active {
	color: rgba(255,255,255,0.75);
}
.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.header-bell {
	position: relative;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s;
	font-size: 15px;
}
.header-bell:hover { background: rgba(255,255,255,0.08); }
.header-badge {
	position: absolute;
	top: -1px;
	right: -1px;
	background: #ef4444;
	color: white;
	font-size: 9px;
	font-weight: 800;
	padding: 1px 4px;
	border-radius: 99px;
	min-width: 15px;
	text-align: center;
	line-height: 1.4;
	border: 1.5px solid #0f172a;
	animation: badge-pop 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes badge-pop {
	from { transform: scale(0); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}
.header-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2ec4a4, #3b82f6);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 800;
	color: white;
	cursor: pointer;
}

/* ── Notification Center (Xactus #2) ──────────────── */
.notif-mount { background: #f8fafc; border-top: 1px solid rgba(255,255,255,0.04); }

.notif-panel { display: flex; flex-direction: column; }

.notif-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px 10px;
	background: white;
	border-bottom: 1px solid #e8edf4;
}
.notif-title {
	display: flex;
	align-items: center;
	gap: 7px;
}
.notif-title h3 {
	font-size: 13px;
	font-weight: 700;
	margin: 0;
	color: #1e293b;
	letter-spacing: -0.2px;
}
.unread-badge {
	background: #ef4444;
	color: white;
	font-size: 10px;
	font-weight: 800;
	padding: 1px 6px;
	border-radius: 99px;
	min-width: 18px;
	text-align: center;
	animation: badge-pop 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.notif-count-summary {
	font-size: 11px;
	color: #94a3b8;
}

.notif-list {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 216px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #e2e8f0 transparent;
}
.notif-list::-webkit-scrollbar { width: 3px; }
.notif-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.notif-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	border-bottom: 1px solid #f1f5f8;
	border-left: 3px solid transparent;
	background: white;
	transition: background 0.15s;
	animation: slide-in-notif 0.22s cubic-bezier(0.22,1,0.36,1) both;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f8fafc; }

@keyframes slide-in-notif {
	from { opacity: 0; transform: translateX(14px); }
	to   { opacity: 1; transform: translateX(0); }
}

.notif-item[data-type="success"] { border-left-color: #22c55e; }
.notif-item[data-type="info"]    { border-left-color: #3b82f6; }
.notif-item[data-type="warning"] { border-left-color: #f59e0b; }
.notif-item[data-type="error"]   { border-left-color: #ef4444; }

.notif-icon-wrap {
	font-size: 16px;
	width: 22px;
	flex-shrink: 0;
	text-align: center;
}
.notif-body {
	flex: 1;
	min-width: 0;
	text-align: left;
}
.notif-msg {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.notif-from {
	display: block;
	font-size: 10px;
	color: #94a3b8;
	margin-top: 1px;
}
.notif-close {
	background: none;
	border: none;
	color: #cbd5e1;
	cursor: pointer;
	font-size: 11px;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s;
	flex-shrink: 0;
}
.notif-close:hover { background: #fee2e2; color: #ef4444; }

.notif-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 26px 16px;
	background: white;
}
.notif-empty span { font-size: 26px; }
.notif-empty p { font-size: 12px; color: #94a3b8; margin: 0; }

/* ── Emitter Panel (static HTML) ──────────────────── */
.emitter-bar {
	padding: 12px 14px 14px;
	background: #0f172a;
	border-top: 1px solid rgba(255,255,255,0.05);
}
.emitter-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}
.emitter-title {
	font-size: 10px;
	font-weight: 700;
	color: rgba(255,255,255,0.3);
	text-transform: uppercase;
	letter-spacing: 1px;
	flex: 1;
}
.bus-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #22c55e;
	animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
	0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
	50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
.bus-label {
	font-size: 10px;
	color: #22c55e;
	font-weight: 700;
}
.emitter-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}
.emit-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 8px 10px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.1s, filter 0.15s;
	gap: 1px;
}
.emit-btn:hover  { filter: brightness(1.15); }
.emit-btn:active { transform: scale(0.93); }
.emit-source {
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.55;
}
.emit-label {
	font-size: 11px;
	font-weight: 700;
}
.emit-success  { background: #14532d; color: #bbf7d0; }
.emit-info     { background: #1e3a8a; color: #bfdbfe; }
.emit-warning  { background: #78350f; color: #fde68a; }
.emit-error    { background: #7f1d1d; color: #fecaca; }
.emit-security { background: #4a1d96; color: #ddd6fe; }
.emit-clear    { background: #1e293b; color: #64748b; border: 1px solid #334155; }




.example-06-panel {
	padding: 0px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
















