body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
}

h1, h2 {
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.status-bar {
    background-color: #eee;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.status-bar b {
    display: inline-block;
    min-width: 80px; /* Ensure alignment */
    text-align: center;
    padding: 2px 5px;
    border-radius: 3px;
}

.status-ok { background-color: #d4edda; color: #155724; }
.status-error { background-color: #f8d7da; color: #721c24; }
.status-warn { background-color: #fff3cd; color: #856404; }
.status-unknown { background-color: #e2e3e5; color: #383d41; }


.section {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-nav {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px; /* Spacing between buttons/text */
}

.file-nav b {
     background-color: #e9ecef;
     padding: 3px 6px;
     border-radius: 3px;
     word-break: break-all; /* Wrap long paths */
}


.item-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
}

.item-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-list li {
    padding: 5px 8px;
    cursor: pointer;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.item-list li:last-child {
     border-bottom: none;
}

.item-list li:hover {
    background-color: #eef;
}

.item-list .item-directory::before { content: '📁 '; }
.item-list .item-file::before { content: '📄 '; }
.item-list .item-other::before { content: '❓ '; }

.item-list .item-name {
     word-break: break-all; /* Handle long names */
}

.contact-details {
    font-size: 0.9em;
    color: #555;
    margin-left: 20px;
}

button {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #0056b3;
}

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

.log-box {
     background-color: #222;
     color: #0f0;
     padding: 10px;
     border-radius: 5px;
     height: 150px;
     overflow-y: scroll;
     font-family: monospace;
     font-size: 0.9em;
     white-space: pre-wrap;
     word-wrap: break-word;
}

#file-actions {
    padding: 10px;
    background-color: #eee;
    border-radius: 4px;
}
#selected-file-info {
     font-style: italic;
     margin-right: 10px;
}
