/* Scraper Service Styles */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background-color: #f5f7fa;
	color: #333;
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.header {
	background: white;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	padding: 1rem 0;
	margin-bottom: 2rem;
}

.header h1 {
	color: #2563eb;
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

.nav {
	display: flex;
	gap: 1rem;
}

.nav-link {
	text-decoration: none;
	color: #6b7280;
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
	background-color: #2563eb;
	color: white;
}

/* Main Content */
.main {
	min-height: calc(100vh - 200px);
}

/* Dashboard */
.dashboard {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Statistics Dashboard */
.stats-dashboard {
	margin: 2rem 0;
	position: relative;
	z-index: 1;
	clear: both;
}

/* Crawled URLs Page */
.crawled-urls-page {
	position: relative;
	overflow: visible;
}

/* Page Header */
.page-header {
	margin-bottom: 1.5rem;
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Statistics Grid */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.stat-card {
	background: white;
	padding: 1.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	gap: 1rem;
}

.stat-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: white;
}

.stat-card:nth-child(1) .stat-icon { background-color: #3b82f6; }
.stat-card:nth-child(2) .stat-icon { background-color: #10b981; }
.stat-card:nth-child(3) .stat-icon { background-color: #8b5cf6; }
.stat-card:nth-child(4) .stat-icon { background-color: #f59e0b; }

.stat-content h3 {
	font-size: 2rem;
	font-weight: bold;
	color: #1f2937;
}

.stat-content p {
	color: #6b7280;
	font-size: 0.875rem;
}

/* Forms Grid */
.forms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 1.5rem;
}

.form-card {
	background: white;
	padding: 1.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-card h2 {
	color: #1f2937;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.form-group {
	margin-bottom: 1rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

/* File Upload */
.file-upload {
	position: relative;
}

.file-upload input[type="file"] {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.file-upload-display {
	border: 2px dashed #d1d5db;
	border-radius: 0.375rem;
	padding: 2rem;
	text-align: center;
	transition: border-color 0.2s;
	cursor: pointer;
}

.file-upload:hover .file-upload-display {
	border-color: #2563eb;
}

.file-upload-display i {
	font-size: 2rem;
	color: #6b7280;
	margin-bottom: 0.5rem;
	display: block;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border: none;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-primary {
	background-color: #2563eb;
	color: white;
}

.btn-primary:hover {
	background-color: #1d4ed8;
}

.btn-secondary {
	background-color: #6b7280;
	color: white;
}

.btn-secondary:hover {
	background-color: #4b5563;
}

.btn-warning {
	background-color: #f59e0b;
	color: white;
}

.btn-warning:hover {
	background-color: #d97706;
}

.btn-danger {
	background-color: #ef4444;
	color: white;
}

.btn-danger:hover {
	background-color: #dc2626;
}

.btn-sm {
	padding: 0.5rem 0.75rem;
	font-size: 0.75rem;
}

/* Recent Jobs */
.recent-jobs {
	background: white;
	padding: 1.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.recent-jobs h2 {
	color: #1f2937;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.jobs-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.job-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem;
	background-color: #f9fafb;
	border-radius: 0.375rem;
	border-left: 4px solid #d1d5db;
}

.job-item.completed { border-left-color: #10b981; }
.job-item.failed { border-left-color: #ef4444; }
.job-item.processing { border-left-color: #f59e0b; }
.job-item.queued { border-left-color: #6b7280; }

.job-info {
	flex: 1;
}

.job-id {
	font-family: monospace;
	font-size: 0.75rem;
	color: #6b7280;
}

.job-status {
	font-size: 0.75rem;
	font-weight: 500;
}

/* Status Badges */
.status-badge {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
}

.status-queued { background-color: #f3f4f6; color: #374151; }
.status-processing { background-color: #fef3c7; color: #92400e; }
.status-completed { background-color: #d1fae5; color: #065f46; }
.status-failed { background-color: #fee2e2; color: #991b1b; }

/* Progress Bar */
.progress-bar {
	width: 100%;
	height: 0.5rem;
	background-color: #e5e7eb;
	border-radius: 0.25rem;
	overflow: hidden;
	margin-bottom: 0.25rem;
}

.progress-fill {
	height: 100%;
	background-color: #2563eb;
	transition: width 0.3s ease;
}

.progress-text {
	font-size: 0.75rem;
	color: #6b7280;
}

/* Jobs Page */
.jobs-page {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: white;
	padding: 1.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-header h2 {
	color: #1f2937;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.page-actions {
	display: flex;
	gap: 0.75rem;
}

/* Filters */
.filters {
	display: flex;
	gap: 1rem;
	background: white;
	padding: 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.filter-group label {
	font-size: 0.75rem;
	font-weight: 500;
	color: #374151;
}

.filter-group input,
.filter-group select {
	padding: 0.5rem;
	border: 1px solid #d1d5db;
	border-radius: 0.25rem;
	font-size: 0.875rem;
}

/* Jobs Table */
.jobs-table-container {
	background: white;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	overflow: hidden;
}

.jobs-table {
	width: 100%;
	border-collapse: collapse;
}

.jobs-table th,
.jobs-table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.jobs-table th {
	background-color: #f9fafb;
	font-weight: 600;
	color: #374151;
	font-size: 0.875rem;
}

.jobs-table td {
	font-size: 0.875rem;
}

.job-id {
	font-family: monospace;
	font-size: 0.75rem;
	color: #6b7280;
}

.job-actions {
	display: flex;
	gap: 0.5rem;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	background: white;
	padding: 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Collections Page */
.collections-page {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.collections-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}

.collection-card {
	background: white;
	padding: 1.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	transition: transform 0.2s, box-shadow 0.2s;
}

.collection-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.collection-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.collection-header h3 {
	color: #1f2937;
	font-size: 1.125rem;
}

.collection-actions {
	display: flex;
	gap: 0.5rem;
}

.collection-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.stat {
	text-align: center;
}

.stat-label {
	display: block;
	font-size: 0.75rem;
	color: #6b7280;
	margin-bottom: 0.25rem;
}

.stat-value {
	display: block;
	font-weight: 600;
	color: #1f2937;
}

.collection-info {
	border-top: 1px solid #e5e7eb;
	padding-top: 1rem;
}

.collection-info p {
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 0.25rem;
}

.no-collections {
	text-align: center;
	padding: 3rem;
	background: white;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.no-collections i {
	font-size: 3rem;
	color: #d1d5db;
	margin-bottom: 1rem;
}

.no-collections h3 {
	color: #1f2937;
	margin-bottom: 0.5rem;
}

.no-collections p {
	color: #6b7280;
	margin-bottom: 1.5rem;
}

/* Modals */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
}

.modal-content {
	background-color: white;
	margin: 5% auto;
	padding: 0;
	border-radius: 0.5rem;
	width: 90%;
	max-width: 600px;
	max-height: 80vh;
	overflow-y: auto;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
	color: #1f2937;
}

.modal-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #6b7280;
}

.modal-body {
	padding: 1.5rem;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* Job Details */
.job-detail-section {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.job-detail-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.job-detail-section h4 {
	color: #1f2937;
	margin-bottom: 0.75rem;
}

.job-detail-section p {
	margin-bottom: 0.5rem;
}

.job-detail-section pre {
	background-color: #f9fafb;
	padding: 1rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	overflow-x: auto;
}

.job-detail-section pre.error {
	background-color: #fef2f2;
	color: #991b1b;
}

/* Notifications */
.notifications {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.notification {
	padding: 1rem 1.5rem;
	border-radius: 0.375rem;
	color: white;
	font-weight: 500;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

.notification.show {
	transform: translateX(0);
}

.notification.success {
	background-color: #10b981;
}

.notification.error {
	background-color: #ef4444;
}

.notification.warning {
	background-color: #f59e0b;
}

.notification.info {
	background-color: #3b82f6;
}

/* Loading States */
.loading {
	text-align: center;
	padding: 2rem;
	color: #6b7280;
}

.no-data {
	text-align: center;
	padding: 2rem;
	color: #6b7280;
}

/* Text Utilities */
.text-center {
	text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
	.container {
		padding: 0 1rem;
	}
	
	.header h1 {
		font-size: 1.5rem;
	}
	
	.nav {
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.stats-grid {
		grid-template-columns: 1fr;
	}
	
	.forms-grid {
		grid-template-columns: 1fr;
	}
	
	.page-header {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}
	
	.page-actions {
		justify-content: center;
	}
	
	.filters {
		flex-direction: column;
	}
	
	.jobs-table-container {
		overflow-x: auto;
	}
	
	.collections-grid {
		grid-template-columns: 1fr;
	}
	
	.modal-content {
		margin: 10% auto;
		width: 95%;
	}
}

/* File path styling */
.file-path {
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	background-color: #f3f4f6;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	color: #374151;
	border: 1px solid #e5e7eb;
}

/* N8N Workflows Page Styles */
.n8n-workflows-page {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: white;
	padding: 1.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-header h2 {
	color: #1f2937;
	font-size: 1.5rem;
	margin: 0;
}

.page-actions {
	display: flex;
	gap: 1rem;
}

/* Workflow Cards */
.workflow-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 1.5rem;
}

.workflow-card {
	background: white;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.workflow-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.workflow-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 1.5rem 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.workflow-header h3 {
	color: #1f2937;
	font-size: 1.25rem;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.status-badge {
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.status-pending {
	background-color: #fef3c7;
	color: #92400e;
}

.status-running {
	background-color: #dbeafe;
	color: #1e40af;
}

.status-idle {
	background-color: #f3f4f6;
	color: #6b7280;
}

.status-processing {
	background-color: #e0e7ff;
	color: #3730a3;
}

.status-completed {
	background-color: #d1fae5;
	color: #065f46;
}

.status-failed {
	background-color: #fee2e2;
	color: #991b1b;
}

.status-not-started {
	background-color: #f3f4f6;
	color: #6b7280;
}

.workflow-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	padding: 1rem 1.5rem;
}

.stat {
	text-align: center;
}

.stat-label {
	display: block;
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 0.25rem;
}

.stat-value {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	color: #1f2937;
}

.workflow-actions {
	display: flex;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background-color: #f9fafb;
	border-top: 1px solid #e5e7eb;
}

/* Active Sessions */
.active-sessions {
	background: white;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	padding: 1.5rem;
}

.active-sessions h3 {
	color: #1f2937;
	font-size: 1.25rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sessions-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.no-sessions {
	text-align: center;
	padding: 2rem;
	color: #6b7280;
}

.no-sessions i {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	display: block;
}

.session-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background-color: #f9fafb;
	border-radius: 0.375rem;
	border: 1px solid #e5e7eb;
}

.session-info h4 {
	color: #1f2937;
	font-size: 1rem;
	margin-bottom: 0.25rem;
}

.session-info p {
	color: #6b7280;
	font-size: 0.875rem;
	margin: 0;
}

.session-actions {
	display: flex;
	gap: 0.5rem;
}

/* Statistics Charts */
.stats-charts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.chart-container {
	background: white;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	padding: 1.5rem;
}

.chart-container h3 {
	color: #1f2937;
	font-size: 1.25rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.chart-container canvas {
	max-height: 300px;
}

/* Quick Actions */
.quick-actions {
	background: white;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	padding: 1.5rem;
}

.quick-actions h3 {
	color: #1f2937;
	font-size: 1.25rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.actions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.action-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1.5rem;
	background-color: #f9fafb;
	border: 2px solid #e5e7eb;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	color: #374151;
}

.action-btn:hover {
	background-color: #f3f4f6;
	border-color: #d1d5db;
	transform: translateY(-1px);
}

.action-btn i {
	font-size: 1.5rem;
	color: #6b7280;
}

.action-btn span {
	font-weight: 500;
}

/* Notifications */
.notifications {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.notification {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	color: white;
	font-weight: 500;
	min-width: 300px;
	animation: slideIn 0.3s ease-out;
}

.notification-success {
	background-color: #10b981;
}

.notification-error {
	background-color: #ef4444;
}

.notification-warning {
	background-color: #f59e0b;
}

.notification-info {
	background-color: #3b82f6;
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Responsive Design for N8N Workflows */
@media (max-width: 768px) {
	.page-header {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}
	
	.page-actions {
		justify-content: center;
	}
	
	.workflow-cards {
		grid-template-columns: 1fr;
	}
	
	.workflow-stats {
		grid-template-columns: 1fr;
	}
	
	.session-item {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}
	
	.session-actions {
		justify-content: center;
	}
	
	.actions-grid {
		grid-template-columns: 1fr;
	}
	
	.stats-charts {
		grid-template-columns: 1fr;
	}
	
	.page-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.page-actions {
		width: 100%;
		display: flex;
		gap: 0.5rem;
	}
	
	.notifications {
		left: 20px;
		right: 20px;
	}
	
	.notification {
		min-width: auto;
	}
}

/* URL Detail Modal Styles */
.modal-large {
	max-width: 90vw;
	width: 90vw;
	max-height: 90vh;
}

.url-detail-content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-height: 70vh;
	overflow-y: auto;
}

.detail-section {
	background: #f9fafb;
	border-radius: 0.5rem;
	padding: 1.5rem;
	border: 1px solid #e5e7eb;
}

.detail-section h4 {
	color: #1f2937;
	font-size: 1.125rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1rem;
}

.detail-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.detail-item label {
	font-weight: 600;
	color: #374151;
	font-size: 0.875rem;
}

.detail-item span {
	color: #1f2937;
	word-break: break-all;
}

.url-text {
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	background-color: #f3f4f6;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	color: #374151;
	border: 1px solid #e5e7eb;
}

.file-type-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background-color: #dbeafe;
	color: #1e40af;
}

.content-preview {
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	overflow: hidden;
}

.content-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	background-color: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	font-weight: 600;
	color: #374151;
}

.content-text {
	padding: 1rem;
	background-color: white;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #374151;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 300px;
	overflow-y: auto;
}

.links-container {
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	overflow: hidden;
}

.links-list {
	max-height: 200px;
	overflow-y: auto;
}

.link-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e5e7eb;
	transition: background-color 0.2s;
}

.link-item:last-child {
	border-bottom: none;
}

.link-item:hover {
	background-color: #f9fafb;
}

.link-item i {
	color: #6b7280;
	font-size: 0.875rem;
}

.link-item a {
	color: #2563eb;
	text-decoration: none;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.875rem;
	word-break: break-all;
}

.link-item a:hover {
	text-decoration: underline;
}

.metadata-container {
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	overflow: hidden;
}

.metadata-json {
	padding: 1rem;
	background-color: #f9fafb;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #374151;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 200px;
	overflow-y: auto;
	margin: 0;
}

.error-container {
	border: 1px solid #fecaca;
	border-radius: 0.5rem;
	overflow: hidden;
}

.error-message {
	padding: 1rem;
	background-color: #fef2f2;
	color: #991b1b;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.875rem;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

/* Enhanced Table Styles */
.urls-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.urls-table th,
.urls-table td {
	padding: 0.75rem 0.5rem;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
}

.urls-table th {
	background-color: #f9fafb;
	font-weight: 600;
	color: #374151;
	position: sticky;
	top: 0;
	z-index: 10;
}

.urls-table tbody tr:hover {
	background-color: #f9fafb;
}

.url-cell {
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.url-cell a {
	color: #2563eb;
	text-decoration: none;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.8rem;
}

.url-cell a:hover {
	text-decoration: underline;
}

.title-cell {
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.size-cell {
	text-align: right;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.status-cell {
	text-align: center;
}

.actions-cell {
	text-align: center;
	white-space: nowrap;
}

/* Responsive Design for URL Details */
@media (max-width: 768px) {
	.modal-large {
		max-width: 95vw;
		width: 95vw;
		max-height: 95vh;
	}
	
	.detail-grid {
		grid-template-columns: 1fr;
	}
	
	.urls-table {
		font-size: 0.75rem;
	}
	
	.urls-table th,
	.urls-table td {
		padding: 0.5rem 0.25rem;
	}
}
