footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	text-align: center;
	margin: 150px 0px 0px 0px;
	padding: 15px 0px 15px 0px;
}

body {
	font-family: sans-serif;
	background: #f5f7fa;
	padding: 20px 20px 80px 20px;
}

.drop-hover {
	outline: 2px dashed #007bff;
	background-color: #e6f0fa;
	border-radius: 8px;
}

.folder-row.drop-hover {
	outline: 2px dashed #007bff;
	background-color: #e6f0fa;
	border-radius: 8px;
}

.folder-row {
	position: relative;
	cursor: pointer;
	padding: 10px;
	border-radius: 8px;
}

.folder-row:hover {
	background-color: #e6f0fa;
	border-radius: 8px;
}

.subfolders {
	position: relative;
	cursor: pointer;
	padding: 0px;
}

.file-actions form {
	display: inline;
}

#drop-area {
	border: 2px dashed #888;
	padding: 20px;
	border-radius: 10px;
	background: #fff;
	text-align: center;
	margin-top: 20px;
	height: 150px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

#drop-area.highlight {
	background-color: #d0ebff;
	border-color: #339af0;
}

button {
	background: #cccccc;
	color: #fff;
	border: none;
	padding: 6px 12px;
	margin: 2px;
	border-radius: 2px;
	cursor: pointer;
}

button:hover {
	background: #339af0;
}

.filename {
	flex: 1;
	text-align: left;
	display: flex;
	align-items: center;
}

.file-actions {
	flex-shrink: 0;
}

.folder-row.selected-folder {
	font-weight: bold;
	background: #e6f0fa;
}

td img {
	max-height: 40px;
	max-width: 60px;
	vertical-align: middle;
	margin-right: 8px;
	border-radius: 4px;
}

a {
	color: #000000;
	text-decoration: none;
}

a:hover {
	text-decoration: none;
	color: #0056b3;
}

tbody tr {
	border-bottom: 1px solid #ccc;
}

tbody tr:hover {
	background-color: #eef2f5;
}

tbody tr[data-href] {
	cursor: pointer;
}

tbody tr[data-href]:hover {
	background-color: #eef2f5;
}

tr.dragging {
	opacity: 0.5;
	background-color: #cce5ff !important;
}

tr.drop-target {
	outline: 2px dashed #007bff;
	background-color: #e6f0fa;
}

tr.selected {
	background-color: #cde5ff !important;
}

.context-menu {
	position: absolute;
	background: #fff;
	border: 1px solid #ccc;
	display: none;
	z-index: 1000;
	box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.context-menu button {
	display: block;
	width: 200px;
	background: none;
	border: none;
	padding: 8px 12px;
	text-align: left;
	cursor: pointer;
	color: #000;
}

.context-menu button:hover {
	background: #339af0;
}

.context-menuBar {
	position: flex;
	display: inline;
	z-index: 1000;
}

.context-menuBar button:hover {
	background: #339af0;
}

.context-menuBarParent {
	position: flex;
	display: inline;
	margin-left: 5px;
	margin-right: 5px;
	z-index: 1000;
}

.spinner {
	width: 48px;
	height: 48px;
	border: 5px solid #ccc;
	border-top-color: #333;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

#lightbox {
	display: none;
	position: fixed;
	z-index: 9999;
	top: 0; left: 0;
	width: 100vw; height: 100vh;
	background: rgba(0, 0, 0, 0.85);
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

#lightbox img {
	max-width: 90%;
	max-height: 90%;
	border: 3px solid #fff;
	border-radius: 6px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

#lightboxClose {
	position: fixed;
	top: 20px;
	right: 30px;
	font-size: 32px;
	color: white;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 10000;
}

.lightbox-nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	font-size: 48px;
	color: white;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 10000;
	padding: 10px 20px;
	user-select: none;
}

#lightboxPrev {
	left: 30px;
}

#lightboxNext {
	right: 30px;
}
