body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #2c2c2c;
    color: #f0f0f0;
    overflow: hidden;
}

.file-manager-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projects {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.bi {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.pingbutton {
    padding: 6px 15px;
}

.ping {
    width: 15px;
    height: 15px;
    background: red;
    border-radius: 40%;
    display: inline-block;
}
.app-container {
    display: flex;
    height: 100vh;
}

.panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#file-manager {
    flex: 0 0 250px;
    min-width: 150px;
    background-color: #1e1e1e;
    border-right: 1px solid #444;
}

.file-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding: 10px;
}

#file-manager h2 {
    margin: 0;
    padding: 0;
    border: none;
}

#save-button {
    background-color: #007acc;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#save-button:hover:not(:disabled) {
    background-color: #0098e6;
}

#save-button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#file-tree {
    padding: 10px;
    overflow-y: auto;
}

.project-container {
    margin-bottom: 10px;
}

.project-name {
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.1em;
    cursor: pointer;
    position: relative;
    padding-left: 20px;
    user-select: none;
}

.project-name::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    border: 5px solid transparent;
    border-left-color: #cccccc;
    transition: transform 0.2s;
}

.project-name.collapsed::before {
    transform: translateY(-50%) rotate(0deg);
}

.project-files {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.project-files.collapsed {
    max-height: 0;
}

.file-name {
    padding-left: 20px;
    cursor: pointer;
    line-height: 1.8;
    color: #cccccc;
    white-space: nowrap;
}

.file-name:hover {
    background-color: #333;
    color: #ffffff;
}

/* NEW! Styles for the nested right-side container */
#right-content {
    flex: 1 1 auto; /* Take up the rest of the space */
    display: flex; /* Make it a flex container for its children */
    flex-direction: row; /* Arrange children horizontally */
}

#editor-container {
    flex: 1 1 50%;
    min-width: 200px;
}

#preview-container {
    flex: 1 1 50%;
    border-left: 1px solid #444;
    min-width: 200px;
}

#preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
}

.resizer {
    background-color: #444;
    cursor: col-resize;
    flex: 0 0 5px;
    z-index: 10;
}

.resizer:hover {
    background-color: #007acc;
}