/**
 * All of the admin-specific styles for the plugin should be added here.
 */
.zevvo_file_uploads_wrap .card {
	position: relative;
	margin-top: 20px;
	min-width: 255px;
	max-width: 100%;
	background: none;
	border: none;
	box-shadow: none;
	padding: 0 !important;
}

.zevvo_file_uploads_wrap .card h2 {
	margin-top: 0;
}

.zevvo-list-controls .zevvo-list-controls-top {
	margin-bottom: -21px;
}

.zevvo-list-controls .tablenav.top {
	clear: none;
}

/* Thumbnail Previews (Shared with Frontend) */
.zevvo-file-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 5px;
	max-width: 50px;
}

.zevvo-thumbnail-link {
	display: block;
	flex-shrink: 0;
	text-decoration: none !important;
	border: none !important;
	width: 100%;
}

.zevvo-thumbnail {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	display: block;
}

.zevvo-file-icon-preview {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	border: 1px solid #e2e8f0;
	color: #64748b;
	font-weight: bold;
	text-transform: uppercase;
	overflow: hidden;
}

.zevvo-file-link-text {
	font-size: 13px;
	line-height: 1.4;
	display: none;
}

/* Ensure flex layout in meta lists */
.variation-File .zevvo-uploads-list,
.wc-item-meta .zevvo-uploads-list,
.display_meta .zevvo-uploads-list,
.item-meta .zevvo-uploads-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Modal Styles */
.zevvo-preview-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: 'Inter', sans-serif;
}

.zevvo-preview-overlay.show {
	display: flex;
}

.zevvo-preview-modal {
	background: white;
	border-radius: 12px;
	max-width: 900px;
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.zevvo-preview-header {
	padding: 16px 24px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	gap: 12px;
	background: white;
	border-radius: 12px 12px 0 0;
}

.zevvo-preview-file-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
	text-transform: uppercase;
	color: #64748b;
	background: #f1f5f9;
}

.zevvo-preview-file-icon.image { background: #d1fae5; color: #059669; }
.zevvo-preview-file-icon.pdf { background: #fee2e2; color: #dc2626; }
.zevvo-preview-file-icon.zip { background: #fef3c7; color: #d97706; }

.zevvo-preview-file-info {
	flex: 1;
	min-width: 0;
}

.zevvo-preview-file-name {
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 3px;
}

.zevvo-preview-file-meta {
	font-size: 13px;
	color: #64748b;
}

.zevvo-preview-close {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #64748b;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	transition: all 0.15s;
	flex-shrink: 0;
}

.zevvo-preview-close:hover {
	background: #fee2e2;
	color: #dc2626;
}

.zevvo-preview-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0 0 12px 12px;
}

.zevvo-preview-content {
	width: 100%;
	text-align: center;
}

.zevvo-preview-image-wrapper {
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 600px;
	position: relative;
	margin: 0 auto;
}

.zevvo-preview-image {
	width: 100%;
	height: auto;
	object-fit: contain;
	max-height: 600px;
}

.zevvo-preview-pdf-wrapper {
	border-radius: 8px;
	overflow: hidden;
	background: white;
	height: 600px;
}

.zevvo-preview-pdf {
	width: 100%;
	height: 100%;
	border: none;
}

.zevvo-preview-placeholder {
	text-align: center;
	padding: 60px 20px;
	background: white;
	border-radius: 8px;
	border: 2px dashed #cbd5e1;
}