/*
 * filemanager.css - simple GUI file manager (admin).
 * Reuses ghoti admin classes (ghotiButton, ghotiCrudHeader, ghotiManageTable,
 * ghotiHelpText...) plus these small additions.
 */

/* Breadcrumbs */
.ghotiBreadcrumbs{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 0.9rem;
	margin: 0 0 0.9rem;
	border: 1px solid rgba(127,127,160,0.3);
	border-radius: 12px;
	background: rgba(127,127,160,0.06);
	font-size: 0.92rem;
}
.ghotiBreadcrumbs a{
	color: #8b5cf6;
	text-decoration: none;
	font-weight: 600;
}
.ghotiBreadcrumbs a:hover{ text-decoration: underline; }
.ghotiBreadcrumbSep{ opacity: 0.45; }
.ghotiBreadcrumbCurrent{ font-weight: 700; }

/* Entry table */
.fmTable{ width: 100%; border-collapse: collapse; }
.fmTable th{
	text-align: left;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	opacity: 0.6;
	padding: 0.45rem 0.7rem;
	border-bottom: 1px solid rgba(127,127,160,0.3);
}
.fmTable td{
	padding: 0.5rem 0.7rem;
	border-bottom: 1px solid rgba(127,127,160,0.14);
	vertical-align: middle;
}
.fmTable tr:hover td{ background: rgba(139,92,246,0.05); }
.fmEntryName{
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 38ch;
	display: inline-block;
	vertical-align: bottom;
}
.fmRowDir .fmEntryName{ color: #8b5cf6; }
.fmTable .ghotiCrudActions{ white-space: nowrap; }

@media (max-width: 520px){
	.fmTable.ghotiManageTable{
		display: table;
		table-layout: fixed;
		overflow: visible;
	}
	.fmTable th:nth-child(2),
	.fmTable th:nth-child(3),
	.fmTable td:nth-child(2),
	.fmTable td:nth-child(3){ display: none; }
	.fmTable th:first-child{ width: 42%; }
	.fmTable .ghotiCrudActions{ white-space: normal; }
	.fmEntryName{ max-width: 100%; }
}

/* Upload zone */
.fmUploadZone{
	margin: 0 0 0.9rem;
	padding: 0.9rem 1rem;
	border: 1px dashed rgba(139,92,246,0.55);
	border-radius: 12px;
	background: rgba(139,92,246,0.06);
}
.fmUploadZoneInner{
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 90px;
	padding: 0.8rem;
	text-align: center;
	border: 2px dashed rgba(34,211,238,0.55);
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.fmUploadZoneInner:hover,
.fmUploadZoneActive{
	border-color: #8b5cf6;
	background: rgba(139,92,246,0.10);
	transform: scale(1.01);
}
.fmUploadZoneInner input[type="file"]{
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}
.fmUploadIcon{ font-size: 1.7rem; line-height: 1; }

/* Text editor */
.fmEditor{
	width: 100%;
	min-height: 480px;
	box-sizing: border-box;
	padding: 12px;
	border-radius: 10px;
	border: 1px solid rgba(127,127,160,0.4);
	background: rgba(15,15,28,0.92);
	color: #d8dce8;
	font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	resize: vertical;
}
.fmEditor:focus{
	outline: none;
	border-color: rgba(139,92,246,0.7);
	box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
}
