* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Consolas', monospace, 'Poppins', sans-serif;
}

body {
    background-color: #252A38;
    color: #d4d4d4;
    height: 100vh;
    overflow: hidden;
}

.top-bar {
    height: 44px;
    background-color: #252A38;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-logo img {
    border-radius: 6px;
    width: 26px;
    height: 26px;
}

.project-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: #3c3c3c;
    border: none;
    color: #d4d4d4;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
}

.chevron-down {
    font-size: 8px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #252526;
    border: 1px solid #333;
    min-width: 160px;
    z-index: 1000;
}

.project-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 8px 12px;
    color: #d4d4d4;
    cursor: pointer;
    font-size: 12px;
}

.dropdown-item:hover {
    background: #094771;
}

.action-btn {
    background: none;
    border: none;
    color: #d4d4d4;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;

}

.action-btn:hover {
    border-radius: 4px;
    background: #171B26;
}

.icon-btn {
    background: none;
    border: none;
    color: #d4d4d4;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.icon-btn:hover {
    background: #40485D;
}

.top-bar-actions {
    display: flex;
    gap: 2px;
}

.ide-container {
    margin: 0 2px;
    display: flex;
    height: calc(100vh - 70px);
}

.activity-bar {
    margin: 3px;
    width: 33px;
    height: calc(100vh - 78px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

}

.activity-btn {
    display: flex;
    align-items: center;
    border-radius: 5px;
    padding: 6px;
}

.activity-btn.active {
    background-color: #40485D;
}

.activity-btn:hover {
    background-color: #353B4B;
}

/* Sidebar section */
.sidebar {
    margin: 3px;
    min-width: 140px;
    max-width: 220px;
    height: calc(100vh - 78px);
    width: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 10px;
    font-size: 0.9em;
    color: #999;
    background-color: #171B26;
    border-bottom: 1px solid #252A38;
    border-radius: 7px 7px 0 0;
}

.file-tree {
    background-color: #171B26;
    border-radius: 0 0 7px 7px;
    padding: 10px;
    overflow-x: auto;
    overflow-y: auto;
    flex-grow: 1;
}

.file-item {
    white-space: nowrap;
    min-width: fit-content;
}

.file-item {
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-item.active {
    border-radius: 4px;
    background-color: #262B3B;
    color: #fff;
    font-weight: bold;
}

.file-item:hover {
    background-color: #252A38;
}

/* Main content section */
.main-content {
    flex: 1;
    min-width: 300px;
    height: calc(100vh - 78px);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Editor section */
.editor-section {
    margin: 3px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 200px;
}


.editor-tabs {
    background-color: #171B26;
    padding: 5px;
    display: flex;
    gap: 2px;
    height: 40px;
    border-radius: 7px 7px 0 0;
}

.breadcrumb {
    font-size: 13px;
    padding: 7px 5px;
    height: 30px;
    color: #999;
    background-color: #171B26;
    border-bottom: 1px solid #252A38;

}

.tab {
    padding: 8px 15px;
    background-color: #171B26;
    cursor: pointer;
    border: none;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    border-radius: 4px;
    background-color: #262B3B;
    color: #fff;
    font-weight: bold;
}

.editor-container {
    flex-grow: 1;
    padding: 20px;
    background-color: #171B26;
    overflow-y: auto;
    border-radius: 0 0 7px 7px;
}

/* Preview section */
.preview-panel {
    margin: 3px;
    width: 300px;
    height: calc(100vh - 78px);
    /* border-left: 1px solid #252A38; */
    position: relative;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 10px;
    font-size: 0.9em;
    color: #999;
    background-color: #171B26;
    border-radius: 7px 7px 0 0;
    border-bottom: 1px solid #252A38;
    height: 38px;
}

.preview-content {
    background-color: #171B26;
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    border-radius: 0 0 7px 7px;
}

/* Terminal section */
.terminal-section {
    margin: 3px;
    height: 200px;
    min-height: 50px;
    /* border-top: 1px solid #252A38; */
    position: relative;
}

.terminal-resize-handle {
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 10px;
    cursor: ns-resize;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-resize-handle:hover::after {
    content: '';
    height: 2px;
    width: 100%;
    background-color: #0078d4;
}

.terminal-header {
    background-color: #171B26;
    padding: 5px;
    font-size: 12px;
    display: flex;
    gap: 2px;
    border-radius: 7px 7px 0 0;

}

.terminal-content {
    padding: 10px;
    background-color: #171B26;
    color: #d4d4d4;
    font-family: 'Consolas', monospace;
    height: calc(100% - 34px);
    overflow: auto;
    border-radius: 0 0 7px 7px;

}

.terminal-prompt {
    color: #569cd6;
}


/* Resize handles */
.resize-handle {
    position: absolute;
    width: 10px;
    top: 0;
    bottom: 0;
    cursor: ew-resize;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.resize-handle:hover::after {
    content: '';
    width: 2px;
    height: 100%;
    background-color: #0078d4;
}

.resize-handle-left {
    left: -8px;
}

.resize-handle-right {
    right: -8px;
}

/* Project content styles */
.project-content {
    display: none;
    padding: 20px;
    line-height: 1.6;
}

.project-content.active {
    display: block;
}

.project-content h2 {
    color: #569cd6;
    margin-bottom: 15px;
}

.project-content p {
    margin-bottom: 10px;
}

.project-content a {
    color: #4ec9b0;
    text-decoration: none;
}

.project-content a:hover {
    text-decoration: underline;
}

.bottom-bar {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    height: 24px;
    background-color: #353B4B;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.bottom-bar-left,
.bottom-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bottom-bar-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    height: 100%;
    border-right: 1px solid #ffffff22;
  }

  .bottom-bar-item:hover {
    
    margin: 0;
    background-color: #0088e2;
    cursor: pointer;
  }

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: transparent;
    margin: 5px;  /* Add margin to top and bottom */
}

::-webkit-scrollbar-thumb {
    background: #66676b;
    border-radius: 5px;
    border: 3px solid transparent;  /* Creates padding effect */
    background-clip: content-box;   /* Ensures background only shows in content area */
}

::-webkit-scrollbar-thumb:hover {
    background: #4D4E51;
    border: 3px solid transparent;
    background-clip: content-box;
}