html, body {
    overflow: hidden;
}

body {
    background: #0050a0;
    min-height: 100vh;
    margin: 0;
    cursor: url('./assets/amiga-cursor.png') 0 0, auto;
}

.amiga-window {
    width: 400px;
    height: 300px;
    /* margin: 40px auto;  <-- Removed to prevent jump on drag */
    border: 3px solid #fff;
    background: #0050a0;
    box-shadow: 0 0 0 2px #000;
    position: absolute;
    font-family: monospace;
    min-width: 180px;
    min-height: 180px;
}


.title-bar {
    background: #fff;
    color: #000;
    height: 28px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #000;
    padding: 0 8px;
    font-weight: bold;
    font-size: 16px;
    user-select: none;
}

.window-icon {
    width: 16px;
    height: 16px;
    background: url('./assets/closeIcon.jpg') no-repeat center center;
    background-size: 16px 16px;
    border: 2px solid #000;
    margin-right: 8px;
    display: inline-block;
}

.window-icon:hover {
    filter: invert(1) hue-rotate(180deg);
    box-shadow: 0 0 4px #fff;
}

.drag-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    margin-left: 8px;
    min-width: 0;
}

.window-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 0;
    margin-right: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bar-lines {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1 1 0;
    min-width: 0;
}

.bar-line {
    width: 100%;
    height: 2px;
    background: none;
    border-bottom: 2px dotted #000;
    margin-bottom: 1px;
    min-width: 0;
}

.amiga-window.selected .bar-line {
    border-bottom: 2px solid #000;
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-close {
    width: 16px;
    height: 16px;
    background: #000;
    border: 2px solid #fff;
    display: inline-block;
}

.window-content {
    display: flex;
    height: calc(100% - 28px - 24px);
    min-height: 0;
    position: relative;
    overflow: hidden; /* Add this */
}

.sidebar,
.scrollbar {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar {
    width: 24px;
    align-items: center;
    background: #fff;
    border-right: 2px solid #000;
}

.sidebar-top {
    background: #002060;
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 2px 0;
}

.sidebar-middle {
    flex: 1;
    background: #fff; /* White by default */
    width: 100%;
    position: relative;
    overflow: hidden;
}

.sidebar-middle .orange-bar {
    position: absolute;
    left: 0;
    width: 100%;
    background: orange;
}

.sidebar-bottom {
    background: #002060;
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 2px 0;
}

.main-area {
    flex: 1;
    background: #0050a0;
    margin-right: 16px;
    min-width: 0;
    overflow: hidden !important; /* Hide native scrollbars */
    /* Optionally: */
    scrollbar-width: none; /* Firefox */
}

.main-area::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.scrollbar {
    width: 16px;
    background: #fff;
    border-left: 2px solid #000;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.scrollbar-thumb {
    width: 12px;
    background: #ffe066;
    border: 2px solid #0a1a3c;
    border-radius: 4px;
    position: absolute;
    left: 2px;
    cursor: pointer;
    min-height: 32px;
    transition: background 0.2s;
}
.scrollbar-thumb:hover {
    background: #fff066;
}

.window-footer {
    height: 24px;
    background: #fff;
    border-top: 2px solid #000;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.resize-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    right: 0;
    bottom: 0;
    cursor: se-resize;
    background: #fff;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    z-index: 10;
}

.amiga-topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 28px;
    background: #fff;
    color: #003070;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 2px solid #000;
    z-index: 1000;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.amiga-topbar-title {
    flex: 1;
}

.amiga-topbar-memory {
    margin-left: auto;
    padding-right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.amiga-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Always 4 per row */
    gap: 32px 24px;
    padding: 16px 0 0 24px;
    height: auto;
    overflow: hidden; /* or auto for scrollbars */
}

.amiga-drawer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px 0 #003070;
    user-select: none;
    width: 80px;
    box-sizing: border-box;
    /* Optional: force max 4 per row */
    flex: 0 0 calc((100% - 3 * 32px - 24px) / 4); /* 4 per row, accounting for gaps and padding */
}

.amiga-drawer-icon img {
    width: 54px;
    height: 20px;
    margin-bottom: 8px;
    image-rendering: pixelated;
}

.amiga-topbar-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    image-rendering: pixelated;
}

.amiga-overlay {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,                                 /* <-- changed from 'to right' */
        rgba(255,255,255,0.07) 0px,
        rgba(255,255,255,0.07) 1px,
        transparent 1px,
        transparent 7px
    );
    mix-blend-mode: lighten;
}

.amiga-drawer-icon.invert img {
    filter: invert(1) hue-rotate(180deg);
    /* Optional: add a glow or border for feedback */
    box-shadow: 0 0 4px #fff;
}

.amiga-toolbar {
    position: fixed;
    top: 28px;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 icons per row */
    gap: 18px;
    background: transparent;
    padding: 12px 16px 0 16px;
    z-index: 10; /* Lower than .amiga-window */
}

.amiga-toolbar-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    text-align: center;
}

.amiga-toolbar-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: pixelated;
    margin-bottom: 4px;
    transition: filter 0.2s;
}

.amiga-toolbar-icon span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #fff;
    text-shadow: 1px 1px 0 #003070;
    margin-top: 0;
    pointer-events: none;
}

.amiga-toolbar-icon:hover img {
    filter: brightness(1.2) drop-shadow(0 0 2px #fff);
}

.amiga-toolbar-icon.invert img {
  filter: invert(1) hue-rotate(180deg);
}

/* Add to your styles.css */
.cv-window .main-area {
    color: #ffe066; /* Soft yellow */
}
.cv-window .main-area a {
  color: #fff;
  text-decoration: underline;
}
.cv-window .main-area a:visited {
  color: #fff;
}
.cv-window .main-area a:hover {
  color: #ffe066; /* Optional: yellow on hover */
}

.hello-window .main-area {
    color: #ffe066;
}
.hello-window .main-area a {
    color: #fff;
    text-decoration: underline;
}
.hello-window .main-area a:visited {
    color: #fff;
}
.hello-window .main-area a:hover {
    color: #ffe066;
}

/* Yellow font for Skills window */
[data-toolbar-id="skills"] .main-area {
  color: #ffe066;
}
[data-toolbar-id="skills"] .main-area a {
  color: #fff;
  text-decoration: underline;
}
[data-toolbar-id="skills"] .main-area a:visited {
  color: #fff;
}
[data-toolbar-id="skills"] .main-area a:hover {
  color: #ffe066;
}

[data-toolbar-id="blogs"] .main-area {
  color: #ffe066;
}
[data-toolbar-id="blogs"] .main-area a {
  color: #fff;
  text-decoration: underline;
}
[data-toolbar-id="blogs"] .main-area a:visited {
  color: #fff;
}
[data-toolbar-id="blogs"] .main-area a:hover {
  color: #ffe066;
}

[data-drawer-id="1"] .main-area {
  color: #ffe066;
}
[data-drawer-id="1"] .main-area a {
  color: #fff;
  text-decoration: underline;
}
[data-drawer-id="1"] .main-area a:visited {
  color: #fff;
}
[data-drawer-id="1"] .main-area a:hover {
  color: #ffe066;
}

.amiga-window.drawer-window .main-area {
  color: #ffe066;
}
.amiga-window.drawer-window .main-area a {
  color: #fff;
  text-decoration: underline;
}
.amiga-window.drawer-window .main-area a:visited {
  color: #fff;
}
.amiga-window.drawer-window .main-area a:hover {
  color: #ffe066;
}