body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #141414;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    background: #171717;
    padding: 5px;
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: #252525;
    color: white;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    transition: background 0.3s;
}

#tabContents {
    width: 100%;
    height: calc(100vh - 40px);
    position: relative;
}

.tab:hover {
    background: #252525;
}

.tab.active {
    background: #303030;
}


.tab .icon {
    width: auto;
    height: 1.2em;
    margin-right: 6px;
    vertical-align: middle; 
}

::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #2c2c2c;
}
::-webkit-scrollbar-thumb {
    background: rgb(30, 30, 30);
}


.tab .icon {
    margin-right: 8px;
}

.tab .close {
    margin-left: 8px;
    background: #252525;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.add-tab {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: #444;
    color: white;
    border-radius: 5px;
    transition: background 0.3s;
}

.add-tab:hover {
    background: #555;
}

.tab-content {
    display: none;
    height: calc(100vh - 50px);
    flex-grow: 1;
    padding: 10px;
    background: #1e1e1e;
}

.tab-content.active {
    display: block;
}

.editor-container {
    height: 100%;
}
