/* @import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');  */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

html {
  min-height: 100vh;
  /* Dark abstract fractal/tech wallpaper feel */
  background-color: #050505;
  background-image: 
    radial-gradient(circle at 50% 50%, #1a331a 0%, #000000 100%),
    url('https://www.transparenttextures.com/patterns/carbon-fibre.png'); /* Subtle tech texture */
  background-attachment: fixed;
  
  font-family: "Inter", sans-serif;
  font-weight: 300;
  line-height: 1.6em;
  font-size: 12pt;
  margin: 0;
  padding: 0;
}

:root {
  --neon-green: #39ff14;
  --dark-accent: #0a0a0a;
  --panel-gray: #1a1a1b;
  --window-border: #333333;
  --title-gradient: linear-gradient(180deg, #114411 0%, #000000 50%, #000000 100%);
  --gloss-overlay: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
}

.wrapper { 
    position: relative;
    width: 800px;
    margin: 3rem auto;
    background-color: var(--panel-gray);
    /* Thick, heavy beveled border */
    border: 2px solid var(--window-border);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.2), inset 0 0 2px #555;
    overflow: hidden;
}

#titlebar {
    display: flex;
    align-items: center;
    width: 100%;
    /* Edgy Green-to-Black Gradient with Gloss Effect */
    background: var(--gloss-overlay), var(--title-gradient);
    height: 34px;
    padding: 0 10px;
    border-bottom: 1px solid var(--neon-green);
    box-sizing: border-box;
}

#titlebar-inner {
    flex-grow: 1;
    font-family: "Inter", "Inter", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
    text-align: left;
}

/* Edgy Stylized Buttons */
#minimize, #close {
    margin-left: 6px;
    height: 18px;
    width: 35px; /* Wider, flatter tech look */
    border: 1px solid #444;
    background: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#minimize::after {
    content: "";
    width: 10px;
    height: 1px;
    background: var(--neon-green);
}

#close::after {
    content: "X";
    font-family: monospace;
    font-size: 12px;
    color: #ff0033; /* Aggressive red */
    text-shadow: 0 0 5px #ff0033;
}

#close:hover {
    background: #ff0033;
    border-color: #ffaaaa;
}
#close:hover::after {
    color: white;
}

/* The "Inner Content" Pane */
article {
  background: #0f0f0f; /* Pitch black content area */
  color: #cccccc;
  margin: 10px;
  padding: 20px;
  border: 1px solid #222;
  box-shadow: inset 0 0 10px #000;
  line-height: 1.6;
}

/* Headings inside the edgy window */
h1, h2, h3 {
    color: var(--neon-green);
    font-family: "Inter", sans-serif;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
}

/* Links that glow on hover */
article a {
    color: #00ccff; 
    text-decoration: none;
}

article a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

@media screen and (max-width: 939px) {
    .wrapper {
        width: 100%;
        margin: 0;
        border: 0;
    }
}

/* Layout Container */
.window-body {
    display: flex;
    background: #000;
}

/* Sidebar Styling */
.sidebar {
    width: 180px;
    background: #111;
    border-right: 1px solid #222;
    padding: 15px;
    font-size: 0.8rem;
}

.sidebar h3 {
    font-size: 0.7rem;
    color: #444;
    margin-bottom: 10px;
}

.sidebar a {
    display: block;
    color: var(--neon-green);
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* Status Bar at bottom of window */
.window-status {
    height: 25px;
    background: #1a1a1b;
    border-top: 1px solid #333;
    display: flex;
    font-size: 0.7rem;
    color: #666;
    align-items: center;
    padding: 0 10px;
}

.status-node {
    margin-right: 20px;
    border-right: 1px solid #333;
    padding-right: 20px;
}

/* Scanline Effect Overlay */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 9999;
}

.footer-credits {
    text-align: center;
    color: #555;
    margin-top: 20px;
    font-family: monospace;
}
