:root {
	--bg-color: #f5f7fa;
	--card-bg: #ffffff;
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--danger: #dc2626;
	--danger-hover: #b91c1c;
	--success: #16a34a;
	--warning: #d97706;
	--text-primary: #1f2937;
	--text-secondary: #6b7280;
	--border: #e5e7eb;
	--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

body {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--bg-color);
	color: var(--text-primary);
	line-height: 1.5;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem;
}

header {
	margin-bottom: 2rem;
}

header h1 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-primary);
}

.subtitle {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

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

.stat-card {
	background: var(--card-bg);
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: var(--shadow);
	text-align: center;
	border: 1px solid var(--border);
}

.stat-value {
	display: block;
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 0.25rem;
}

.stat-label {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	gap: 1rem;
	flex-wrap: wrap;
}

.filters {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.filters input,
.filters select {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.875rem;
	background: var(--card-bg);
}

.filters input {
	width: 200px;
}

.filters input:focus,
.filters select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.btn-secondary {
	padding: 0.5rem 1rem;
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-secondary:hover {
	background: var(--bg-color);
	border-color: var(--text-secondary);
}

.btn-primary {
	padding: 0.5rem 1rem;
	background: var(--primary);
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-primary:hover {
	background: var(--primary-hover);
}

.btn-danger {
	padding: 0.375rem 0.75rem;
	background: var(--danger);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 0.75rem;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-danger:hover {
	background: var(--danger-hover);
}

.pods-list {
	background: var(--card-bg);
	border-radius: 8px;
	box-shadow: var(--shadow);
	overflow: hidden;
	border: 1px solid var(--border);
}

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

th,
td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

th {
	background: var(--bg-color);
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-secondary);
}

tbody tr:hover {
	background: var(--bg-color);
}

tbody tr:last-child td {
	border-bottom: none;
}

.loading {
	text-align: center;
	color: var(--text-secondary);
	padding: 2rem !important;
}

.status-badge {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 500;
}

.status-running {
	background: #dcfce7;
	color: var(--success);
}

.status-pending {
	background: #fef3c7;
	color: var(--warning);
}

.status-failed {
	background: #fee2e2;
	color: var(--danger);
}

.status-succeeded {
	background: #dcfce7;
	color: var(--success);
}

.status-unknown {
	background: #f3f4f6;
	color: var(--text-secondary);
}

.notification {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	padding: 1rem 1.5rem;
	background: var(--text-primary);
	color: white;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	transition:
		opacity 0.3s,
		transform 0.3s;
}

.notification.hidden {
	opacity: 0;
	transform: translateY(1rem);
	pointer-events: none;
}

.notification.success {
	background: var(--success);
}

.notification.error {
	background: var(--danger);
}

@media (max-width: 768px) {
	.container {
		padding: 1rem;
	}

	.controls {
		flex-direction: column;
		align-items: stretch;
	}

	.filters {
		flex-direction: column;
	}

	.filters input {
		width: 100%;
	}

	table {
		font-size: 0.875rem;
	}

	th,
	td {
		padding: 0.5rem;
	}
}
