body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f0f0f0;
    overflow: hidden;
}

/* --- Toolbar Area --- */
.toolbar {
    background-color: #f0f0f0;
    border-bottom: 1px solid #a0a0a0;
    padding: 5px;
    flex-shrink: 0; /* Prevent toolbar from shrinking */
}

.icon-group {
    display: inline-block;
    border-right: 1px solid #ccc;
    padding-right: 10px;
    margin-right: 10px;
    vertical-align: top;
}

.icon-group i, .icon-group a {
    font-size: 18px;
    color: #444;
    padding: 5px 8px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.icon-group i:hover, .icon-group a:hover {
    background-color: #e0e0e0;
    border: 1px solid #bbb;
    border-radius: 3px;
}

.log-window {
    background: #fff;
    border: 1px solid #888;
    height: 50px;
    margin-top: 5px;
    padding: 3px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    overflow-y: auto;
    color: #000;
}

/* --- Main Split View --- */
.main-split {
    display: flex;
    flex: 1; /* Takes up remaining space */
    padding: 2px;
    background: #e0e0e0;
    min-height: 200px;
}

.pane {
    flex: 1;
    background: white;
    border: 1px solid #999;
    margin: 2px;
    display: flex;
    flex-direction: column;
}

.pane-header {
    background: #f0f0f0;
    padding: 5px;
    font-size: 12px;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Transfer Window (New) --- */
.transfer-pane {
    height: 150px; /* Fixed height for transfer window */
    background: white;
    border-top: 1px solid #999;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    flex-shrink: 0;
}

.small-header {
    padding: 3px 5px;
    background: #e6e6e6;
}

.transfer-header {
    display: flex;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    padding: 2px 5px;
    font-weight: bold;
}

.transfer-list {
    flex: 1;
    overflow-y: auto;
    background: #fff;
}

.transfer-row {
    display: flex;
    padding: 3px 5px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress Bar Styles */
.progress-container {
    width: 95%;
    background-color: #ddd;
    border-radius: 3px;
    height: 10px;
    border: 1px solid #ccc;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #3498db; /* Blue */
    transition: width 0.2s;
}

/* --- Common UI Elements --- */
.header-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    padding: 2px 5px;
}
.header-btn:hover { background-color: #e0e0e0; border: 1px solid #aaa; border-radius: 3px; }

/* File Table */
.file-table-header { display: flex; background: #f9f9f9; border-bottom: 1px solid #ddd; font-size: 11px; padding: 3px 0; font-weight: bold; }
.file-table-header div { padding: 0 5px; border-right: 1px solid #e0e0e0; }

.col-name { flex: 3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.col-size { width: 70px; text-align: right; }
.col-date { width: 110px; text-align: right; }
.col-perm { width: 70px; text-align: center; }
.col-action { width: 50px; text-align: center; }

.file-row { display: flex; font-size: 12px; padding: 2px 0; cursor: default; }
.file-row:hover { background-color: #cce8ff; }
.file-row div { padding: 0 5px; }
.file-row a { color: #555; margin: 0 3px; }
.file-row a:hover { color: #000; }
.del-btn:hover { color: red !important; }

/* Drop Zone */
.drop-zone {
    display: flex; justify-content: center; align-items: center;
    background-color: #fafafa; cursor: pointer; transition: 0.2s;
}
.drop-message { text-align: center; color: #aaa; pointer-events: none; }
.drag-active { background-color: #e8f4ff; border: 2px dashed #3498db; }

/* Status Bar */
.status-bar {
    background: #f0f0f0; border-top: 1px solid #a0a0a0; padding: 2px 5px;
    font-size: 11px; color: #333; display: flex; gap: 15px; flex-shrink: 0;
}