/* ================================================
   VARIABLES (Geek Dark Purple Theme)
   ================================================ */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Audiowide&display=swap");

:root {
  /* Primary purple palette */
  --purple-primary: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-light: #a78bfa;
  --purple-accent: #c4b5fd;

  /* Secondary colors */
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --lime: #84cc16;
  --lime-dark: #65a30d;
  --pink: #ec4899;
  --pink-dark: #be185d;

  /* Neutral palette */
  --bg-primary: #0f0f1e;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --surface-primary: #1e1e3f;
  --surface-secondary: #2d2d4a;

  /* Text colors */
  --text-primary: #e0e0ff;
  --text-secondary: #b0b0d0;
  --text-tertiary: #808099;

  /* Borders and dividers */
  --border-primary: rgba(124, 58, 237, 0.3);
  --border-secondary: rgba(124, 58, 237, 0.15);
  --divider: rgba(124, 58, 237, 0.1);

  /* Icon colors */
  --icon-primary: #a78bfa;
  --icon-secondary: #c4b5fd;
  --icon-tertiary: #7c3aed;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.15);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* Animations */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   BASE STYLES (Geek Dark Purple)
   ================================================ */

* {
  box-sizing: border-box;
}

*,
*:hover,
*:active,
*:focus {
  outline: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding-top: 4em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

audio,
video {
  width: 100%;
}

.mobile-only {
  display: none !important;
}

.container {
  width: 95%;
  max-width: 960px;
  margin: 1em auto 0;
}

i.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#app {
  transition: padding var(--transition-base);
}

#app.multiple {
  padding-bottom: 4em;
}

/* ================================================
   NAVIGATION (Geek Dark Purple)
   ================================================ */

nav {
  display: flex;
  flex-direction: column;
  width: 16em;
  height: calc(100dvh - 4em);
  position: fixed;
  top: 4em;
  left: 0;
  background: var(--surface-primary);
  border-right: 1px solid var(--border-primary);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 100;
}

html[dir="rtl"] nav {
  left: initial;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border-primary);
}

nav .action {
  width: 100%;
  display: block;
  padding: 0.75em 1em;
  font-size: 0.95em;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

html[dir="rtl"] nav .action {
  border-left: none;
  border-right: 3px solid transparent;
}

nav .action:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-primary);
  border-left-color: var(--purple-primary);
}

html[dir="rtl"] nav .action:hover {
  border-left-color: transparent;
  border-right-color: var(--purple-primary);
}

nav .action:active {
  transform: translateX(2px);
}

nav > div {
  border-top: 1px solid var(--border-secondary);
}

nav > div.credits {
  margin-top: auto !important;
  margin: 1.25em !important;
  width: calc(100% - 2.5em) !important;
}

nav > p.credits {
  margin: 0 1.25em 1.25em !important;
  font-size: 0.75em;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ================================================
   MAIN CONTENT (Geek Dark Purple)
   ================================================ */

main {
  min-height: 1em;
  margin: 0 1em 1em auto;
  width: calc(100% - 19em);
}

.breadcrumbs {
  height: 3em;
  background: transparent;
  border-bottom: 1px solid var(--border-secondary);
  position: sticky;
  z-index: 1000;
  top: 4em;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  padding: 0 1em;
}

.breadcrumbs a {
  color: var(--purple-light);
  transition: color var(--transition-fast);
  border-radius: 0.4em;
  padding: 0.25em 0.4em;
  margin: 0 0.2em;
}

.breadcrumbs a:hover {
  color: var(--purple-accent);
  background: rgba(124, 58, 237, 0.1);
}

html[dir="rtl"] .breadcrumbs a {
  transform: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999999999;
  background: transparent;
}

.progress div {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-primary), var(--cyan));
  width: 0;
  transition: width var(--transition-base);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.break-word {
  word-break: break-all;
}

/* ================================================
   BUTTONS (Geek Dark Purple)
   ================================================ */

.button {
  padding: 0.6em 1.2em;
  border-radius: 0.6em;
  border: 1px solid var(--border-primary);
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left var(--transition-fast);
}

.button:hover {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-primary));
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
}

.button:hover::before {
  left: 100%;
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.button--block {
  display: block;
  width: 100%;
  margin-bottom: 0.5em;
}

.button--red {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.button--red:hover {
  background: linear-gradient(135deg, #f472b6, var(--pink));
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

.button--blue {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.button--blue:hover {
  background: linear-gradient(135deg, #22d3ee, var(--cyan));
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.button--flat {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid var(--border-primary);
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85em;
}

.button--flat:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--purple-primary);
  color: var(--purple-accent);
}

.button--flat.button--red {
  color: var(--pink);
  border-color: rgba(236, 72, 153, 0.3);
}

.button--flat.button--red:hover {
  background: rgba(236, 72, 153, 0.1);
  border-color: var(--pink);
  color: #f472b6;
}

.button--flat.button--grey {
  color: var(--text-secondary);
  border-color: var(--border-secondary);
}

.button--flat.button--grey:hover {
  background: rgba(124, 58, 237, 0.05);
  color: var(--text-primary);
}

.button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ================================================
   INPUT FIELDS (Geek Dark Purple)
   ================================================ */

.input {
  background: var(--surface-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.6em;
  padding: 0.65em 1em;
  font-family: inherit;
  font-size: 0.95em;
  transition: all var(--transition-fast);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.input:hover {
  border-color: var(--purple-primary);
  background: rgba(124, 58, 237, 0.05);
}

.input:focus {
  border-color: var(--purple-light);
  background: var(--surface-secondary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.input--block {
  display: block;
  width: 100%;
  margin-bottom: 0.5em;
}

.input--textarea {
  line-height: 1.4;
  font-family: "JetBrains Mono", monospace;
  min-height: 10em;
  resize: vertical;
}

.input--red {
  background: rgba(236, 72, 153, 0.1) !important;
  border-color: rgba(236, 72, 153, 0.4) !important;
}

.input--green {
  background: rgba(132, 204, 22, 0.1) !important;
  border-color: rgba(132, 204, 22, 0.4) !important;
}

/* ================================================
   CARDS (Geek Dark Purple)
   ================================================ */

.card {
  position: relative;
  margin: 0 0 1.5rem 0;
  background: var(--surface-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.8em;
  box-shadow: var(--shadow-md);
  overflow: auto;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--purple-light);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
}

.card.floating {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 25em;
  width: 90%;
  max-height: 95%;
  z-index: 10000;
}

.card > * > *:first-child {
  margin-top: 0;
}

.card > * > *:last-child {
  margin-bottom: 0;
}

.card .card-title {
  padding: 1.5em 1.2em 1em;
  display: flex;
  border-bottom: 1px solid var(--border-secondary);
  align-items: center;
  gap: 0.75em;
}

.card .card-title > *:first-child {
  margin-right: auto;
}

.card .card-title h2,
.card .card-title h3 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-primary);
}

.card > div {
  padding: 1.2em;
}

.card > div:first-child {
  padding-top: 1.5em;
}

.card > div:last-child {
  padding-bottom: 1.5em;
}

.card h2 {
  font-weight: 650;
  color: var(--purple-light);
}

.card h3 {
  color: var(--text-secondary);
  font-size: 1em;
  font-weight: 600;
  margin: 1.5em 0 0.75em;
}

.card code {
  word-wrap: break-word;
  background: rgba(124, 58, 237, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  color: var(--purple-accent);
}

.card .card-action {
  text-align: right;
}

body.rtl .card .card-action {
  text-align: left;
}

.card .card-content.full {
  padding-bottom: 0;
  overflow: auto;
}

/* ================================================
   TABLES (Geek Dark Purple)
   ================================================ */

table {
  border-collapse: collapse;
  width: 100%;
}

table tr {
  border-bottom: 1px solid var(--border-secondary);
  transition: background var(--transition-fast);
}

table tr:hover {
  background: rgba(124, 58, 237, 0.05);
}

table tr:last-child {
  border: 0;
}

table th {
  font-weight: 600;
  color: var(--purple-light);
  text-align: left;
  padding: 0.8em 0;
  background: rgba(124, 58, 237, 0.08);
}

table th,
table td {
  padding: 0.75em 0;
}

table td.small {
  width: 1em;
}

table tr > *:first-child {
  padding-left: 1em;
}

table tr > *:last-child {
  padding-right: 1em;
}

html[dir="rtl"] table tr > * {
  padding-left: unset;
  padding-right: 1em;
  text-align: right;
}

/* ================================================
   DASHBOARD (Geek Dark Purple)
   ================================================ */

.dashboard {
  margin: 1.5em 0;
}

.dashboard .row {
  display: flex;
  margin: 0 -0.75em;
  flex-wrap: wrap;
}

.dashboard .row .column {
  display: flex;
  padding: 0 0.75em;
  width: 50%;
}

.dashboard .row .column .card {
  flex-grow: 1;
}

@media (max-width: 1200px) {
  .dashboard .row .column {
    width: 100%;
  }
}

.dashboard p label {
  margin-bottom: 0.3em;
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

li code,
p code {
  background: rgba(124, 58, 237, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  border: 1px solid var(--border-secondary);
  color: var(--purple-accent);
}

.small {
  font-size: 0.85em;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ================================================
   TABS (Geek Dark Purple)
   ================================================ */

.dashboard #nav {
  display: flex;
  padding-bottom: 1em;
  overflow: auto;
  border-bottom: 1px solid var(--border-secondary);
}

.dashboard #nav .wrapper {
  display: flex;
  flex-grow: 1;
  background: transparent;
}

.dashboard #nav ul {
  list-style: none;
  display: flex;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
  gap: 0.5em;
}

.dashboard #nav ul li {
  position: relative;
  padding: 0.9em 1.2em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.dashboard #nav ul li:hover {
  color: var(--text-primary);
  border-bottom-color: var(--purple-primary);
}

.dashboard #nav ul li.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple-primary);
}

.dashboard #nav i {
  font-size: 1em;
  vertical-align: middle;
  margin-right: 0.4em;
}

/* ================================================
   HEADER (Geek Dark Purple)
   ================================================ */

header {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  height: 4em;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.5em 1em;
  background: var(--surface-primary);
  border-bottom: 1px solid var(--border-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

header > * {
  flex: 0 0 auto;
}

header title {
  display: block;
  flex: 1 1 auto;
  padding: 0 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 0.05em;
}

header .overlay {
  width: 0;
  height: 0;
}

header a,
header a:hover {
  color: inherit;
}

header > div:first-child > .action,
header img {
  margin-right: 1.2em;
}

header img {
  height: 2.5em;
  border-radius: 0.5em;
  transition: transform var(--transition-fast);
}

header img:hover {
  transform: scale(1.05);
}

header .action span {
  display: none;
}

header > div div {
  vertical-align: middle;
  position: relative;
}

header .search-button,
header .menu-button {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2em;
  padding: 0.5em;
  transition: all var(--transition-fast);
}

header .search-button:hover,
header .menu-button:hover {
  color: var(--purple-light);
  transform: scale(1.1);
}

#more {
  display: none;
}

/* ================================================
   SEARCH (Geek Dark Purple)
   ================================================ */

#search {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 25em;
}

#search.active {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  z-index: 9999;
}

#search #input {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1em 0 3.5em;
  background: var(--surface-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 0.6em;
  transition: all var(--transition-fast);
  position: relative;
}

#search #input::before {
  content: "🔍";
  position: absolute;
  left: 1em;
  color: var(--text-tertiary);
}

#search #input input::placeholder {
  color: var(--text-tertiary);
}

#search.active #input {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border-primary);
  background: var(--surface-primary);
  height: 4em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

#search.active > div {
  border-radius: 0 !important;
}

#search.active i,
#search.active input {
  color: var(--text-primary);
}

#search #input > .action,
#search #input > i {
  margin-right: 0.6em;
  user-select: none;
  color: var(--text-secondary);
}

#search input {
  width: 100%;
  border: 0;
  background-color: transparent;
  padding: 0;
  color: var(--text-primary);
  font-family: inherit;
}

#search #result {
  visibility: visible;
  max-height: none;
  background: var(--surface-primary);
  color: var(--text-secondary);
  text-align: left;
  padding: 0;
  height: 0;
  transition: all var(--transition-base);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
  border-top: 1px solid var(--border-secondary);
}

#search #result > div > *:first-child {
  margin-top: 0;
}

#search.active #result {
  padding: 1em;
  height: calc(100dvh - 4em);
}

#search.active #result > div {
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}

#search ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#search li {
  margin-bottom: 0.75em;
}

#search #result #renew {
  width: 100%;
  text-align: center;
  display: none;
  margin: 0;
  max-width: none;
}

#search.ongoing #result #renew {
  display: block;
}

#search.active #result i {
  color: var(--text-tertiary);
}

#search.active #result ul li a {
  display: flex;
  align-items: center;
  padding: 0.6em 0.5em;
  border-radius: 0.5em;
  transition: all var(--transition-fast);
}

#search.active #result ul li a:hover {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
}

#search.active #result ul li a i {
  margin-right: 0.6em;
  color: var(--purple-primary);
}

#search .boxes {
  border: 1px solid var(--border-primary);
  background: var(--surface-secondary);
  margin: 1em 0 1.5em;
  border-radius: 0.8em;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#search .boxes h3 {
  margin: 0;
  font-weight: 600;
  font-size: 0.95em;
  color: var(--purple-light);
  padding: 1em 1.2em;
  border-bottom: 1px solid var(--border-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#search .boxes > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1em;
  padding: 1.2em;
  margin: 0;
}

#search .boxes > div > div {
  width: 100%;
  margin: 0;
  padding: 1.2em 1em;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.1));
  color: var(--purple-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 0.8em;
  border: 1px solid var(--border-primary);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
  transition: all var(--transition-fast);
  cursor: pointer;
}

#search .boxes > div > div:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.2));
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
  border-color: var(--purple-light);
}

#search .boxes > div > div:active {
  transform: translateY(-1px);
}

#search .boxes p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9em;
}

#search .boxes i {
  color: var(--purple-light) !important;
  font-size: 2.5em;
  line-height: 1;
}

@media (max-width: 1024px) {
  #search .boxes > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  #search .boxes > div {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   FILE LISTING (Geek Dark Purple)
   ================================================ */

#listing h2 {
  margin: 0 0 0.75em 0.5em;
  font-size: 0.9em;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#listing > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75em;
}

#listing .item {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 0.7em;
  padding: 0.9em 1em;
  transition: all var(--transition-fast);
}

#listing .item:hover {
  background: var(--surface-primary);
  border-color: var(--purple-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
  transform: translateY(-1px);
}

#listing .item:active {
  transform: translateY(0);
}

#listing .item div:last-of-type {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

#listing .item p {
  margin: 0;
}

#listing .item .size,
#listing .item .modified {
  font-size: 0.85em;
  color: var(--text-tertiary);
}

#listing .item .name {
  font-weight: 600;
  color: var(--text-primary);
}

#listing .item i {
  font-size: 1.8em;
  margin-right: 0.6em;
  vertical-align: middle;
  color: var(--purple-light);
}

#listing .item img {
  width: 2.5em;
  height: 2.5em;
  object-fit: cover;
  margin-right: 0.6em;
  vertical-align: middle;
  border-radius: 0.5em;
}

.message {
  text-align: center;
  font-size: 1.8em;
  margin: 2em auto;
  display: block !important;
  width: 95%;
  color: var(--text-secondary);
  font-weight: 600;
}

.message i {
  font-size: 3em;
  margin-bottom: 0.5em;
  display: block;
  color: var(--purple-primary);
}

/* Mosaic view */
#listing.mosaic {
  padding-top: 1.5em;
  margin: 0 -0.75em;
  gap: 1em;
}

#listing.mosaic .item {
  width: calc(33% - 1em);
  padding: 1em;
  border-radius: 0.8em;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

#listing.mosaic .item:hover {
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

#listing.mosaic .header {
  display: none;
}

#listing.mosaic .item div:first-of-type {
  width: 5em;
}

#listing.mosaic .item div:last-of-type {
  width: calc(100% - 5vw);
}

/* Gallery view */
#listing.mosaic.gallery .item div:first-of-type {
  width: 100%;
  height: 12em;
}

#listing.mosaic.gallery .item div:last-of-type {
  position: absolute;
  bottom: 0.5em;
  padding: 1em;
  width: calc(100% - 1em);
  text-align: center;
  border-radius: 0.7em;
}

#listing.mosaic.gallery .item[data-type="image"] div:last-of-type {
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
}

#listing.mosaic.gallery .item i {
  width: 100%;
  margin-right: 0;
  font-size: 6em;
  text-align: center;
}

#listing.mosaic.gallery .item img {
  width: 100%;
  height: 100%;
  border-radius: 0.7em;
}

#listing.gallery .size,
#listing.gallery .modified {
  display: none;
}

/* List view */
#listing.list {
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  gap: 0;
}

#listing.list .item {
  width: 100%;
  margin: 0;
  padding: 0.9em 1.2em;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border-secondary);
  box-shadow: none;
}

#listing.list .item:hover {
  background: rgba(124, 58, 237, 0.08);
  box-shadow: none;
}

#listing.list h2 {
  display: none;
}

#listing.list .item div:first-of-type {
  width: 2.5em;
}

#listing.list .item div:first-of-type i {
  font-size: 1.5em;
}

#listing.list .item div:first-of-type img {
  width: 1.8em;
  height: 1.8em;
}

#listing.list .item div:last-of-type {
  width: calc(100% - 2.5em);
  display: flex;
  align-items: center;
  gap: 1.5em;
}

#listing.list .item .name {
  width: 50%;
}

#listing.list .item .size {
  width: 25%;
}

#listing .item.header {
  display: none !important;
}

#listing.list .header i {
  font-size: 1.2em;
  vertical-align: middle;
  margin-left: 0.3em;
}

#listing.list .item.header {
  display: flex !important;
  background: rgba(124, 58, 237, 0.1);
  z-index: 999;
  padding: 0.9em 1.2em;
  border: 0;
  border-bottom: 1px solid var(--border-primary);
}

#listing.list .item.header > div {
  width: 100%;
}

#listing.list .item.header .name {
  margin-right: 3em;
}

#listing.list .header a {
  color: inherit;
}

#listing.list .name {
  font-weight: 600;
  word-wrap: break-word;
  word-break: break-all;
  white-space: pre-wrap;
}

#listing.list .header span {
  vertical-align: middle;
}

#listing.list .header i {
  opacity: 0;
  transition: opacity var(--transition-fast);
}

#listing.list .header p:hover i,
#listing.list .header .active i {
  opacity: 1;
}

#listing.list .item.header .active {
  font-weight: 700;
  color: var(--purple-light);
}

/* Selection */
#listing .item[aria-selected="true"] {
  background: rgba(124, 58, 237, 0.25) !important;
  color: var(--text-primary) !important;
  border-color: var(--purple-primary) !important;
}

#listing .item[aria-selected="true"] i {
  color: var(--purple-accent);
}

/* Multiple selection bar */
#listing #multiple-selection {
  position: fixed;
  bottom: -4em;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 4em;
  padding: 0.5em 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  border-top: 1px solid var(--border-primary);
  box-shadow: 0 -4px 16px rgba(124, 58, 237, 0.3);
  transition: bottom var(--transition-base);
}

#listing #multiple-selection.active {
  bottom: 0;
}

#listing #multiple-selection p,
#listing #multiple-selection i {
  color: #fff;
  font-weight: 600;
}

/* ================================================
   FILE ICONS (Geek Dark Purple)
   ================================================ */

.file-icons [aria-label^="."] {
  opacity: 0.4;
}

.file-icons [data-ext=".bak"] {
  opacity: 0.4;
}

.file-icons i {
  text-shadow: none;
  transition: color var(--transition-fast);
}

/* Icon glyph selection */

.file-icons [data-type="audio"] i::before {
  content: "volume_up";
}
.file-icons [data-type="blob"] i::before {
  content: "insert_drive_file";
}
.file-icons [data-type="image"] i::before {
  content: "image";
}
.file-icons [data-type="pdf"] i::before {
  content: "description";
}
.file-icons [data-type="text"] i::before {
  content: "description";
}
.file-icons [data-type="video"] i::before {
  content: "movie";
}
.file-icons [data-type="invalid_link"] i::before {
  content: "link_off";
}

/* Image */
.file-icons [data-ext=".ai"] i::before,
.file-icons [data-ext=".odg"] i::before,
.file-icons [data-ext=".xcf"] i::before {
  content: "image";
}

/* Presentation */
.file-icons [data-ext=".odp"] i::before,
.file-icons [data-ext=".ppt"] i::before,
.file-icons [data-ext=".pptx"] i::before {
  content: "slideshow";
}

/* Spreadsheet/Database */
.file-icons [data-ext=".csv"] i::before,
.file-icons [data-ext=".db"] i::before,
.file-icons [data-ext=".odb"] i::before,
.file-icons [data-ext=".ods"] i::before,
.file-icons [data-ext=".xls"] i::before,
.file-icons [data-ext=".xlsx"] i::before {
  content: "border_all";
}

/* Document */
.file-icons [data-ext=".doc"] i::before,
.file-icons [data-ext=".docx"] i::before,
.file-icons [data-ext=".log"] i::before,
.file-icons [data-ext=".odt"] i::before,
.file-icons [data-ext=".rtf"] i::before {
  content: "description";
}

/* Code */
.file-icons [data-ext=".c"] i::before,
.file-icons [data-ext=".cpp"] i::before,
.file-icons [data-ext=".cs"] i::before,
.file-icons [data-ext=".css"] i::before,
.file-icons [data-ext=".go"] i::before,
.file-icons [data-ext=".h"] i::before,
.file-icons [data-ext=".html"] i::before,
.file-icons [data-ext=".java"] i::before,
.file-icons [data-ext=".js"] i::before,
.file-icons [data-ext=".json"] i::before,
.file-icons [data-ext=".kt"] i::before,
.file-icons [data-ext=".php"] i::before,
.file-icons [data-ext=".py"] i::before,
.file-icons [data-ext=".rb"] i::before,
.file-icons [data-ext=".rs"] i::before,
.file-icons [data-ext=".vue"] i::before,
.file-icons [data-ext=".xml"] i::before,
.file-icons [data-ext=".yml"] i::before {
  content: "code";
}

/* Executable */
.file-icons [data-ext=".apk"] i::before,
.file-icons [data-ext=".bat"] i::before,
.file-icons [data-ext=".exe"] i::before,
.file-icons [data-ext=".jar"] i::before,
.file-icons [data-ext=".ps1"] i::before,
.file-icons [data-ext=".sh"] i::before {
  content: "web_asset";
}

/* Installer */
.file-icons [data-ext=".deb"] i::before,
.file-icons [data-ext=".msi"] i::before,
.file-icons [data-ext=".pkg"] i::before,
.file-icons [data-ext=".rpm"] i::before {
  content: "archive";
}

/* Compressed */
.file-icons [data-ext=".7z"] i::before,
.file-icons [data-ext=".bz2"] i::before,
.file-icons [data-ext=".cab"] i::before,
.file-icons [data-ext=".gz"] i::before,
.file-icons [data-ext=".rar"] i::before,
.file-icons [data-ext=".tar"] i::before,
.file-icons [data-ext=".xz"] i::before,
.file-icons [data-ext=".zip"] i::before,
.file-icons [data-ext=".zst"] i::before {
  content: "folder_zip";
}

/* Disk */
.file-icons [data-ext=".ccd"] i::before,
.file-icons [data-ext=".dmg"] i::before,
.file-icons [data-ext=".iso"] i::before,
.file-icons [data-ext=".mdf"] i::before,
.file-icons [data-ext=".vdi"] i::before,
.file-icons [data-ext=".vhd"] i::before,
.file-icons [data-ext=".vmdk"] i::before,
.file-icons [data-ext=".wim"] i::before {
  content: "album";
}

/* Font */
.file-icons [data-ext=".otf"] i::before,
.file-icons [data-ext=".ttf"] i::before,
.file-icons [data-ext=".woff"] i::before,
.file-icons [data-ext=".woff2"] i::before {
  content: "font_download";
}

/* Colors */

.file-icons [data-type="audio"] i {
  color: var(--lime);
}
.file-icons [data-type="image"] i {
  color: var(--cyan);
}
.file-icons [data-type="video"] i {
  color: var(--pink);
}
.file-icons [data-type="invalid_link"] i {
  color: #ff6b6b;
}

.file-icons [data-ext=".ai"] i,
.file-icons [data-ext=".java"] i,
.file-icons [data-ext=".jar"] i,
.file-icons [data-ext=".psd"] i,
.file-icons [data-ext=".rb"] i,
.file-icons [data-ext=".pdf"] i {
  color: var(--pink);
}

.file-icons [data-ext=".html"] i,
.file-icons [data-ext=".odg"] i,
.file-icons [data-ext=".odp"] i,
.file-icons [data-ext=".ppt"] i,
.file-icons [data-ext=".pptx"] i,
.file-icons [data-ext=".vue"] i,
.file-icons [data-ext=".xcf"] i {
  color: var(--cyan);
}

.file-icons [data-ext=".css"] i,
.file-icons [data-ext=".js"] i,
.file-icons [data-ext=".json"] i,
.file-icons [data-ext=".zip"] i {
  color: var(--lime);
}

.file-icons [data-ext=".apk"] i,
.file-icons [data-ext=".dex"] i,
.file-icons [data-ext=".go"] i,
.file-icons [data-ext=".ods"] i,
.file-icons [data-ext=".xls"] i,
.file-icons [data-ext=".xlsx"] i {
  color: var(--lime-dark);
}

.file-icons [data-ext=".aac"] i,
.file-icons [data-ext=".bat"] i,
.file-icons [data-ext=".cab"] i,
.file-icons [data-ext=".cs"] i,
.file-icons [data-ext=".dmg"] i,
.file-icons [data-ext=".doc"] i,
.file-icons [data-ext=".docx"] i,
.file-icons [data-ext=".emf"] i,
.file-icons [data-ext=".exe"] i,
.file-icons [data-ext=".ico"] i,
.file-icons [data-ext=".mp2"] i,
.file-icons [data-ext=".mp3"] i,
.file-icons [data-ext=".mp4"] i,
.file-icons [data-ext=".mpg"] i,
.file-icons [data-ext=".msi"] i,
.file-icons [data-ext=".odt"] i,
.file-icons [data-ext=".ps1"] i,
.file-icons [data-ext=".rtf"] i,
.file-icons [data-ext=".vob"] i,
.file-icons [data-ext=".wim"] i {
  color: var(--purple-light);
}

.file-icons [data-ext=".iso"] i,
.file-icons [data-ext=".php"] i,
.file-icons [data-ext=".rar"] i {
  color: var(--purple-accent);
}

.file-icons [data-dir="true"] i {
  color: var(--cyan);
}

.file-icons [data-dir="true"] i::before {
  content: "folder";
}

.file-icons [aria-selected="true"] i {
  color: var(--purple-accent);
}

/* ================================================
   SHELL (Geek Dark Purple Terminal)
   ================================================ */

.shell {
  position: fixed;
  bottom: 0;
  left: 0;
  max-height: calc(100% - 4em);
  width: 100%;
  color: var(--text-secondary);
  background: rgba(15, 15, 30, 0.95);
  border-top: 1px solid var(--border-primary);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: all var(--transition-base);
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}

.shell__divider {
  width: 100%;
  height: 10px;
  background: rgba(124, 58, 237, 0.1);
  transition: background var(--transition-fast);
  cursor: grab;
}

.shell__divider:hover {
  background: rgba(124, 58, 237, 0.2);
}

.shell__divider:active {
  cursor: grabbing;
}

.shell__content {
  height: 100%;
  overflow: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  cursor: text;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 1px var(--border-secondary) inset;
  transition: transform var(--transition-base);
  padding: 0.75em;
}

.shell__overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.shell__result {
  display: flex;
  align-items: flex-start;
  padding: 0.6em 0;
  border-top: 1px solid var(--border-secondary);
}

.shell--hidden {
  transform: translateY(105%);
}

.shell__result--hidden {
  opacity: 0;
}

.shell__text,
.shell__prompt,
.shell__prompt i {
  font-size: inherit;
}

.shell__prompt {
  width: 1.4rem;
  opacity: 0.9;
  margin-right: 0.5em;
}

.shell__prompt i {
  color: var(--lime);
}

.shell__text {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
  width: 100%;
  color: var(--text-secondary);
}

/* ================================================
   SHARE (Geek Dark Purple)
   ================================================ */

.share {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1em;
}

@media (max-width: 736px) {
  .share {
    display: block;
  }
}

.share__box {
  background: var(--surface-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 0.8em;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  flex: 1 1 18em;
}

.share__box:hover {
  border-color: var(--purple-light);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
}

.share__box__header {
  padding: 1.5em 1.2em;
  text-align: center;
  border-bottom: 1px solid var(--border-secondary);
  background: rgba(124, 58, 237, 0.08);
}

.share__box__icon i {
  font-size: 3.5em;
  color: var(--purple-light);
  opacity: 1;
}

.share__box__center {
  text-align: center;
}

.share__box__info {
  flex: 1 1 18em;
}

.share__box__element {
  padding: 1.2em;
  border-top: 1px solid var(--border-secondary);
  word-break: break-all;
}

.share__box__element.share__box__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.share__box__element .button {
  display: inline-block;
}

.share__box__element .button i {
  display: block;
  margin-bottom: 4px;
}

.share__box__items {
  text-align: left;
  flex: 10 0 25em;
}

.share__box__items #listing.list .item {
  cursor: pointer;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: 1px solid var(--border-secondary);
  transition: background var(--transition-fast);
}

.share__box__items #listing.list .item:hover {
  background: rgba(124, 58, 237, 0.1);
}

#listing.list .item .name {
  width: 50%;
}

#listing.list .item .modified {
  width: 25%;
}

.share__wrong__password {
  background: rgba(236, 72, 153, 0.9);
  color: #fff;
  padding: 0.8em;
  text-align: center;
  border-radius: 0.6em;
  margin: 0.75em;
  animation: slideIn 0.3s ease forwards;
  font-weight: 600;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================
   LOGIN (Geek Dark Purple)
   ================================================ */

#login {
  position: fixed;
  inset: 0;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-tertiary));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

#login img {
  width: 6em;
  height: 6em;
  margin: 0 auto 1.5em;
  display: block;
  border-radius: 0.8em;
  border: 2px solid var(--border-primary);
  transition: all var(--transition-base);
}

#login img:hover {
  transform: scale(1.05);
  border-color: var(--purple-light);
}

#login h1 {
  text-align: center;
  font-size: 2.5em;
  margin: 0 0 1em;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: "JetBrains Mono", monospace;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#login form {
  position: fixed;
  max-width: 20em;
  width: 90%;
  background: var(--surface-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.8em;
  padding: 2em 1.5em;
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.2);
  z-index: 10;
}

#login.recaptcha form {
  min-width: 304px;
}

#login #recaptcha {
  margin: 1em 0 0;
}

#login .wrong {
  background: rgba(236, 72, 153, 0.9);
  color: #fff;
  padding: 0.8em;
  text-align: center;
  border-radius: 0.6em;
  animation: slideIn 0.3s ease forwards;
  font-weight: 600;
  margin-bottom: 1em;
}

#login .logout-message {
  background: rgba(132, 204, 22, 0.9);
  color: #fff;
  padding: 0.8em;
  text-align: center;
  border-radius: 0.6em;
  animation: slideIn 0.3s ease forwards;
  font-weight: 600;
  margin-bottom: 1em;
}

#login p {
  cursor: pointer;
  text-align: right;
  color: var(--purple-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 1em 0 0;
  transition: color var(--transition-fast);
}

#login p:hover {
  color: var(--purple-accent);
}

/* ================================================
   COLLAPSIBLE (Geek Dark Purple)
   ================================================ */

.collapsible {
  border-top: 1px solid var(--border-secondary);
}

.collapsible:last-of-type {
  border-bottom: 1px solid var(--border-secondary);
}

.collapsible > input {
  display: none;
}

.collapsible > label {
  padding: 1.2em 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  user-select: none;
}

.collapsible > label:hover {
  color: var(--text-primary);
}

.collapsible > label * {
  margin: 0;
  color: var(--text-secondary);
}

.collapsible > label i {
  transition: transform var(--transition-base);
  user-select: none;
  color: var(--purple-light);
}

.collapsible .collapse {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
}

.collapsible > input:checked ~ .collapse {
  padding-top: 1em;
  padding-bottom: 1em;
  max-height: 20em;
}

.collapsible > input:checked ~ label i {
  transform: rotate(180deg);
}

.card .collapsible {
  width: calc(100% + 2.4em);
  margin: 0 -1.2em;
}

.card .collapsible > label {
  padding: 1.2em;
}

.card .collapsible .collapse {
  padding: 0 1.2em;
}

/* ================================================
   PROGRESS BAR (Geek Dark Purple)
   ================================================ */

.vue-simple-progress {
  height: 6px !important;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(124, 58, 237, 0.1) !important;
  border: 1px solid var(--border-secondary);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.vue-simple-progress-bar {
  height: 100% !important;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-primary), var(--cyan), var(--lime)) !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
  transition: width var(--transition-base) !important;
}

/* ================================================
   NUMBER INPUT (Geek Dark Purple)
   ================================================ */

.vue-number-input > input {
  background: var(--surface-secondary) !important;
  border: 1px solid var(--border-primary) !important;
  color: var(--text-primary) !important;
  border-radius: 0.6em !important;
  font-family: inherit !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
  transition: all var(--transition-fast) !important;
}

.vue-number-input > input:hover {
  border-color: var(--purple-primary) !important;
  background: rgba(124, 58, 237, 0.05) !important;
}

.vue-number-input > input:focus {
  border-color: var(--purple-light) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
}

.vue-number-input--small > input {
  height: 1.9rem !important;
  font-size: 0.95rem !important;
}

.vue-number-input__button {
  background: var(--surface-secondary) !important;
  border-radius: 0.6em !important;
  transition: all var(--transition-fast) !important;
}

.vue-number-input__button--minus,
.vue-number-input__button--plus {
  border-color: var(--border-primary) !important;
}

.vue-number-input__button::before,
.vue-number-input__button::after {
  background: var(--text-secondary) !important;
}

.vue-number-input__button:hover {
  background: rgba(124, 58, 237, 0.15) !important;
  border-color: var(--purple-primary) !important;
}

.vfm-modal {
  z-index: 9999999 !important;
}

body > div[style*="z-index: 9990"] {
  z-index: 10000 !important;
}

/* ================================================
   MARKDOWN PREVIEW (Geek Dark Purple)
   ================================================ */

.md_preview {
  padding: 1.5em;
  background: var(--surface-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.8em;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: var(--shadow-md);
}

.md_preview h1,
.md_preview h2,
.md_preview h3,
.md_preview h4,
.md_preview h5,
.md_preview h6 {
  color: var(--purple-light);
  margin: 1.5em 0 0.75em;
  font-weight: 700;
}

.md_preview h1 {
  font-size: 2em;
  border-bottom: 2px solid var(--border-primary);
  padding-bottom: 0.5em;
}

.md_preview h2 {
  font-size: 1.6em;
}

.md_preview h3 {
  font-size: 1.3em;
}

.md_preview code {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple-accent);
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  font-family: "JetBrains Mono", monospace;
}

.md_preview pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-secondary);
  border-radius: 0.6em;
  padding: 1em;
  overflow-x: auto;
  color: var(--lime);
}

.md_preview pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.md_preview blockquote {
  border-left: 3px solid var(--purple-primary);
  padding-left: 1em;
  margin-left: 0;
  color: var(--text-secondary);
  font-style: italic;
}

.md_preview a {
  color: var(--cyan);
  transition: color var(--transition-fast);
}

.md_preview a:hover {
  color: var(--purple-light);
  text-decoration: underline;
}

.md_preview ul,
.md_preview ol {
  margin: 1em 0;
  padding-left: 2em;
}

.md_preview li {
  margin: 0.5em 0;
}

#preview-container {
  overflow: auto;
  flex: 1;
}

/* ================================================
   EPUB READER (Geek Dark Purple)
   ================================================ */

.epub-reader {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.epub-reader .container {
  width: 100%;
  max-width: 100%;
  height: calc(100% - 64px);
  margin: 0;
}

.epub-reader .arrow.pre {
  left: 0;
}

.epub-reader .readerArea {
  background: var(--surface-primary) !important;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.epub-reader .titleArea {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(124, 58, 237, 0.08);
  padding: 1em;
  border-bottom: 1px solid var(--border-secondary);
}

.epub-reader .tocButtonBar {
  background: rgba(124, 58, 237, 0.08);
  border-bottom: 1px solid var(--border-primary);
}

.epub-reader .tocButton {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  padding: 0.75em 1em;
}

.epub-reader .tocButton:hover {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text-primary);
  border-radius: 0.5em;
}

.epub-reader .tocButton.tocButtonExpanded {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
  border-radius: 0.6em;
}

.epub-reader .tocAreaButton.active {
  color: var(--purple-light);
  border-color: var(--purple-primary);
}

.epub-reader .tocArea {
  background: var(--surface-secondary);
  border-left: 1px solid var(--border-primary);
}

.epub-reader .readerArea .arrow {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border-radius: 0.6em;
}

.epub-reader .readerArea .arrow:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.15);
}

.epub-reader .size {
  display: flex;
  gap: 0.5em;
  align-items: center;
  z-index: 111;
  right: 25px;
  position: absolute;
  top: 78px;
}

.epub-reader .size span {
  color: var(--text-secondary);
  font-weight: 600;
}

.epub-reader .size button {
  background: var(--surface-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 0.5em;
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
  padding: 0;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.epub-reader .size button:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--purple-primary);
  color: var(--text-primary);
}

.epub-reader .size button:active {
  transform: scale(0.95);
}

/* ================================================
   UPLOAD FILES (Geek Dark Purple)
   ================================================ */

.upload-files .card.floating {
  left: auto;
  top: auto;
  margin: 0;
  right: 0.75em;
  bottom: 0.75em;
  transform: none;
  max-width: 26em;
  width: calc(100% - 1.5em);
}

.upload-files .file {
  margin-bottom: 1em;
}

.upload-files .file .file-name {
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--text-primary);
  font-weight: 600;
}

.upload-files .file .file-name i {
  margin-right: 0;
  color: var(--purple-light);
  font-size: 1.2em;
}

.upload-files .file .file-progress {
  margin-top: 0.6em;
  width: 100%;
  height: 6px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border-secondary);
  border-radius: 999px;
  overflow: hidden;
}

.upload-files .file .file-progress div {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-primary), var(--cyan));
  width: 0;
  transition: width var(--transition-base);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.upload-files.closed .card-content {
  display: none;
  padding: 0 1.2em 1.2em;
}

.upload-files .card .card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  font-weight: 600;
  padding: 1em 1.2em 0;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.upload-files.closed .card-title {
  font-size: 0.75em;
  padding: 0.75em 1.2em;
}

@media (max-width: 450px) {
  .upload-files .card.floating {
    max-width: 100%;
    width: calc(100% - 1.5em);
    right: 0.75em;
    bottom: 0.75em;
  }
}

/* ================================================
   OVERLAY & MODALS (Geek Dark Purple)
   ================================================ */

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  animation: fadeIn 0.2s forwards;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@keyframes fadeIn {
  0% {
    visibility: hidden;
    opacity: 0;
  }
  1% {
    visibility: visible;
    opacity: 0;
  }
  100% {
    visibility: visible;
    opacity: 1;
  }
}

/* ================================================
   FILE SELECTION PROMPT (Geek Dark Purple)
   ================================================ */

.file-list {
  max-height: 50vh;
  overflow: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.file-list li {
  width: 100%;
  user-select: none;
  border-radius: 0.6em;
  padding: 0.6em 0.8em;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.file-list li[aria-selected="true"] {
  background: rgba(124, 58, 237, 0.25) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--purple-primary);
}

.file-list li:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-primary);
}

.file-list li:before {
  content: "folder";
  color: var(--text-secondary);
  vertical-align: middle;
  line-height: 1.4;
  font-family: "Material Icons";
  font-size: 1.4em;
  margin-right: 0.25em;
}

.file-list li[aria-selected="true"]:before {
  color: var(--purple-light);
}

.help {
  max-width: 24em;
}

.help ul {
  padding: 0;
  margin: 1.5em 0;
  list-style: none;
}

.help li {
  margin: 0.75em 0;
  padding-left: 1.5em;
  position: relative;
  color: var(--text-secondary);
}

.help li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-weight: bold;
}

/* ================================================
   RESPONSIVE DESIGN (Geek Dark Purple)
   ================================================ */

@media (max-width: 1024px) {
  nav {
    width: 10em;
  }

  main {
    width: calc(100% - 13em);
  }
}

@media (max-width: 1024px) {
  #listing.mosaic .item {
    width: calc(50% - 1em);
  }
}

@media (max-width: 736px) {
  body {
    padding-bottom: 5em;
  }

  #listing.list .item .size {
    display: none;
  }

  #listing.list .item .name {
    width: 60%;
  }

  #more {
    display: inherit;
  }

  header .overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  #dropdown {
    position: fixed;
    top: 1em;
    right: 1em;
    display: block;
    background: var(--surface-primary);
    border: 1px solid var(--border-primary);
    border-radius: 0.8em;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
    transform: scale(0);
    transition: transform var(--transition-fast);
    transform-origin: top right;
    z-index: 99999;
    overflow: hidden;
  }

  html[dir="rtl"] #dropdown {
    right: unset;
    left: 1em;
    transform-origin: top left;
  }

  #dropdown > div {
    display: block;
  }

  #dropdown.active {
    transform: scale(1);
  }

  #dropdown .action {
    display: flex;
    align-items: center;
    border-radius: 0;
    width: 100%;
    padding: 0.75em 1em;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
  }

  #dropdown .action:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
  }

  #dropdown .action span:not(.counter) {
    display: inline-block;
    padding: 0.4em;
  }

  #dropdown .counter {
    left: 2.25em;
  }

  #file-selection {
    position: fixed;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    width: 95%;
    max-width: 22em;
    z-index: 1;
    background: var(--surface-primary);
    border: 1px solid var(--border-primary);
    border-radius: 0.8em;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
  }

  #file-selection .action {
    border-radius: 999px;
    width: auto;
    padding: 0.6em 1em;
  }

  #file-selection > span {
    display: inline-block;
    margin-left: 1em;
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 0.9em;
  }

  #file-selection .action span {
    display: none;
  }

  nav {
    top: 0;
    z-index: 99999;
    height: 100%;
    width: 16em;
    background: var(--surface-primary);
    border-right: 1px solid var(--border-primary);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.5);
    transition: left var(--transition-base), right var(--transition-base);
    left: -17em;
  }

  html[dir="rtl"] nav {
    left: unset;
    right: -17em;
    border-right: none;
    border-left: 1px solid var(--border-primary);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
  }

  nav.active {
    left: 0;
  }

  html[dir="rtl"] nav.active {
    left: unset;
    right: 0;
  }

  .shell__divider {
    height: 12px;
  }

  header .search-button,
  header .menu-button {
    display: inherit;
  }

  header img {
    display: none;
  }

  #listing {
    margin-bottom: 5em;
  }

  html[dir="rtl"] #listing {
    margin-right: unset;
  }

  html[dir="rtl"] .breadcrumbs {
    transform: translateX(16em);
  }

  main {
    margin: 0 1em;
    width: calc(100% - 2em);
  }

  #search {
    display: none;
  }

  #search.active {
    display: block;
  }

  #listing.mosaic .item {
    width: calc(50% - 1em);
  }
}

@media (max-width: 450px) {
  #listing.list .item .modified {
    display: none;
  }

  #listing.list .item .name {
    width: 100%;
  }

  #listing.mosaic .item {
    width: calc(100% - 1em);
  }

  #search .boxes > div {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   TYPOGRAPHY (Geek Dark Purple)
   ================================================ */

@import "material-icons/iconfont/filled.css";

body {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--purple-light);
}

code,
pre,
.shell__content,
.input--textarea {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9em;
}

.material-icons {
  font-size: 1.4rem;
  line-height: 1;
  vertical-align: middle;
  opacity: 0.95;
  transition: all var(--transition-fast);
}

.material-icons:hover {
  opacity: 1;
}

/* ================================================
   UTILITY CLASSES (Geek Dark Purple)
   ================================================ */

.break-word {
  word-break: break-all;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 736px) {
  .mobile-only {
    display: block !important;
  }
}

/* Smooth scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 999px;
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* Selection color */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(124, 58, 237, 0.3);
  color: var(--text-primary);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
}

/* ================================================
   ANIMATIONS (Geek Dark Purple)
   ================================================ */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* ================================================
   DARK MODE ENHANCEMENTS (Geek Dark Purple)
   ================================================ */

/* Enhanced contrast for better readability */
@media (prefers-contrast: more) {
  :root {
    --text-primary: #f0f0ff;
    --text-secondary: #c0c0e0;
    --border-primary: rgba(124, 58, 237, 0.5);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High DPI displays */
@media (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: subpixel-antialiased;
  }
}

/* ================================================
   PRINT STYLES (Geek Dark Purple)
   ================================================ */

@media print {
  body {
    background: white;
    color: black;
  }

  nav,
  header,
  .shell,
  .progress {
    display: none !important;
  }

  main {
    width: 100%;
    margin: 0;
  }

  .card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  a {
    color: #0066cc;
    text-decoration: underline;
  }
}

/* ================================================
   CUSTOM SCROLLBAR (Geek Dark Purple)
   ================================================ */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.3) transparent;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
  background-clip: content-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* ================================================
   FOCUS STATES (Geek Dark Purple)
   ================================================ */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
}

.button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* ================================================
   LINK STATES (Geek Dark Purple)
   ================================================ */

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--purple-accent);
}

a:active {
  color: var(--cyan);
}

a:visited {
  color: var(--purple-primary);
}

/* Underline animation on hover */
a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--cyan));
  transition: width var(--transition-fast);
}

a:hover::after {
  width: 100%;
}

/* ================================================
   FORM STATES (Geek Dark Purple)
   ================================================ */

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(124, 58, 237, 0.05) !important;
}

input:invalid {
  border-color: #ff6b6b !important;
}

input:valid {
  border-color: var(--lime) !important;
}

/* ================================================
   LOADING STATES (Geek Dark Purple)
   ================================================ */

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(124, 58, 237, 0.2);
  border-top-color: var(--purple-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-light);
  animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* ================================================
   EMPTY STATES (Geek Dark Purple)
   ================================================ */

.empty-state {
  text-align: center;
  padding: 3em 1em;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 4em;
  color: var(--purple-primary);
  margin-bottom: 1em;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1.3em;
  margin: 1em 0 0.5em;
  color: var(--text-primary);
}

.empty-state p {
  margin: 0.5em 0 1.5em;
  font-size: 0.95em;
}

/* ================================================
   ERROR STATES (Geek Dark Purple)
   ================================================ */

.error {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #ff6b6b;
  padding: 1em;
  border-radius: 0.6em;
  margin: 1em 0;
}

.error i {
  color: #ff6b6b;
  margin-right: 0.5em;
}

.error-message {
  font-size: 0.9em;
  color: #ff6b6b;
  margin-top: 0.5em;
}

/* ================================================
   SUCCESS STATES (Geek Dark Purple)
   ================================================ */

.success {
  background: rgba(132, 204, 22, 0.1);
  border: 1px solid rgba(132, 204, 22, 0.3);
  color: var(--lime);
  padding: 1em;
  border-radius: 0.6em;
  margin: 1em 0;
}

.success i {
  color: var(--lime);
  margin-right: 0.5em;
}

.success-message {
  font-size: 0.9em;
  color: var(--lime);
  margin-top: 0.5em;
}

/* ================================================
   WARNING STATES (Geek Dark Purple)
   ================================================ */

.warning {
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.3);
  color: #fb923c;
  padding: 1em;
  border-radius: 0.6em;
  margin: 1em 0;
}

.warning i {
  color: #fb923c;
  margin-right: 0.5em;
}

.warning-message {
  font-size: 0.9em;
  color: #fb923c;
  margin-top: 0.5em;
}

/* ================================================
   INFO STATES (Geek Dark Purple)
   ================================================ */

.info {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
  padding: 1em;
  border-radius: 0.6em;
  margin: 1em 0;
}

.info i {
  color: var(--cyan);
  margin-right: 0.5em;
}

.info-message {
  font-size: 0.9em;
  color: var(--cyan);
  margin-top: 0.5em;
}

/* ================================================
   BADGES (Geek Dark Purple)
   ================================================ */

.badge {
  display: inline-block;
  padding: 0.3em 0.6em;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-fast);
}

.badge:hover {
  background: rgba(124, 58, 237, 0.3);
  transform: scale(1.05);
}

.badge--primary {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
}

.badge--success {
  background: rgba(132, 204, 22, 0.2);
  color: var(--lime);
  border-color: rgba(132, 204, 22, 0.3);
}

.badge--danger {
  background: rgba(236, 72, 153, 0.2);
  color: #ff6b6b;
  border-color: rgba(236, 72, 153, 0.3);
}

.badge--warning {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}

.badge--info {
  background: rgba(6, 182, 212, 0.2);
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.3);
}

/* ================================================
   TOOLTIPS (Geek Dark Purple)
   ================================================ */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5em 0.75em;
  background: var(--surface-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.5em;
  font-size: 0.85em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--surface-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 1000;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}

/* ================================================
   TAGS (Geek Dark Purple)
   ================================================ */

.tag {
  display: inline-block;
  padding: 0.4em 0.8em;
  margin: 0.25em;
  border-radius: 0.5em;
  font-size: 0.85em;
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.tag:hover {
  background: rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.tag--removable {
  padding-right: 0.4em;
}

.tag--removable::after {
  content: "×";
  margin-left: 0.5em;
  cursor: pointer;
  font-weight: bold;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.tag--removable::after:hover {
  opacity: 1;
}

/* ================================================
   BREADCRUMB ENHANCEMENTS (Geek Dark Purple)
   ================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9em;
}

.breadcrumb a {
  color: var(--purple-light);
  transition: all var(--transition-fast);
  padding: 0.25em 0.5em;
  border-radius: 0.3em;
}

.breadcrumb a:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple-accent);
}

.breadcrumb span {
  color: var(--text-tertiary);
  margin: 0 0.25em;
}

.breadcrumb .active {
  color: var(--text-primary);
  font-weight: 600;
}

/* ================================================
   FINAL POLISH (Geek Dark Purple)
   ================================================ */

/* Smooth transitions for all interactive elements */
button,
a,
input,
select,
textarea {
  transition: all var(--transition-fast);
}

/* Prevent text selection on UI elements */
button,
.button,
.action,
nav .action {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Ensure consistent line heights */
body {
  line-height: 1.6;
}

h1 {
  line-height: 1.2;
}

h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
}

/* Consistent spacing */
p {
  margin: 1em 0;
}

ul,
ol {
  margin: 1em 0;
  padding-left: 2em;
}

li {
  margin: 0.5em 0;
}

/* Code block styling */
pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-secondary);
  border-radius: 0.6em;
  padding: 1em;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.5;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--border-secondary);
  margin: 2em 0;
}

/* Blockquote styling */
blockquote {
  border-left: 3px solid var(--purple-primary);
  padding-left: 1em;
  margin-left: 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Definition list */
dt {
  font-weight: 600;
  color: var(--purple-light);
  margin-top: 1em;
}

dd {
  margin-left: 2em;
  margin-bottom: 0.5em;
  color: var(--text-secondary);
}

/* ================================================
   END OF STYLESHEET
   ================================================ */
