/**
 * Image Processor Styles
 * Custom styles for the application
 */

/* General Styles */
body {
	background-color: #f8f9fa;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.card {
	border: none;
	border-radius: 0.5rem;
	overflow: hidden;
}

.card-header {
	border-bottom: none;
	padding: 1.5rem;
}

.card-body {
	padding: 2rem;
}

/* Upload Area */
.upload-area {
	border: 2px dashed #dee2e6;
	border-radius: 0.5rem;
	padding: 3rem;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
	background-color: #ffffff;
}

.upload-area:hover {
	border-color: #0d6efd;
	background-color: #f8f9fa;
}

.upload-area.drag-over {
	border-color: #0d6efd;
	background-color: #e7f1ff;
	transform: scale(1.02);
}

.upload-icon {
	width: 64px;
	height: 64px;
	margin-bottom: 1rem;
	color: #6c757d;
}

/* File List */
.file-item {
	padding: 0.75rem;
	background-color: #f8f9fa;
	border-radius: 0.25rem;
	margin-bottom: 0.5rem;
}

.file-item:hover {
	background-color: #e9ecef;
}

/* Progress Bar */
.progress {
	background-color: #e9ecef;
	border-radius: 0.5rem;
	overflow: hidden;
}

.progress-bar {
	background-color: #0d6efd;
	transition: width 0.3s ease;
	position: relative;
}

.progress-text {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-weight: 600;
	font-size: 1rem;
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Processing Info */
.processing-info {
	background-color: #f8f9fa;
	padding: 1rem;
	border-radius: 0.25rem;
	font-size: 0.9rem;
}

/* Log Area */
.log-area {
	background-color: #ffffff;
	border: 1px solid #dee2e6;
	border-radius: 0.25rem;
	padding: 1rem;
}

.log-content {
	max-height: 200px;
	overflow-y: auto;
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 0.85rem;
}

.log-entry {
	padding: 0.25rem 0;
	border-bottom: 1px solid #f8f9fa;
}

.log-entry:last-child {
	border-bottom: none;
}

/* Results Section */
.alert-success {
	background-color: #d1e7dd;
	border-color: #badbcc;
	color: #0f5132;
}

.failed-items .list-group-item {
	background-color: #f8d7da;
	border-color: #f5c2c7;
	color: #842029;
}

/* Settings Panel */
#settingsPanel pre {
	font-size: 0.85rem;
	max-height: 400px;
	overflow-y: auto;
}

/* Animations */
@keyframes pulse {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
	100% {
		opacity: 1;
	}
}

.processing-active {
	animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
	.card-body {
		padding: 1rem;
	}
	
	.upload-area {
		padding: 2rem;
	}
	
	.upload-icon {
		width: 48px;
		height: 48px;
	}
}

/* Utility Classes */
.text-muted {
	color: #6c757d !important;
}

.text-danger {
	color: #dc3545 !important;
}

.text-success {
	color: #198754 !important;
}

/* Custom Scrollbar */
.log-content::-webkit-scrollbar {
	width: 8px;
}

.log-content::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb:hover {
	background: #555;
}