* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%
}

body {
  font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.5rem;
  background: #111;
  border-bottom: 2px solid #cc0000;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: .8rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 15px rgba(204, 0, 0, .1)
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none
}

.brand-title {
  display: flex;
  align-items: center;
}

.brand-title img {
  height: 40px; /* Adjust height as needed */
  width: auto; 
}

/* You can also remove these lines since they're no longer needed: */
.logo-box {
  width: 34px;
  height: 34px;
  border: 2px solid #333;
  background: #0a0a0a;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .5)
}

.logo-box span {
  color: #cc0000;
  font-weight: 800
}

.top-tools {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto
}

.top-tools input {
  width: min(520px, 78vw);
  padding: .45rem .6rem;
  background: #0a0a0a;
  color: #e0e0e0;
  border: 1px solid #333;
  border-left: 3px solid #cc0000;
  font-family: inherit;
  outline: none;
  font-size: .85rem
}

.top-tools button {
  border: 2px solid #333;
  background: #111;
  color: #e0e0e0;
  font-family: inherit;
  padding: .45rem .7rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all .2s;
  font-size: .85rem
}

.top-tools button:hover {
  background: #1a1a1a;
  border-color: #cc0000;
  color: #fff
}

.top-tools .primary {
  background: #cc0000;
  border-color: #cc0000;
  color: #fff;
  font-weight: 600
}

.top-tools .primary:hover {
  background: #ff3333;
  border-color: #ff3333
}

.layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0a0a0a
}

.sidebar {
  width: 300px;
  background: #111;
  border-right: 2px solid #333;
  padding: 1rem 0;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0
}

.sidebar-section {
  margin-bottom: .75rem;
  border-bottom: 1px solid #222
}

.sidebar-section-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cc0000;
  padding: .6rem 1rem;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all .2s;
  font-weight: 600
}

.sidebar-section-title:hover {
  background: #222;
  color: #ff3333
}

.sidebar-section-title .chev {
  font-size: .8rem;
  opacity: .8;
  transition: transform .2s ease
}

.sidebar-section.collapsed .sidebar-section-title .chev {
  transform: rotate(-90deg)
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: .5rem 0
}

.sidebar-section.collapsed>.sidebar-list {
  display: none
}

.sidebar-item {
  display: block;
  padding: .6rem 1.2rem;
  margin: .1rem 0;
  font-size: .9rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .2s;
  color: #b0b0b0;
  position: relative
}

.sidebar-item:hover {
  background: #1a1a1a;
  color: #fff;
  border-left-color: #cc0000;
  padding-left: 1.5rem
}

.sidebar-item.active {
  background: linear-gradient(90deg, #1a1a1a, #111);
  color: #fff;
  border-left-color: #cc0000;
  font-weight: 600;
  padding-left: 1.5rem
}

.sidebar-item.active::before {
  content: "▶";
  color: #cc0000;
  font-size: .7rem;
  position: absolute;
  left: .6rem
}

.hint {
  padding: 0 .9rem .7rem;
  color: #888;
  font-size: .82rem;
}

kbd {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 3px;
  padding: .1rem .4rem;
  font-family: inherit;
  font-size: .9rem;
  color: #00cc00;
  box-shadow: 0 2px 0 #000
}

.content {
  flex: 1;
  padding: 1.5rem 2rem;
  overflow-y: auto;
  min-height: 0;
  background: #0a0a0a
}

.content-inner {
  background: #111;
  border-radius: 0;
  padding: 1.5rem 2rem;
  border: 2px solid #333;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, .5)
}

.breadcrumb {
  font-size: .85rem;
  color: #888;
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #333
}

.breadcrumb .sep {
  margin: 0 .5rem;
  color: #cc0000
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #fff;
  border-bottom: 2px solid #cc0000;
  padding-bottom: .5rem
}

p {
  font-size: .95rem;
  line-height: 1.6;
  color: #b0b0b0;
  margin-bottom: 1rem
}

.status {
  font-size: .9rem;
  color: #888;
  margin-bottom: 1rem;
  padding: .5rem;
  background: #1a1a1a;
  border-left: 3px solid #cc0000
}

.content-inner a {
  color: #cc0000;
  text-decoration: none;
  border-bottom: 1px dotted #cc0000;
  transition: all .2s
}

.content-inner a:hover {
  color: #ff3333;
  border-bottom: 1px solid #ff3333
}

.content-inner hr {
  border: none;
  border-top: 2px solid #333;
  margin: 1.2rem 0
}

code {
  font-family: inherit;
  font-size: .9rem;
  background: #1a1a1a;
  padding: .2rem .4rem;
  border-radius: 3px;
  color: #00cc00
}

.list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem
}

.item {
  border: 1px solid #333;
  background: #0a0a0a;
  padding: .9rem
}

.item-title {
  color: #fff;
  font-size: .98rem;
  margin-bottom: .4rem
}

.item-title .num {
  color: #cc0000
}

.item-meta {
  color: #888;
  font-size: .82rem;
  margin-bottom: .55rem
}

.item-url {
  display: block;
  background: #111;
  border: 1px dashed #333;
  padding: .55rem .6rem;
  margin-bottom: .7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
  color: #e0e0e0
}

.actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap
}

.btn {
  border: 2px solid #333;
  background: #111;
  color: #e0e0e0;
  font-family: inherit;
  padding: .5rem .85rem;
  cursor: pointer;
  transition: all .2s;
  font-size: .85rem
}

.btn:hover {
  background: #1a1a1a;
  border-color: #cc0000;
  color: #fff
}

.btn.primary {
  background: #cc0000;
  border-color: #cc0000;
  color: #fff;
  font-weight: 600
}

.btn.primary:hover {
  background: #ff3333;
  border-color: #ff3333
}

.footer {
  border-top: 2px solid #333;
  padding: .8rem 1.5rem;
  font-size: .85rem;
  color: #888;
  text-align: center;
  background: #111
}
.footer {
  border-top: 2px solid #333;
  padding: .8rem 1.5rem;
  font-size: .85rem;
  color: #888;
  text-align: center;
  background: #111;
}

.footer a {
  color: #cc0000;
  text-decoration: none;
  border-bottom: 1px dotted #cc0000;
  transition: all .2s ease;
  padding: 0 .1rem;
}

.footer a:hover {
  color: #ff3333;
  border-bottom: 1px solid #ff3333;
}

.footer a:active {
  color: #ff6666;
  border-bottom: 1px solid #ff6666;
}

.footer a:focus {
  outline: 1px dashed #cc0000;
  outline-offset: 2px;
}

@media (max-width:900px) {
  .layout {
    flex-direction: column;
    min-height: auto;
    overflow: visible
  }

  .sidebar {
    width: 100%;
    max-height: 320px;
    border-right: none;
    border-bottom: 2px solid #333
  }

  .content {
    padding: 1rem;
    overflow-y: visible
  }

  .content-inner {
    padding: 1rem
  }

  .list {
    grid-template-columns: 1fr
  }

  .top-tools {
    margin-left: 0;
    width: 100%
  }

  .top-tools input {
    width: 100%
  }
  .footer a {
  color: #cc0000;
  text-decoration: none;
  border-bottom: 1px dotted #cc0000;
  transition: all .2s ease;
  padding: 0 .1rem;
}

.footer a:hover {
  color: #ff3333;
  border-bottom: 1px solid #ff3333;
}

.footer a:active {
  color: #ff6666;
  border-bottom: 1px solid #ff6666;
}

.footer a:focus {
  outline: 1px dashed #cc0000;
  outline-offset: 2px;
}
  
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px
}

::-webkit-scrollbar-track {
  background: #111
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
  background: #444
}

::selection {
  background: #cc0000;
  color: #fff
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #111;
  color: #e0e0e0;
  border: 2px solid #333;
  padding: .55rem .8rem;
  font-size: .85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
  z-index: 999;
  max-width: min(980px, calc(100vw - 24px));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
  border-color: #cc0000
}
.brand-title {
text-align: center;
align-items: center;
margin: 0 auto;
}