/* Spectre Icons — My Icons upload page */

.spectre-icons-upload-page h1 {
	margin-bottom: 8px;
}

/* Status bar */
.spectre-icons-upload-status {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	font-size: 14px;
	color: #646970;
}

.spectre-icons-upload-count {
	font-weight: 600;
}

.spectre-icons-limit-badge {
	display: inline-block;
	padding: 2px 8px;
	background: #d63638;
	color: #fff;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Drop zone */
.spectre-icons-drop-zone {
	border: 2px dashed #c3c4c7;
	border-radius: 4px;
	padding: 40px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	background: #f9f9f9;
	margin-bottom: 20px;
	max-width: 600px;
}

.spectre-icons-drop-zone:hover,
.spectre-icons-drop-zone--active {
	border-color: #2271b1;
	background: #f0f6fc;
}

.spectre-icons-drop-zone--disabled {
	border-color: #dcdcde;
	background: #f6f7f7;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Visually hide the native file input while keeping it keyboard accessible */
.spectre-icons-drop-zone input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
}

.spectre-icons-drop-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	cursor: inherit;
	color: #50575e;
}

.spectre-icons-drop-label .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #2271b1;
}

.spectre-icons-drop-zone--disabled .spectre-icons-drop-label .dashicons {
	color: #a7aaad;
}

.spectre-icons-drop-label small {
	font-size: 12px;
	color: #8c8f94;
}

/* Inline messages */
.spectre-icons-upload-messages {
	margin-bottom: 16px;
	max-width: 600px;
}

.spectre-icons-message {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 8px;
	font-size: 13px;
}

.spectre-icons-message--success {
	background: #edfaef;
	border-left: 4px solid #00a32a;
	color: #1a5c23;
}

.spectre-icons-message--error {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	color: #8a1f21;
}

/* Icon grid */
.spectre-icons-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 100px, 1fr ) );
	gap: 12px;
	max-width: 800px;
}

.spectre-icons-tile {
	position: relative;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 12px 8px 8px;
	text-align: center;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.spectre-icons-tile:hover {
	border-color: #2271b1;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.08 );
}

.spectre-icons-tile__preview {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	margin-bottom: 6px;
	color: #1e1e1e;
}

.spectre-icons-tile__preview svg {
	width: 28px;
	height: 28px;
	max-width: 100%;
	max-height: 100%;
}

.spectre-icons-tile__label {
	font-size: 10px;
	color: #646970;
	word-break: break-all;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.spectre-icons-tile__delete {
	position: absolute;
	top: 4px;
	right: 4px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px;
	line-height: 1;
	color: #a7aaad;
	border-radius: 2px;
	opacity: 0;
	transition: opacity 0.15s ease, color 0.15s ease;
}

.spectre-icons-tile:hover .spectre-icons-tile__delete {
	opacity: 1;
}

.spectre-icons-tile__delete:hover {
	color: #d63638;
}

.spectre-icons-tile__delete .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* Empty state */
.spectre-icons-empty-state {
	color: #646970;
	font-style: italic;
	padding: 4px 0;
}
