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

body {
    font-family: Arial, sans-serif;

    height: 100vh;
    margin: 0;

    background-color: #0d1117;
    color: #f0f6fc;

    overflow: hidden;
}
/* Header */
.topbar {
    height: 60px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: #172840;
    border-bottom: 1px solid #30363d;

    position: sticky;
    top: 0;
    z-index: 100;
}


/* Brand */ 

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon img {
    width: 60px;
    height: 50px;
    object-fit: contain;
}

.brand h1 {
    font-size: 18px;
    font-weight: 600;
    color: #f0f6fc;
}


/* Header*/

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background-color: transparent;
    color: #8b949e;
    cursor: pointer;
}
.header-button img {
    width: 18px;
    height: 18px;
    border-radius: 30px;
    object-fit: contain;
}

.header-button:hover {
    background: #21262d;
    color: #f0f6fc;
    border-radius: 10px;
}

main {
    display: flex;
    height: calc(100vh - 60px);
    min-height: 0;
    overflow: hidden;
}

/* Toolbar */
.toolbar {
    width: 260px;
    min-width: 260px;
    height: 100%;
    padding: 16px;
    background-color: #161b22;
    border-right: 1px solid #30363d;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: #6e7681 transparent;
}

.toolbar::-webkit-scrollbar {
    width: 8px;
}

.toolbar::-webkit-scrollbar-thumb {
    background: #6e7681;
    border-radius: 8px;
}

/* Sidebar title */

.toolbar-header {
    margin-bottom: 20px;
}

.toolbar-header h2 {
    font-size: 25px;
}

/* Search */
.search-box{
  margin-bottom: 5px;
}
.search-box input {
    width: 100%;
    padding: 10px 12px;
    background-color: #0d1117;
    color: #f0f6fc;
    border: 1px solid #30363d;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.search-box input::placeholder {
    color: #6f7b8c;
}
.search-box input:focus {
    border-color: #58a6ff;
}

/* Tool categories */

.tool-category {
    margin-bottom: 22px;
}

.tool-category h3 {
    margin-bottom: 6px;
    color: #6e7681;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Tool buttons */

.tool-category button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 7px;
    background-color: transparent;
    color: #8b949e;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.tool-category button:hover {
    background-color: #21262d;
    color: #f0f6fc;
}

/* WorkSpace */
.workspace {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 40px 40px;
    background-color: #0d1117;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    min-height: 0;
}

.workspace > * {
    width: 100%;
    max-width: 1000px;
}


.welcome-screen {
    text-align: center;
    max-width: 500px;
}

.welcome-screen h2 {
    font-size: 32px;
    margin-bottom: 10px;

    color: #f0f6fc;
}

.welcome-screen p {
    font-size: 18px;
    margin-bottom: 10px;

    color: #8b949e;
}

.welcome-screen span {
    font-size: 14px;

    color: #6e7681;
}
/* ========================================
   LIGHT MODE
   ======================================== */

body.light-mode {
    background-color: #ffffff;
    color: #24292f;
}

body.light-mode .topbar {
    background-color: #f6f8fa;
    border-bottom-color: #d0d7de;
}

body.light-mode .sidebar {
    background-color: #f6f8fa;
    border-right-color: #d0d7de;
}

body.light-mode .workspace {
    background-color: #ffffff;
}

body.light-mode .brand h1 {
    color: #24292f;
}

body.light-mode .search-box input {
    background-color: #ffffff;
    color: #24292f;
    border-color: #d0d7de;
}

body.light-mode .tool-category button,
body.light-mode .quick-links button {
    color: #57606a;
}

body.light-mode .tool-category button:hover,
body.light-mode .quick-links button:hover {
    background-color: #eaeef2;
    color: #24292f;
}

body.light-mode .tool-category h3 {
    color: #6e7781;
}

body.light-mode .welcome-screen h2 {
    color: #24292f;
}

body.light-mode .welcome-screen p {
    color: #57606a;
}

body.light-mode .welcome-screen span {
    color: #6e7781;
}