/* Midocean Upload & Quality Check UI */

.midocean-upload-wrap {
	margin: 20px 0;
	font-family: inherit;
}

.midocean-upload-header h4 {
	margin: 0 0 4px;
	font-size: 15px;
}

.midocean-print-summary {
	font-size: 13px;
	color: #666;
	margin: 0 0 12px;
}

/* Drop Zone */
.midocean-drop-zone {
	border: 2px dashed #c5c5c5;
	border-radius: 8px;
	padding: 32px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background .2s;
	position: relative;
	background: #fafafa;
}

.midocean-drop-zone:hover,
.midocean-drop-zone.is-dragging {
	border-color: #4a90d9;
	background: #f0f7ff;
}

.midocean-drop-zone.is-dragging {
	border-style: solid;
}

.midocean-file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.midocean-drop-icon {
	color: #999;
	margin-bottom: 10px;
}

.midocean-drop-zone__text {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 500;
	color: #444;
}

.midocean-drop-zone__hint {
	margin: 0;
	font-size: 12px;
	color: #888;
}

/* Progress */
.midocean-upload-progress {
	margin-top: 12px;
}

.midocean-upload-progress__bar {
	background: #e8e8e8;
	border-radius: 4px;
	height: 6px;
	overflow: hidden;
	margin-bottom: 6px;
}

.midocean-upload-progress__fill {
	height: 100%;
	background: #4a90d9;
	width: 0%;
	transition: width .3s ease;
	animation: midocean-pulse 1.5s infinite;
}

@keyframes midocean-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: .6; }
}

.midocean-upload-progress__text {
	font-size: 13px;
	color: #555;
}

/* Quality Result */
.midocean-quality-result {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
	margin-top: 12px;
}

.midocean-quality-header {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.midocean-quality-preview {
	flex-shrink: 0;
}

.midocean-quality-preview img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	border: 1px solid #eee;
	border-radius: 4px;
}

.midocean-quality-info {
	flex: 1;
	min-width: 0;
}

/* Status badge */
.midocean-quality-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
}

.midocean-quality-status::before {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.midocean-quality-status--ok::before    { background: #2ea04f; }
.midocean-quality-status--warning::before { background: #d29922; }
.midocean-quality-status--error::before  { background: #cf222e; }

.midocean-quality-status--ok      { color: #2ea04f; }
.midocean-quality-status--warning { color: #9a6700; }
.midocean-quality-status--error   { color: #cf222e; }

/* DPI Meter */
.midocean-dpi-meter {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.midocean-dpi-label {
	font-size: 12px;
	color: #666;
	white-space: nowrap;
}

.midocean-dpi-bar-wrap {
	flex: 1;
	background: #e8e8e8;
	border-radius: 4px;
	height: 8px;
	overflow: hidden;
}

.midocean-dpi-bar {
	height: 100%;
	border-radius: 4px;
	transition: width .5s ease, background-color .3s;
}

.midocean-dpi-bar--excellent { background: #2ea04f; }
.midocean-dpi-bar--sufficient { background: #d29922; }
.midocean-dpi-bar--low        { background: #cf222e; }
.midocean-dpi-bar--vector     { background: #4a90d9; }

.midocean-dpi-value {
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	min-width: 65px;
	text-align: right;
}

/* Messages */
.midocean-quality-messages {
	list-style: none;
	margin: 0;
	padding: 0;
}

.midocean-quality-messages li {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 13px;
	margin-bottom: 4px;
	line-height: 1.4;
}

.midocean-quality-messages li::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border-radius: 50%;
	margin-top: 1px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.midocean-quality-messages .msg-success::before { background-color: #2ea04f; content: '✓'; color: #fff; font-size: 10px; text-align: center; line-height: 16px; }
.midocean-quality-messages .msg-warning::before { background-color: #d29922; content: '!'; color: #fff; font-size: 10px; text-align: center; line-height: 16px; }
.midocean-quality-messages .msg-error::before   { background-color: #cf222e; content: '✕'; color: #fff; font-size: 10px; text-align: center; line-height: 16px; }
.midocean-quality-messages .msg-info::before    { background-color: #4a90d9; content: 'i'; color: #fff; font-size: 10px; text-align: center; line-height: 16px; }

.midocean-change-file {
	margin-top: 12px;
	display: inline-block;
	font-size: 13px;
	color: #4a90d9;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	text-decoration: underline;
}

.midocean-change-file:hover {
	color: #2271b1;
}
