* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #c0c0c0;
  font-family: 'MS Sans Serif', 'Pixel', Arial, sans-serif;
}

/* ── SITE HEADER ── */
.site-header {
  background: linear-gradient(to right, #000080, #1084d0);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header-meta {
  color: #aaccff;
  font-size: 10px;
  text-align: right;
  line-height: 1.8;
}

/* ── TICKER ── */
.ticker-wrap {
  background: #c0c0c0;
  border-bottom: 2px solid #808080;
  border-top: 2px solid #ffffff;
  overflow: hidden;
  height: 25px;
  display: flex;
  align-items: center;
}

.ticker-inner {
  white-space: nowrap;
  font-size: 12px;
  color: #000080;
  animation: ticker 22s linear infinite;
  padding-left: 100%;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── BODY LAYOUT ── */
.browser-body {
  display: flex;
  height: calc(100vh - 105px);
}

/* ── SIDEBAR PANE ── */
.sidebar-pane {
  width: 170px;
  flex-shrink: 0;
  border-right: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #c0c0c0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.sidebar-pane .window {
  width: 100%;
}

.sidebar-pane .title-bar {
  background: linear-gradient(to right, #000080, #1084d0);
}

.sidebar-pane .title-bar-text {
  font-size: 10px;
}

/* blanket reset — keeps 98.css from adding margin/padding inside sidebar windows */
.sidebar-pane .window-body {
  margin: 0;
  padding: 6px;
  background: transparent;
}

/* fixes the white box 98.css puts behind tree-view */
.sidebar-pane .tree-view {
  border: none;
  background-color: #ffffff;
}

/* ── SIDEBAR WINDOW BODIES (independent control) ── */

.sidebar-nav {
  padding: 4px;
}

.sidebar-friends {
  padding: 4px;
}

.sidebar-friends-list {
  font-size: 11px;
}

.sidebar-theme {
  padding: 6px;
}

/* ── VISITOR COUNTER ── */
.counter-digits {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: bold;
  color: #000080;
  letter-spacing: 3px;
  text-align: center;
  display: block;
  padding: 4px;
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  margin: 4px 0;
}

.counter-since {
  font-size: 8px;
  font-weight: bold;
  color: #333333;
  text-align: center;
  display: block;
  margin-bottom: -4px;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  font-size: 11px;
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── CONTENT PANE ── */
.content-pane {
  flex: 1;
  overflow-y: auto;
  background: #ffffff;
  padding: 14px 16px;
  font-size: 12px;
}

.site-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #000080;
  letter-spacing: 4px;
  margin-bottom: 2px;
  text-shadow: 1px 1px 0 #c0c0c0;
}

.site-tagline {
  text-align: center;
  font-size: 11px;
  color: #808080;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.content-pane hr {
  border: none;
  border-top: 2px solid;
  border-color: #808080 #808080 #ffffff #ffffff;
  margin: 12px 0;
}
 /* ── HEADINGS & PARAGRAPHS ── */
.content-pane h3 {
  font-size: 15px;
  color: #000080;
  margin: 0 0 8px 0;
  padding-bottom: 2px;
  border-bottom: 1px solid #c0c0c0;
  letter-spacing: 1px;
}

.content-pane p {
  font-size: 12px;
  line-height: 1.7;
  color: #333333;
  margin: 0 0 8px 0;
}

/* ── TWO-COLUMN LAYOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.news-item {
  font-size: 11px;
  color: #333;
  padding: 3px 0;
  border-bottom: 1px dotted #c0c0c0;
  line-height: 1.5;
}

.news-date {
  color: #808080;
  font-size: 10px;
}

.currently-item {
  font-size: 11px;
  padding: 2px 0;
  color: #333;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.currently-label {
  color: #000080;
  font-weight: bold;
  font-size: 10px;
  white-space: nowrap;
}

/* ── PROJECTS ── */
.project-entry {
  background: #f0f0f0;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 11px;
}

.project-title {
  font-size: 12px;
  font-weight: bold;
  color: #000080;
  margin-bottom: 4px;
}

.project-desc {
  color: #333;
  line-height: 1.5;
  margin-bottom: 6px;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-links a {
  color: #0000ff;
  font-size: 11px;
  text-decoration: underline;
}

/* ── GUESTBOOK ── */
.gb-entry {
  background: #f0f0f0;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 6px 10px;
  margin-bottom: 6px;
  font-size: 11px;
}

.gb-meta {
  font-size: 10px;
  color: #000080;
  font-weight: bold;
  margin-bottom: 3px;
}

.gb-text {
  color: #333;
  line-height: 1.5;
}

.gb-links {
  font-size: 11px;
  color: #0000ff;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  margin-top: 6px;
}

.gb-form {
  background: #f0f0f0;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 10px;
  margin-top: 8px;
}

.gb-form .field-row {
  margin-bottom: 6px;
  align-items: flex-start;
}

.gb-msg-row {
  align-items: flex-start;
}

.gb-form label {
  width: 60px;
  font-size: 11px;
  flex-shrink: 0;
  padding-top: 2px;
}

.gb-msg-label {
  padding-top: 3px;
}

.gb-input {
  flex: 1;
}

.gb-textarea {
  flex: 1;
  height: 70px;
  resize: vertical;
}

.gb-form-btns {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ── STATUS BAR ── */
.status-bar {
  border-top: 2px solid #808080;
}

/* ── TAB PAGES ── */
.tab-page { display: none; }
.tab-page.active { display: block; }

/* ── SCROLLBARS ── */
.content-pane::-webkit-scrollbar,
.sidebar-pane::-webkit-scrollbar { width: 16px; }

.content-pane::-webkit-scrollbar-track,
.sidebar-pane::-webkit-scrollbar-track { background: #c0c0c0; }

.content-pane::-webkit-scrollbar-thumb,
.sidebar-pane::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

/* ── LINK CARDS (links tab) ── */

.link-group {
  margin-bottom: 12px;
}

.link-group .window {
  width: 100%;
}

.link-group .title-bar {
  background: linear-gradient(to right, #000080, #1084d0);
}

.link-group-body {
  padding: 8px;
  background: #c0c0c0;
  margin: 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  padding: 10px 8px 8px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  text-align: center;
  min-height: 85px;
  user-select: none;
  position: relative;
}

.link-card:hover {
  background: #000080;
  border-color: #808080 #ffffff #ffffff #808080;
}

.link-card:active {
  background: #000060;
  border-color: #808080 #ffffff #ffffff #808080;
}

.link-card-icon {
  font-size: 24px;
  margin-bottom: 5px;
  display: block;
  line-height: 1;
}

.link-card-label {
  font-size: 11px;
  font-weight: bold;
  color: #000080;
  word-break: break-word;
  margin-bottom: 2px;
}

.link-card:hover .link-card-label {
  color: #ffffff;
}

.link-card-desc {
  font-size: 10px;
  color: #555;
  line-height: 1.4;
}

.link-card:hover .link-card-desc {
  color: #aaccff;
}

.link-badge-new {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #ff0000;
  color: #ffffff;
  font-size: 8px;
  font-weight: bold;
  padding: 1px 3px;
  letter-spacing: 0.5px;
}