/* ===== WebFTP ===== */
.webftp {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-family: system-ui, -apple-system, Arial, sans-serif;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

/* Header */
.webftp-header {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
}
.webftp-header .logo {
    margin-right: 10px;
    font-size: 20px;
}

/* Content */
.webftp-content {
    display: flex;
    min-height: 420px;
}

/* Left Panel */
.left-panel {
    width: 280px;
    border-right: 1px solid #e5e5e5;
    padding: 8px;
    background: #f7f9fc;
}

.left-panel ul.webftp-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 520px;
    overflow-y: auto;
}

.left-panel ul.webftp-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .2s, box-shadow .2s;
}

.left-panel ul.webftp-menu li:hover {
    background: #e3f2fd;
    box-shadow: inset 0 0 0 1px #bbdefb;
}

.left-panel ul.webftp-menu li a {
    text-decoration: none;
    color: #263238;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.left-panel ul.webftp-menu li a i {
    color: #1976d2;
}

/* checkbox */
.left-panel input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}

/* Right Panel */
.right-panel {
    flex: 1;
    padding: 16px;
    background: #ffffff;
}

.right-panel h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #37474f;
}

/* Buttons (nie form!) */
.right-panel button,
.webftp-footer input {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.right-panel button:hover,
.webftp-footer input:hover {
    background: #125ea9;
    transform: translateY(-1px);
}

/* Edytor */
.right-panel.edit-view textarea {
    width: 100%;
    height: 420px;
    font-family: Consolas, monospace;
    font-size: 13px;
    padding: 10px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fafafa;
}

.right-panel .editor-actions {
    margin-top: 10px;
}

/* Footer */
.webftp-footer {
	justify-content: flex-end;
    padding: 10px 15px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 10px;
    background: #fafafa;
}

/* Wiadomości */
.msg {
    background: #e8f5e9;
    color: #1b5e20;
    border-left: 4px solid #43a047;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

/* ===== WebFTP Dark Mode ===== */
.webftp {
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    font-family: system-ui, -apple-system, Arial, sans-serif;
    background: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0,0,0,.5);
}

/* Header */
.webftp-header {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
}
.webftp-header .logo {
    margin-right: 10px;
    font-size: 20px;
}

/* Content */
.webftp-content {
    display: flex;
    min-height: 420px;
}

/* Left Panel */
.left-panel {
    width: 280px;
    border-right: 1px solid #444;
    padding: 8px;
    background: #2c2c2c;
}

.left-panel ul.webftp-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 520px;
    overflow-y: auto;
}

.left-panel ul.webftp-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .2s, box-shadow .2s;
}

.left-panel ul.webftp-menu li:hover {
    background: #3949ab33; /* lekki niebieski z przezroczystością */
    box-shadow: inset 0 0 0 1px #5c6bc0;
}

.left-panel ul.webftp-menu li a {
    text-decoration: none;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.left-panel ul.webftp-menu li a i {
    color: #64b5f6;
}

/* checkbox */
.left-panel input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}

/* Right Panel */
.right-panel {
    flex: 1;
    padding: 16px;
    background: #252525;
    color: #e0e0e0;
}

.right-panel h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #ffffff;
}

/* Buttons (nie form!) */
.right-panel button,
.webftp-footer input {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.right-panel button:hover,
.webftp-footer input:hover {
    background: #125ea9;
    transform: translateY(-1px);
}

/* Edytor */
.right-panel.edit-view textarea {
    width: 100%;
    height: 420px;
    font-family: Consolas, monospace;
    font-size: 13px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1e1e1e;
    color: #e0e0e0;
}

.right-panel .editor-actions {
    margin-top: 10px;
}

/* Footer */
.webftp-footer {
    justify-content: flex-end;
    padding: 10px 15px;
    border-top: 1px solid #444;
    display: flex;
    gap: 10px;
    background: #2c2c2c;
}

/* Wiadomości */
.msg {
    background: #2e7d32;
    color: #c8f5c5;
    border-left: 4px solid #43a047;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}
/* ===== WebFTP Dark Modern ===== */
.webftp {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    font-family: system-ui, -apple-system, Arial, sans-serif;
    background: #181818;
    box-shadow: 0 4px 12px rgba(0,0,0,.7);
}

/* Header */
.webftp-header {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
}
.webftp-header .logo {
    margin-right: 10px;
    font-size: 20px;
}

/* Content */
.webftp-content {
    display: flex;
    min-height: 420px;
}

/* Left Panel */
.left-panel {
    width: 280px;
    border-right: 1px solid #333;
    padding: 8px;
    background: #1f1f1f;
}

.left-panel ul.webftp-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 520px;
    overflow-y: auto;
}

.left-panel ul.webftp-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .2s, box-shadow .2s;
}

.left-panel ul.webftp-menu li:hover {
    background: #2c2c2c;
    box-shadow: inset 0 0 0 1px #1976d2;
}

.left-panel ul.webftp-menu li a {
    text-decoration: none;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.left-panel ul.webftp-menu li a i {
    color: #4fc3f7;
}

/* checkbox */
.left-panel input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}

/* Right Panel */
.right-panel {
    flex: 1;
    padding: 16px;
    background: #212121;
    color: #e0e0e0;
}

.right-panel h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #ffffff;
}

/* Buttons */
.right-panel button,
.webftp-footer input {
    background: #4fc3f7;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.right-panel button:hover,
.webftp-footer input:hover {
    background: #29b6f6;
    transform: translateY(-1px);
}

/* Edytor */
.right-panel.edit-view textarea {
    width: 100%;
    height: 420px;
    font-family: Consolas, monospace;
    font-size: 13px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1c1c1c;
    color: #e0e0e0;
}

.right-panel .editor-actions {
    margin-top: 10px;
}

/* Footer */
.webftp-footer {
    justify-content: flex-end;
    padding: 10px 15px;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
    background: #1f1f1f;
}

/* Wiadomości */
.msg {
    background: #388e3c;
    color: #e8f5e9;
    border-left: 4px solid #43a047;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}
