/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* File Manager Styles - Compact for Chatbot */
.aiecu-file-manager {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	font-family: inherit;
	font-size: 11px;
}

.aiecu-file-manager ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.aiecu-file-manager li {
	background: transparent;
	margin: 0;
	padding: 2px 4px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	line-height: 1.2;
	max-width: 100%;
	min-width: 0;
}

.aiecu-file-manager li span {
	color: #666;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-right: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex: 1;
}

.mwai-chatgpt-theme .aiecu-file-manager li span {
	color: #e3e3e3 !important;
}

.aiecu-file-manager li button {
	background: transparent;
	color: #ff4444;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
	width: auto;
	height: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: unset !important;
	min-height: unset !important;
	font-family: inherit;
	text-decoration: none;
	outline: none;
}

.aiecu-file-manager li button:hover {
	color: #cc3333;
}

.aiecu-file-manager li button:active {
	transform: scale(0.9);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
	.aiecu-file-manager {
		font-size: 12px;
	}
	
	.aiecu-file-manager ul {
		gap: 6px;
	}
	
	.aiecu-file-manager li {
		padding: 4px 6px;
		font-size: 12px;
		border-radius: 6px;
		background: rgba(0, 0, 0, 0.05);
		max-width: calc(100% - 12px);
	}
	
	.aiecu-file-manager li span {
		font-size: 12px;
		margin-right: 6px;
	}
	
	.aiecu-file-manager li button {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.aiecu-file-manager ul {
		flex-direction: column;
		gap: 4px;
	}
	
	.aiecu-file-manager li {
		width: 100%;
		max-width: 100%;
		justify-content: space-between;
		padding: 6px 8px;
		background: rgba(0, 0, 0, 0.08);
		border-radius: 8px;
	}
	
	.aiecu-file-manager li span {
		margin-right: 8px;
		flex: 1;
		min-width: 0;
	}
	
	.aiecu-file-manager li button {
		font-size: 16px;
	}
}

/* Loading state styles */
.aiecu-file-manager li.aiecu-loading {
	opacity: 0.7;
}

.aiecu-file-manager li.aiecu-loading span {
	color: #999;
	font-style: italic;
}

.aiecu-file-manager .aiecu-spinner {
	width: 12px;
	height: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	animation: aiecu-spin 1s linear infinite;
	font-size: 8px;
	flex-shrink: 0;
}

@keyframes aiecu-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Mobile responsive loading styles */
@media (max-width: 768px) {
	.aiecu-file-manager .aiecu-spinner {
		width: 16px;
		height: 16px;
		font-size: 10px;
	}
}

@media (max-width: 480px) {
	.aiecu-file-manager .aiecu-spinner {
		width: 20px;
		height: 20px;
		font-size: 12px;
	}
}
