/* ── Page ─────────────────────────────────────────── */

html {
  overflow: hidden;
  height: 100%;
}

body {
  overflow: hidden;
  height: 100%;
  font-family: 'Share Tech Mono', monospace !important;
  letter-spacing: -0.03em;
  background-color: #000010 !important;
}

h1, h2, h3, h4, h5, h6,
.dr-page-header,
.dr-nav-section-header {
  font-family: 'Oxanium', monospace;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
}

.dr-page {
  min-height: 100vh;
  width: 100%;
  height: 100%;
  margin-inline: auto;
  /* background: linear-gradient(0.25turn, #160406 17rem, black, #160406); */
  background: transparent;
  display: flex;
  overflow-x: hidden;
}

.dr-page-header {
  width: 100%;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  background-color: rgb(30, 24, 44);
  color: beige;
  font-size: 2.5rem;
  letter-spacing: 0.05em !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Content structure ────────────────────────────── */

.dr-content {
  width: calc(100% - 20rem);
  margin-left: 17rem;
  padding: 1.5rem 3rem;
  transition: all 0.4s;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.dr-content::-webkit-scrollbar { display: none; }

.dr-content-header,
.dr-content-body {
  width: 90%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.dr-content-header { align-items: flex-start; }
.dr-content-body   { align-items: center; }

/* ── Content containers ───────────────────────────── */

.dr-box, .dr-block, .dr-slip,
.dr-box-card, .dr-block-card, .dr-slip-card,
.dr-box-title, .dr-block-title, .dr-slip-title {
  width: 100%;
  height: 100%;
  margin-bottom: 0.5rem;
}

.dr-box, .dr-block, .dr-slip                        { text-align: left;   color: whitesmoke; }
.dr-box-card, .dr-block-card, .dr-slip-card         { text-align: center; color: whitesmoke; }
.dr-box-title, .dr-block-title, .dr-slip-title      { text-align: left;   color: beige; }

.dr-box,   .dr-box-card,   .dr-box-title            { padding-inline: 10%; }
.dr-block, .dr-block-card, .dr-block-title          { padding-inline: 20%; }
.dr-slip,  .dr-slip-card,  .dr-slip-title           { padding-inline: 35%; }

/* ── Tiles ────────────────────────────────────────── */

.dr-tile-1, .dr-tile-2, .dr-tile-3, .dr-tile-4 {
  height: 100%;
  padding: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgb(42, 36, 58);
}

.dr-tile-1 { width: 100%; }
.dr-tile-2 { width: 49%; }
.dr-tile-3 { width: 32%; }
.dr-tile-4 { width: 23.5%; }

.dr-tiler {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.dr-tile-bg {
  border-radius: 10px;
  overflow: hidden;
  padding: 3px;
  background: repeating-linear-gradient(
    0deg,
    #000 0px, #000 10px,
    #160406 10px, #160406 20px
  );
}

/* ── Titles ───────────────────────────────────────── */

.dr-title-center, .dr-title-left {
  width: 100%;
  height: 100%;
  margin-bottom: 0.5rem;
  color: beige;
}

.dr-title-center { text-align: center; }
.dr-title-left   { text-align: left; }

/* ── Content misc ─────────────────────────────────── */

.dr-alert {
  width: 100%;
  height: 100%;
  padding-inline: 20%;
}

.dr-separator {
  margin-top: 31px;
  margin-bottom: 2rem;
  border-bottom: 1px dashed whitesmoke;
}

.dr-spanner       { min-height: 1rem; height: 1rem; }
.dr-spannerBig    { min-height: 2rem; height: 2rem; }
.dr-spannerSmall  { min-height: 0.5rem; height: 0.5rem; }

/* ── Links ────────────────────────────────────────── */

.dr-button {
  width: 8rem;
  border: none;
  border-radius: 7px;
  padding: 0.25rem 1rem;
  margin-bottom: 1.5rem;
  background-color: rgba(212, 204, 192, 0.75);
  box-shadow: var(--bs-box-shadow-sm);
}

.dr-link       { color: beige;    text-decoration: none; }
.dr-link-dark  { color: #121416; text-decoration: none; }
.dr-link-alert { color: #433303; text-decoration: none; }

.dr-link:hover, .dr-link-dark:hover { color: white; }
.dr-link-alert:hover                { color: #1d1602; }

/* ── Text helpers ─────────────────────────────────── */

.dr-text, .dr-text-sub, .dr-text-intro, .dr-text-focus {
  padding-inline: 3%;
}

.dr-text-intro { font-size: 1.1rem; font-style: italic; }
.dr-text-focus { font-size: 1.1rem; }
.dr-text-sub   { font-style: italic; }

/* ── Content images ───────────────────────────────── */

.dr-box-card img, .dr-block-card img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  margin-inline: auto;
  border-radius: 10px;
  overflow: hidden;
}

.dr-cert { max-width: 615.4px; }

/* ── Carousel ─────────────────────────────────────── */

.dr-carousel-wrap {
  border-radius: 10px;
  overflow: hidden;
}

.dr-carousel-caption {
  min-width: 200px;
  margin-inline: auto;
  margin-bottom: 1rem;
  border: 1px solid rgba(33, 37, 41, 0.5);
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.5));
}

.dr-carousel-label { margin-bottom: 0; color: #060708; }

/* ── Navbar structure ─────────────────────────────── */

.dr-navbar-left, .dr-navbar-right {
  height: 100vh;
  position: fixed;
  top: 0;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.dr-navbar-left {
  min-width: 17rem;
  width: 17rem;
  left: 0;
  box-shadow: 5px 0 10px rgba(0,0,0,0.1);
  background-color: rgb(32, 30, 31, 0.5);
  flex-wrap: nowrap;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.dr-navbar-left::-webkit-scrollbar { display: none; }

.dr-navbar-right {
  min-width: 3rem;
  width: 3rem;
  right: 0;
  box-shadow: -5px 0 10px rgba(0,0,0,0.1);
  background-color: rgb(32, 30, 31, 0.5);
  align-items: stretch;
}

.dr-nav-top-left, .dr-nav-top-right {
  min-height: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1rem;
  position: fixed;
  top: 0;
  padding: 0;
}

.dr-nav-top-right {
  min-width: 3rem;
  width: 3rem;
}

.dr-nav-media {
  display: flex;
  align-items: center;
  transition: all 0.4s;
}

.dr-nav-spanner-top {
  min-height: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1rem;
}

.dr-nav-body-right {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  margin-top: auto;
  margin-bottom: 0;
  list-style: none;
}

.dr-nav-spanner-bottom { min-height: 2.5rem; height: 2.5rem; }

.dr-nav-bottom-left, .dr-nav-bottom-right {
  min-height: 2.5rem;
  height: 2.5rem;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  position: fixed;
  bottom: 0;
}

.dr-nav-bottom-left {
  min-width: 17rem;
  width: 17rem;
  transition: all 0.4s;
}

.dr-nav-bottom-right {
  min-width: 3rem;
  width: 3rem;
}

/* ── Navbar sections ──────────────────────────────── */

.dr-nav-section {
  margin: 0 0.5rem 1rem;
  border-radius: 10px;
  background-color: rgb(42, 36, 58);
  padding-bottom: 0.25rem;
}

.dr-nav-section-header {
  font-weight: bold;
  font-size: 0.875em;
  padding: 0.6rem 1rem 0.5rem;
  color: beige;
  border-radius: 10px 10px 0 0;
  background-color: rgb(30, 24, 44);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dr-nav-items {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.4rem 0;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
}

.dr-nav-item-wrap {
  border-radius: 7px;
}

.dr-nav-sub {
  display: flex;
  border-radius: 7px;
  background-color: rgb(58, 50, 80);
}

.dr-nav-sub:hover { background-color: rgb(72, 62, 98); }

/* ── Navbar links ─────────────────────────────────── */

.dr-nav-link-left {
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  border-radius: 7px;
  background-color: rgb(58, 50, 80);
  transition: background-color 0.2s;
}

.dr-nav-link-left:hover { background-color: rgb(72, 62, 98); }

.dr-nav-link-sub-left {
  flex: 1;
  min-width: 0;
  height: 2.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  border: none;
  background: transparent;
  border-radius: 7px 0 0 7px;
}

.dr-nav-link-sub-right {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 0 7px 7px 0;
}

.dr-nav-sub-text, .dr-nav-more-text {
  margin-left: 2rem;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.dr-nav-sub-text.active, .dr-nav-more-text.active {
  max-height: 3rem;
  opacity: 1;
  padding: 0.3rem 0.85rem;
}

.dr-nav-sub-text  { font-size: 0.75rem; }
.dr-nav-more-text { font-size: 0.875rem; }

.dr-nav-more {
  display: flex;
  justify-content: center;
  padding-top: 0.25rem;
}

.dr-nav-more-btn {
  background: transparent;
  border: none;
  color: beige;
  opacity: 0.55;
  padding: 0.1rem 0.75rem;
  cursor: pointer;
  line-height: 1;
}

.dr-nav-more-btn:hover { opacity: 1; }

.dr-nav-more-items {
  padding: 0 0.4rem;
  list-style: none;
  margin: 0;
}

.dr-nav-link-right {
  min-width: 3rem;
  width: 3rem;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ── Navbar text ──────────────────────────────────── */

.dr-nav-top-title {
  font-family: 'Oxanium', monospace;
  font-weight: 525 !important;
  letter-spacing: 0.01em;
  font-size: 1.5rem;
  margin: 0;
  color: #121416;
}

.dr-nav-top-subtitle {
  font-weight: lighter;
  margin-bottom: 0;
  color: #6c757d;
}

/* ── icons ────────────────────────────────────────── */

.dr-icon            { color: beige; }
.dr-head-icon       { margin-right: 1rem; color: #aa88ff; }
.dr-nav-icon        { margin-right: 0.85rem; color: #aa88ff; }
.dr-nav-icon-bottom { margin-right: 0.85rem;    color: #121416; }
.dr-nav-icon-more   { color: #aa88ff; }
.dr-nav-icon-sub    { color: beige; }

/* ── Misc ─────────────────────────────────────────── */

.dr-label-alt { display: none; }

.dr-page h6 { font-size: 1.1rem; }
.dr-page h7 { font-weight: 500; }

.text-uppercase { letter-spacing: 0.1em; }

/* ── IDs ──────────────────────────────────────────── */

#sidebar.active  { margin-left: -17rem; }
#rightbar.active { margin-right: -3rem; }

#content.active {
  width: 100%;
  margin: 0;
}

/* ── Cyberspace background ────────────────────────── */

#cyber-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  pointer-events: none;
}

/* ── Retro monitor nav header ─────────────────────── */

.dr-nav-top-left {
  min-width: 17rem;
  width: 17rem;
  background-color: #c8c0b0 !important;
  border-bottom: 3px solid #888;
  padding: 0 !important;
  overflow: visible !important;
  transition: all 0.4s;
}

.dr-monitor-shell {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #d4ccc0 0%, #b8b0a0 60%, #a0988a 100%);
  border-bottom: 4px solid #706860;
  box-shadow:
    inset 2px 2px 0 #e8e0d4,
    inset -2px -2px 0 #888078;
  padding: 3px 6px 1px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  text-decoration: none;
}

.dr-nav-bottom-left .dr-monitor-shell,
.dr-nav-bottom-right .dr-monitor-shell {
  flex-direction: row;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #706860;
  gap: 0;
}

.dr-monitor-screen {
  background: #080818;
  border: 2px solid #444;
  border-radius: 3px;
  box-shadow:
    inset 0 0 8px rgba(0,0,0,0.8),
    inset 0 0 2px rgba(120,80,255,0.08),
    0 0 0 1px #222;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.dr-monitor-scanline {
  position: absolute;
  inset: 5px 8px auto 8px;
  height: calc(100% - 20px);
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 3px
  );
  pointer-events: none;
  border-radius: 3px;
  z-index: 1;
}

.dr-monitor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #8866ff;
  box-shadow: 0 0 6px rgba(120,80,255,0.5);
  flex-shrink: 0;
  filter: saturate(0.7) brightness(0.9);
}

.dr-monitor-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dr-monitor-title {
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 1.25rem;
  font-weight: 600 !important;
  color: #aa88ff;
  text-shadow: 0 0 8px rgba(140,100,255,0.7);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.05em;
}

.dr-monitor-subtitle {
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 0.85rem;
  color: #7755cc;
  text-shadow: 0 0 4px rgba(120,80,255,0.4);
  margin: 0;
  letter-spacing: 0.03em;
}

.dr-monitor-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8866ff;
  box-shadow: 0 0 6px #8866ff, 0 0 12px rgba(140,100,255,0.4);
  position: absolute;
  bottom: 4px;
  right: 10px;
  animation: dr-led-blink 3s ease-in-out infinite;
}

.dr-monitor-brand {
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 0.5rem;
  color: #706860;
  text-align: center;
  letter-spacing: 0.15em;
  line-height: 1;
  padding-bottom: 1px;
}

.dr-monitor-label-alt {
  display:none;
  color: #aa88ff; 
  font-family: 'Share Tech Mono', monospace; 
  text-align: center;
  align-items: center;
  width: 100%;
}

@keyframes dr-led-blink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.2; }
}

/* ── Media queries ────────────────────────────────── */

@media (max-width: 1280px) {
  .dr-block, .dr-block-card, .dr-block-title, .dr-alert { padding-inline: 15%; }
  .dr-slip,  .dr-slip-card,  .dr-slip-title             { padding-inline: 30%; }
}

@media (max-width: 1080px) {
  .dr-content-body, .dr-content-header                  { width: 100%; }
  .dr-block, .dr-block-card, .dr-block-title, .dr-alert { padding-inline: 10%; }
  .dr-slip,  .dr-slip-card,  .dr-slip-title             { padding-inline: 25%; }
}

@media (max-width: 940px) {
  .dr-tiler { flex-direction: column; align-items: center; gap: 1rem; }
  .dr-tile-2, .dr-tile-3, .dr-tile-4 { width: 100%; }
  .dr-page-header { font-size: 1.5rem; }
}

@media (max-width: 720px) {
  .dr-navbar-left,
  .dr-nav-top-left,
  .dr-nav-bottom-left,
  .dr-nav-link-left-footer    { min-width: 3rem; width: 3rem; }

  .dr-nav-link-sub-right      { display: none; }
  .dr-nav-more                { display: none; }

  .dr-nav-section             { margin-inline: 0.1rem; }
  .dr-nav-section-header      { margin-inline: 0.1rem; padding-inline: 0.1rem; text-align: center; }
  .dr-nav-items               { margin-inline: 0.1rem; padding-inline: 0.1rem; }

  .dr-nav-link-left,
  .dr-nav-link-sub-left       { padding-inline: 0.5rem; text-align: center; }

  .dr-nav-icon                { margin-right: 0; }
  .dr-nav-top-subtitle        { font-size: 1.25rem; font-weight: 500; }

  .dr-label                   { display: none; }
  .dr-label-alt               { display: block; }

  .dr-monitor-shell  { padding: 4px; }
  .dr-monitor-screen { padding: 4px; justify-content: center; }
  .dr-monitor-avatar { display: none; }
  .dr-monitor-text   { display: none; }
  .dr-monitor-brand  { display: none; }
  .dr-monitor-led    { display: none; }
  .dr-monitor-label-alt { display: flex !important; flex-direction: column; }

  #content { margin-left: 3rem; width: calc(100% - 6rem); padding-inline: 1.5rem; text-align: center; }
}