img.main-logo {
    width: 80px; 
    height: 80px;
}

body {
    background-color: #1a1a1a;
    color: #e5e7eb;
    font-family: 'Roboto', 'Verdana', sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
}

.sidebar {
    background-color: #2a2a2a;
    padding: 20px;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid #3f3f46;
}

.sidebar h1 {
    font-size: 1.5rem;
    color: #e5e7eb;
    margin-bottom: 20px;
}

.nav-link {
    background: none;
    border: none;
    color: #e5e7eb;
    text-align: left;
    padding: 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #3b3b3b;
    color: #ffc94d;
}

.sidebar-footer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    margin-left: 10px;
    font-size: 0.9em;
    color: #888;
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-content {
    background-color: #2a2a2a;
    border: 1px solid #3f3f46;
    border-radius: 2px;
    padding: 24px;
    margin-bottom: 20px;
}

.section-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffc94d;
    margin-top: 5px;
    margin-bottom: 15px;
}

.section-content ul {
    list-style-type: none;
    padding: 0;
}

.section-content a {
    color: #e5e7eb;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 15px;
    margin-bottom: 15px;
}

button {
    padding: 10px 20px;
    border-radius: 2px;
    border: none;
    color: #2a2a2a;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-family: 'Roboto', 'Verdana', sans-serif;
}

.btn-normal {
    background-color: #d1d5db;
}

.btn-normal:hover {
    background-color: #ffc94d;
}

.btn-red {
    background-color: #d1d5db;
}

.btn-red:hover {
    background-color: #e05858;
}

.scroll-box {
    overflow-y: auto;
    background-color: #1a1a1a;
    padding: 12px;
    border-radius: 2px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #d1d5db;
}

.files-list {
    max-height: 300px;
}

.files-list a {
    color: #e5e7eb;
    text-decoration: none;
}

.files-list a:hover {
    color: #ffc94d;
    text-decoration: underline;
}

.logs-viewer {
    max-height: 65vh;
}

.config-editor {
    background-color: #1a1a1a;
    padding: 12px;
    border: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d1d5db;
    resize: none;
    width: 95%;
    min-height: 300px;
    height: 100%;
    padding: 12px;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: scroll;
}

.manager-config-form li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.manager-config-form li.input-error {
    background-color: #e05858;
}

.manager-config-form input {
    border-style: none;
    outline: none;
    background-color: #1a1a1a;
    color: #d1d5db;
    font-family: 'Roboto', 'Verdana', sans-serif;
}

.manager-config-form input:focus {
    border-style: none;
    outline: none;
    color: #ffc94d;
}

.manager-config-form input[type=text], .manager-config-form input[type=password] {
    flex: 1;
    width: auto;
}

.error-message {
    background-color: #e05858;
    color: #1a1a1a;
    padding: 5px;
    border-radius: 2px;
    width: fit-content;
}

.warning-message {
    background-color: #ffc94d;
    color: #1a1a1a;
    padding: 5px;
    border-radius: 2px;
    width: fit-content;
}

.info-message {
    background-color: #31ad88;
    color: #1a1a1a;
    padding: 5px;
    border-radius: 2px;
    width: fit-content;
}

.foldable-section {
    margin-bottom: 10px;
    overflow: hidden;
}

.foldable-section summary {
    cursor: pointer;
    font-size: 1.2em;
}

.foldable-section summary:hover {
    color: #ffc94d;
}

.spinner {
    max-height: 20px;
    max-width: 20px;
}

.working {
    display: none;
    transition: display 500ms ease-in;
}

.htmx-request .working {
    display: block;
}
.htmx-request.working {
    display: block;
}
