@charset "utf-8";

[draggable=true] {
	cursor: move;
}

.filemanager {
	position: absolute;
	width: 320px; /* Fixed width for stability on resize */
	height: 75vh !important;
	left: 0;
	top: 44px;
	background-color: rgba(15, 23, 42, 0.25) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom-right-radius: 12px;
	box-shadow: 10px 10px 20px -5px rgba(0, 0, 0, 0.2);
	display: flex !important; /* Ensure visibility for nested toggle */
	flex-direction: column;
	z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* overflow: hidden removed to allow nested toggle tab to stick out */
}

.filemanager.closed {
    left: -320px !important;
    display: flex !important; /* Drawer handle must stay visible */
}

/*-------------------------
	Search box
-------------------------*/
.filemanager .search {
	margin: 4px 8px;
	flex-shrink: 0;
}

.filemanager .search input[type=search] {
	outline: none;
	height: 24px !important;
	/* padding removed to allow Tailwind tw-pl-8 to work */
	font-size: 11px !important;
	box-sizing: border-box;
}

.filemanager .search input[type=search]::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.filemanager .search input[type=search]:focus {
	height: 24px !important;
}

/*-------------------------
	Content area
-------------------------*/

/* The container of the folders */
.filemanager .data {
	flex: 1;
	overflow-y: auto;
	margin: 0;
	padding: 10px;
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* 2 columns requested */
	gap: 10px;
	align-content: flex-start;
}

.filemanager .data li {
	list-style: none;
	height: 125px; /* Increased for better 2-column presence */
}

.vrodos-asset-card-title {
	word-break: break-all;
}

.vrodos-asset-card-meta {
	position: absolute;
	top: 31px;
	left: 6px;
	z-index: 10;
	max-width: 78%;
	display: flex;
	flex-direction: column;
	gap: 4px;
	pointer-events: none;
}

.vrodos-asset-card-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.assetImg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.editAssetbutton, .viewAssetbutton, .deleteAssetbutton {
	display: none !important; /* Managed by new internal card buttons */
}

.editor-asset-tile-style:hover {
	background-color: rgba(63,81,181,0.1);
}

/*Tabs for filebrowser*/
/* Style the tab */
.AssetCategoryTabStyle {
	height: auto;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.03);
	display: flex;
	flex-wrap: nowrap; /* Force single line */
	gap: 2px;
	padding: 4px 6px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	overflow-x: auto;
}

.AssetCategoryTabStyle button {
	flex: 0 1 auto;
	min-width: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.05);
	padding: 2px 4px;
	border-radius: 4px;
	transition: all 0.2s;
	color: rgba(255, 255, 255, 0.4);
	font-size: 8px !important;
	white-space: nowrap;
}

.AssetCategoryTabStyle button:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.AssetCategoryTabStyle button.active {
	background-color: #10b981; /* Emerald-500 */
	color: #fff;
	border-color: #059669;
}

/* Empty State */
.asset-empty-state {
	grid-column: 1 / -1;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: auto !important;
	min-height: 200px;
}
