/* === Toolyak FTP Browser Styles === */

#toolyak-ftp-browser {
  font-family: Arial, sans-serif;
  max-width: 950px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#toolyak-ftp-browser h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #222;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 6px;
}

#ftp-breadcrumb {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

#ftp-breadcrumb button {
  margin-right: 10px;
  padding: 6px 12px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease-in-out;
}

#ftp-breadcrumb button:hover {
  background: #005177;
}

#ftp-current-path {
  font-weight: bold;
  color: #333;
}

.ftp-list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.ftp-list th, .ftp-list td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.ftp-list th {
  background: #f4f4f4;
  color: #222;
  font-weight: 600;
}

.ftp-list tr:nth-child(even) {
  background: #fafafa;
}

.ftp-list td button {
  margin: 0 3px;
  padding: 5px 10px;
  background: #0073aa;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.2s ease-in-out;
}

.ftp-list td button:hover {
  background: #005177;
}

.ftp-folder.clickable {
  color: #0073aa;
  cursor: pointer;
  font-weight: bold;
}

.ftp-folder.clickable:hover {
  text-decoration: underline;
}

/* Icons for better alignment */
.ftp-folder::before {
  margin-right: 6px;
}

.ftp-list td {
  white-space: nowrap;
}

#ftp-file-list p {
  margin: 10px 0;
  color: #555;
  font-size: 14px;
  text-align: center;
}
/* ================================
   FTP File Browser Styles
   ================================ */
.ftp-browser {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.ftp-browser h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

/* File List */
.ftp-browser ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ftp-browser ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.ftp-browser ul li:hover {
  background: #f9f9f9;
}

/* File & Folder names */
.ftp-browser .item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #444;
}

/* Icons */
.ftp-browser .icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.ftp-browser .icon.folder {
  background: url('https://cdn-icons-png.flaticon.com/512/716/716784.png') no-repeat center/contain;
}

.ftp-browser .icon.file {
  background: url('https://cdn-icons-png.flaticon.com/512/337/337946.png') no-repeat center/contain;
}

/* Back Button */
.ftp-browser .back-btn {
  display: inline-block;
  margin-bottom: 15px;
  padding: 8px 16px;
  background: #0073e6;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.ftp-browser .back-btn:hover {
  background: #005bb5;
}

/* Delete Button */
.ftp-browser .delete-btn {
  padding: 5px 12px;
  background: #e63946;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}

.ftp-browser .delete-btn:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

