:root {
    --bg: #050515;
    --panel-bg: var(--bg);
    --fg: #c0c0c0;

    /* Green Accent */
    --accent: #98c379;
    --accent-dim: #98c37944;

    /* Purple Accent */
    /* --accent: #c678dd;
    --accent-dim: #c678dd44; */

    /* Yellow/Orange */
    /* --highlight: #e5c07b; */
    /* --highlight: var(--yellow-bright); */
    --highlight: var(--orange);
    --border: #3e4451;
    --border-focus: #98c379;
    /* --border-focus: var(--magenta-bright); */
    /* --font-mono: 'Courier New', Courier, monospace; */
    --font-mono: 'Google Sans Mono';
    /* --font-mono: 'Ubuntu Mono'; */
    /* Blue for buttons */
    --button-bg: #61afef;

    /* For the status bar */
    --footer-bg: #21262d;
    --footer-fg: var(--fg);

    /* Colors from my terminal */
    --black: #000000;
    --red: #cc0403;
    --green: #19cb00;
    --yellow: #cecb00;
    --blue: #0d73cc;
    --magenta: #cb1ed1;
    --cyan: #0dcdcd;
    --white: #dddddd;
    --black-bright: #767676;
    --red-bright: #f2201f;
    --green-bright: #23fd00;
    --yellow-bright: #fffd00;
    --blue-bright: #1a8fff;
    --magenta-bright: #fd28ff;
    --cyan-bright: #14ffff;
    --white-bright: #ffffff;
    /* Other colors */
    --orange: #ff8c42;
    --red-other: #ff4e44;
    --pink: #ff6b9d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}

ol, ul {
    /* default list styles */
    padding-left: 20px;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-mono);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.img {
    max-width: 100%;
    height: auto;
    padding: 10px;
    border: 2px solid var(--accent-dim);
}

.span {
    /* color: var(--accent); */
    /* color: var(--cyan); */
    /* font-weight: bold; */
    font-weight: normal;
}

/* :nth-child(7n of .span)   {color: var(--red);}
:nth-child(7n+1 of .span) {color: var(--green);}
:nth-child(7n+2 of .span) {color: var(--yellow);}
:nth-child(7n+3 of .span) {color: var(--blue);}
:nth-child(7n+4 of .span) {color: var(--magenta);}
:nth-child(7n+5 of .span) {color: var(--cyan);}
:nth-child(7n+6 of .span) {color: var(--white);} */

/* html:nth-of-type(7n of .span)   {color: var(--red);}
html:nth-of-type(7n+1 of .span) {color: var(--green);}
html:nth-of-type(7n+2 of .span) {color: var(--yellow);}
html:nth-of-type(7n+3 of .span) {color: var(--blue);}
html:nth-of-type(7n+4 of .span) {color: var(--magenta);}
html:nth-of-type(7n+5 of .span) {color: var(--cyan);}
html:nth-of-type(7n+6 of .span) {color: var(--white);} */

.inline-icon {
    height: 1em;
    width: 1em;
    /* Adjusts vertical alignment to match text baseline */
    vertical-align: -0.125em;
}

svg.inline-icon {
    /* Make fill inherit the text color */
    fill: currentColor;
}

.container {
    display: flex;
    flex: 1;
    gap: 10px;
    height: calc(100% - 30px);
}

.intern-company {
    text-decoration: underline;
}

.list-item:not(.active-item) > span.intern-company {
    color: var(--highlight);
}


/* --- Sidebar Stack Layout --- */
.sidebar {
    width: 13%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Stop it from shrinking if a line of code in the main content is too long */
    flex-shrink: 0;
}

.panel-box {
    border: 1px solid var(--border);
    background: var(--panel-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 10px;
    /* Space for content below top border */
    padding-bottom: 2px;
    margin-bottom: 10px;
    transition: border-color 0.1s;
}

/* The Title Label - Pops out of the border */
.panel-title {
    position: absolute;
    top: -9px;
    /* Moves it up to sit on the border */
    left: 10px;
    background: var(--bg);
    /* Mask the border behind text */
    padding: 0 5px;
    color: #5c6370;
    font-size: 0.85em;
    font-weight: bold;
    white-space: nowrap;
    z-index: 20;
    /* Ensure it sits on top */
}

.panel-footer, .panel-footer-bg {
    position: absolute;
    bottom: -9px;
    right: 10px;
    background: var(--bg);
    padding: 0 7px;
    color: #5c6370;
    font-size: 0.85em;
    font-weight: bold;
    white-space: nowrap;
    z-index: 30;
}

/* Logic for that transparent thingy */
/* .panel-footer {
    color: var(--fg);
    background: transparent;
}

.panel-footer-bg {
    color: transparent;
    background: var(--bg);
    z-index: 20;
} */

/* Active Panel Logic */
.panel-box.active-panel {
    border-color: var(--fg);
}

/* Menu Focused State (Green Border) */
.sidebar.focused .panel-box.active-panel {
    border-color: var(--border-focus);
    box-shadow: 0 0 5px var(--accent-dim);
}

.sidebar.focused .panel-box.active-panel .panel-title {
    color: var(--accent);
}

/* Main View Focus */
.main-view {
    width: 87%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    position: relative;
    margin-bottom: 10px;
}

.main-view.focused {
    border-color: var(--border-focus);
    box-shadow: 0 0 5px var(--accent-dim);
}

.main-view.focused .panel-title {
    color: var(--accent);
}

/* --- Panel Sizing & Scrolling Fix --- */

/* Auto-height panels */
#panel-0, #panel-1, #panel-2, #panel-4 {
    flex: 0 0 auto;
}

/* Have a multiplication dot before items */
/* #panel-0 .list-item:not(.active-item)::before {content: "* ";} */
/* #panel-1 .list-item:not(.active-item)::before {content: "* ";} */
#panel-2 .list-item:not(.active-item)::before {content: "* ";}

/* Skills Panel: Takes remaining space */
#panel-3 {
    flex: 1;
    min-height: 0;
    /* FIX: Visible so title doesn't clip */
    overflow: visible;
}

/* Inner scroll container for Skills */
.scroll-container {
    overflow-y: auto;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Hide Scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for WebKit browsers (ie Chrome, Safari, and Opera) */
.scroll-container::-webkit-scrollbar {display: none;}

/* --- List Items --- */
.list-item {
    padding: 2px 10px;
    cursor: pointer;
    /* border-left: 3px solid transparent; */
    /* white-space: nowrap; */
    /* overflow: hidden; */
    /* overflow-wrap: break-word; */
    /* text-overflow: ellipsis; */
    /* color: #5c6370; */
}

.list-item.active-item {
    background-color: var(--border);
    color: var(--highlight);
    font-weight: bold;
    z-index: 25;
    /* border-left: 3px solid var(--highlight); */
}

/* Add a > before the selected item */
.list-item.active-item::before {content: "> ";}
/* .panel-box.active-panel .list-item.active-item::after  {content: " <";} */

/* Non-active panels: Look completely normal (No highlight) */
/* .panel-box:not(.active-panel) .list-item.active-item {
    background-color: transparent;
    border-left: 3px solid transparent;
} */

/* --- Right Side Content --- */
#content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg);
    font-size: 0.95rem;
    line-height: 1.6;
}

.content-block {
    display: none;
}

.content-block.active {
    display: block;
    animation: fadeIn 0.1s ease-in;
}

/* Typography */
h1 {
    color: var(--accent);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

h2 {
    color: var(--highlight);
    margin-top: 20px;
    margin-bottom: 10px;
}

h3 {
    color: #61afef;
    margin-bottom: 5px;
}

p {
    margin-bottom: 15px;
}

.date {
    color: #5c6370;
    font-size: 0.8em;
    margin-bottom: 10px;
    display: block;
}

.ul.details {
    list-style: none;
    margin-left: 10px;
}

.ul.details .li::before {
    content: "> ";
    color: var(--accent);
}

a {
    color: #61afef;
    text-decoration: none;
    border-bottom: 1px dashed #61afef;
}

/* a > i {
    color: var(--fg);
} */


pre {
    border: 1px solid var(--border);
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

table th, table td {
    border: 1px solid var(--border);
    padding: 8px;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #131313;
}


blockquote {
    border-left: 0.25em solid var(--border);
    color: #6a737d;
    padding-left: 1em;
    margin-left: 0;
}

.button-group {
    margin: 10px 0;
}

.button-group a {
    display: inline-block;
    background: var(--button-bg);
    color: var(--bg);
    font-weight: bold;
    text-decoration: none;
    margin-right: 5px;
    padding: 5px 10px;
    transition: 0.3s;
    /* Center everything vertically center */
    /* display: flex;
    align-items: center; */
}

.button-group a i {
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.button-group a:hover {
    background: var(--highlight);
    transform: translateY(-2px);
}

.terminal-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
    color: #e06c75;
}

.footer {
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--footer-bg);
    color: var(--footer-fg);
    font-weight: bold;
    font-size: 0.9em;
    justify-content: space-between;
}

.keybinds span {
    margin-right: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* FULL AI */
/* 1. Position the button correctly (Top-Right) */
div.code-toolbar > .toolbar {
    opacity: 1; /* Always visible like GitHub, or use 0 to hide until hover */
    top: 0.5em;
    right: 0.65em;
}

/* 2. Style the button itself */
div.code-toolbar > .toolbar > .toolbar-item > button {
    color: #6e7681;               /* GitHub Grey */
    background: transparent;      /* No background */
    border: 1px solid #d0d7de;    /* Subtle border */
    border-radius: 6px;           /* Rounded corners */
    padding: 5px 10px;
    font-size: 0;                 /* Hides the text "Copy" */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    
    /* Set fixed size for the icon */
    width: 32px;
    height: 32px;
    
    /* Insert the Clipboard Icon via SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%236e7681'%3E%3Cpath fill-rule='evenodd' d='M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z'%3E%3C/path%3E%3Cpath fill-rule='evenodd' d='M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: none;
}

/* 3. Hover Effect */
div.code-toolbar > .toolbar > .toolbar-item > button:hover {
    background-color: #f3f4f6;    /* Light grey hover */
    border-color: #1f2328;        /* Darker border on hover */
}

/* 4. "Copied!" Success State (Green Checkmark) */
div.code-toolbar > .toolbar > .toolbar-item > button[data-copy-state="copy-success"] {
    border-color: #2da44e;        /* Green Border */
    
    /* Insert Checkmark Icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%232da44e'%3E%3Cpath fill-rule='evenodd' d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'%3E%3C/path%3E%3C/svg%3E");
}

/* DARK MODE ADJUSTMENTS (Optional) */
/* @media (prefers-color-scheme: dark) {
    div.code-toolbar > .toolbar > .toolbar-item > button {
        border-color: #30363d;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%238b949e'%3E%3Cpath fill-rule='evenodd' d='M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z'%3E%3C/path%3E%3Cpath fill-rule='evenodd' d='M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z'%3E%3C/path%3E%3C/svg%3E");
    }
    div.code-toolbar > .toolbar > .toolbar-item > button:hover {
        background-color: #21262d;
        border-color: #8b949e;
    }
} */



/* Old stuff used in other projects, need to update the other projects to remove this */
:root {
    --bg-color: rgb(20,20,20);
    --fg-color: rgb(255,255,255);
}
