:root {
  --bg: #110d10;
  --bg2: #1a1419;

  --panel: rgba(25, 18, 24, 0.94);
  --panel-soft: rgba(38, 27, 35, 0.88);

  --line: #4f3c47;
  --line-bright: #8f6d7f;

  --text: #efe3df;
  --muted: #b69aa4;

  --rose: #a97b8d;
  --rose-dark: #7e5364;
  --wine: #4f1834;
  --plum-gray: #6a6670;
  --mauve: #c08aa1;
  --mauve-soft: #9f6f84;

  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(169, 123, 141, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(79, 24, 52, 0.16), transparent 30%),
    linear-gradient(180deg, #0f0b0e 0%, #161115 45%, #1e171c 100%);
  color: var(--text);
  overflow-x: hidden;
}

body {
  position: relative;
}

/* SOFT SCREEN TEXTURE */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.035) 0px,
      rgba(255,255,255,0.035) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: screen;
}

/* BACKGROUND GLOWS */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.18;
}

.glow-1 {
  width: 280px;
  height: 280px;
  background: var(--wine);
  top: 5%;
  left: 5%;
}

.glow-2 {
  width: 320px;
  height: 320px;
  background: var(--rose);
  bottom: 4%;
  right: 4%;
}

/* MAIN LAYOUT */
#site-shell {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  margin: 30px auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

/* TOP BAR */
#topbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(30, 21, 27, 0.98), rgba(16, 11, 15, 0.95));
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  box-shadow:
    0 10px 30px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.window-title {
  color: var(--text);
}

/* TOP BAR DOTS */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px currentColor;
}

.dot.red {
  color: #7d3450;
  background: #7d3450;
}

.dot.gold {
  color: #a97b8d;
  background: #a97b8d;
}

.dot.blue {
  color: #6a6670;
  background: #6a6670;
}

/* SIDEBAR AND MAIN PANEL */
#sidebar,
#main-panel {
  min-height: 700px;
}

#sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* SIDEBAR BOXES */
.sidebar-box {
  background: linear-gradient(180deg, rgba(31, 22, 29, 0.96), rgba(18, 13, 17, 0.94));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow:
    0 12px 30px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.sidebar-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(169,123,141,0.08), transparent 40%),
    linear-gradient(315deg, rgba(192,138,161,0.06), transparent 45%);
  pointer-events: none;
}

.sidebar-box h1,
.sidebar-box h2 {
  margin: 0 0 12px 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.sidebar-box h1 {
  font-size: 22px;
  color: var(--text);
  text-shadow: 0 0 12px rgba(192,138,161,0.14);
}

.sidebar-box h2 {
  font-size: 13px;
  color: var(--mauve);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.intro,
.mini-list {
  position: relative;
  z-index: 1;
}

.intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* NAV BUTTONS */
.folder-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.folder-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #4a3742 0%, #2d2028 100%);
  border: 1px solid #8f6d7f;
  border-radius: 12px;
  box-shadow:
    0 8px 16px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease;
  overflow: hidden;
}

.folder-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(192,138,161,0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.folder-link:hover,
.folder-link:focus {
  transform: translateX(6px);
  border-color: var(--mauve);
  box-shadow:
    0 12px 22px rgba(0,0,0,0.42),
    0 0 18px rgba(192,138,161,0.10),
    inset 0 1px 0 rgba(255,255,255,0.06);
  filter: brightness(1.08);
}

.folder-link:hover::after,
.folder-link:focus::after {
  opacity: 1;
}

.folder-tab {
  display: none;
}

.folder-icon {
  font-size: 14px;
  color: var(--mauve);
  text-shadow: 0 0 10px rgba(192,138,161,0.22);
  flex-shrink: 0;
}

.folder-text {
  font-size: 13px;
}

/* SMALL LIST BOX */
.small-box .mini-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* MAIN CONTENT PANEL */
#main-panel {
  min-width: 0;
  display: flex;
}

.frame-wrap {
  width: 100%;
  min-height: 700px;
  height: 100%;
  background: linear-gradient(180deg, rgba(29, 21, 27, 0.96), rgba(15, 11, 14, 0.95));
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  box-shadow:
    0 14px 36px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 30px rgba(169,123,141,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.frame-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(72, 52, 62, 0.88), rgba(31, 22, 29, 0.95));
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  flex-shrink: 0;
}

.frame-label {
  color: var(--mauve);
}

.frame-status {
  color: var(--muted);
}

#mainframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  border: none;
  background: #0d0a0d;
}

/* LINKS */
a {
  color: var(--mauve);
}

a:hover {
  color: #ddb2c4;
}

/* OPTIONAL SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1419;
}

::-webkit-scrollbar-thumb {
  background: #6b4a5a;
  border-radius: 999px;
  border: 2px solid #1a1419;
}

::-webkit-scrollbar-thumb:hover {
  background: #8e6176;
}

/* RESPONSIVE */
@media (max-width: 950px) {
  #site-shell {
    grid-template-columns: 1fr;
  }

  #sidebar,
  #main-panel {
    min-height: auto;
  }

  #mainframe {
    height: 620px;
  }

  #topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  #site-shell {
    width: min(100% - 20px, 1200px);
    margin: 14px auto;
    gap: 12px;
  }

  .sidebar-box,
  .frame-wrap,
  #topbar {
    border-radius: 14px;
  }

  .folder-link {
    min-height: 50px;
  }

  #mainframe {
    height: 540px;
  }
}/* EXTRAS NAV BOX */
.extras-box h2 {
  margin-bottom: 14px;
}

/* SECONDARY NAV */
.extras-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.extras-link {
  display: block;
  padding: 10px 12px;
  border: 1px solid #6f5563;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(83, 58, 70, 0.75), rgba(40, 28, 35, 0.85));
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
  font-size: 12px;
  letter-spacing: 1px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 6px 12px rgba(0,0,0,0.22);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.extras-link:hover,
.extras-link:focus {
  transform: translateX(4px);
  border-color: var(--mauve);
  background: linear-gradient(180deg, rgba(101, 70, 85, 0.82), rgba(49, 34, 43, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 16px rgba(0,0,0,0.28),
    0 0 14px rgba(192,138,161,0.08);
}