:root {
	--primary-color: #4CAF50;
	--primary-hover: #45a049;
	--primary-light: rgba(76, 175, 80, 0.3);
	--background-color: #f5f5f5;
	--card-background: white;
	--border-color: #ddd;
	--border-light: #dee2e6;
	--text-primary: #333;
	--text-secondary: #495057;
	--text-muted: #666;
	--success-bg: #d4edda;
	--success-text: #155724;
	--warning-bg: #fff3cd;
	--warning-text: #856404;
	--danger-bg: #f8d7da;
	--danger-text: #721c24;
	--info-bg: #d1ecf1;
	--info-text: #0c5460;
	--light-bg: #f8f9fa;
	--light-border: #e9ecef;
	--other-bg: #e2e3e5;
	--other-text: #495057;
}

body {
	font-family: Arial, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	background-color: var(--background-color);
}

.container {
	background: var(--card-background);
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
	color: var(--text-primary);
	text-align: center;
	margin: 0 0 30px 0;
}

.upload-section {
	text-align: center;
	padding: 40px;
	border: 2px dashed var(--border-color);
	border-radius: 10px;
	margin-bottom: 30px;
}

.upload-section.dragover {
	border-color: var(--primary-color);
	background-color: #f8fff8;
}

.file-input {
	margin: 20px 0;
}

#fileInput {
	display: none;
}

.file-label {
	display: inline-block;
	padding: 12px 30px;
	background-color: var(--primary-color);
	color: white;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.file-label:hover {
	background-color: var(--primary-hover);
}

.controls {
	display: none;
	margin-bottom: 30px;
	padding: 25px;
	background-color: var(--light-bg);
	border-radius: 8px;
}

.controls h3 {
	margin-top: 0;
	margin-bottom: 20px;
	color: var(--text-primary);
}

.settings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	align-items: start;
}

.setting-group {
	background: var(--card-background);
	padding: 15px;
	border-radius: 6px;
	border: 1px solid var(--border-light);
	height: 100%;
	box-sizing: border-box;
}

.setting-label {
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 10px;
	display: block;
}

.radio-group {
	display: flex;
	background-color: var(--light-border);
	border-radius: 25px;
	padding: 4px;
	width: fit-content;
}

.radio-option {
	position: relative;
}

.radio-option input[type="radio"] {
	display: none;
}

.radio-option label {
	display: block;
	padding: 8px 16px;
	cursor: pointer;
	border-radius: 20px;
	transition: all 0.3s ease;
	font-weight: 500;
	color: var(--text-secondary);
	white-space: nowrap;
	font-size: 14px;
}

.radio-option input[type="radio"]:checked + label {
	background-color: var(--primary-color);
	color: white;
	box-shadow: 0 2px 4px var(--primary-light);
}

.checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.checkbox-option {
	display: flex;
	align-items: center;
	gap: 8px;
}

.checkbox-option input[type="checkbox"] {
	width: 16px;
	height: 16px;
}

.checkbox-option label {
	font-size: 14px;
	color: var(--text-secondary);
	cursor: pointer;
}

.setting-group.disabled {
	opacity: 0.6;
	pointer-events: none;
}

.summary {
	display: none;
	margin-bottom: 20px;
	padding: 15px;
	background-color: #e3f2fd;
	border-left: 4px solid #2196F3;
	border-radius: 0 5px 5px 0;
}

.results {
	display: none;
}

.entity-item {
	background-color: var(--card-background);
	border: 1px solid var(--border-color);
	margin: 10px 0;
	border-radius: 8px;
	overflow: hidden;
}

.entity-header {
	background-color: var(--light-bg);
	padding: 15px 20px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
}

.entity-header:hover {
	background-color: var(--light-border);
}

.entity-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.entity-name {
	font-weight: bold;
}

.entity-user-agent {
	font-family: monospace;
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 5px;
	word-break: break-all;
	max-width: 600px;
}

.request-count {
	background-color: var(--primary-color);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-weight: bold;
	min-width: 30px;
	text-align: center;
}

.expand-icon {
	transition: transform 0.3s;
}

.expand-icon.expanded {
	transform: rotate(180deg);
}

.entity-details {
	display: none;
	padding: 0;
}

.ip-info {
	padding: 15px 20px;
	background-color: var(--light-bg);
	border-top: 1px solid var(--light-border);
	font-size: 14px;
}

.ip-info-row {
	margin-bottom: 8px;
	display: flex;
	align-items: center;
}

.ip-info-row:last-child {
	margin-bottom: 0;
}

.ip-info-label {
	font-weight: bold;
	min-width: 90px;
	color: var(--text-secondary);
	padding-right: 10px;
}

.ip-info-value {
	color: #212529;
	font-family: monospace;
}

.request-item {
	padding: 12px 20px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.request-item:last-child {
	border-bottom: none;
}

.request-time {
	color: var(--text-muted);
	font-family: monospace;
	min-width: 120px;
}

.request-ip {
	color: var(--text-muted);
	font-family: monospace;
	min-width: 120px;
	margin-right: 15px;
}

.request-url {
	flex-grow: 1;
	margin: 0 15px;
	font-family: monospace;
	word-break: break-all;
}

.status-code {
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: bold;
	font-family: monospace;
	min-width: 40px;
	text-align: center;
}

.status-2xx {
	background-color: var(--success-bg);
	color: var(--success-text);
}

.status-3xx {
	background-color: var(--warning-bg);
	color: var(--warning-text);
}

.status-4xx {
	background-color: var(--danger-bg);
	color: var(--danger-text);
}

.status-5xx {
	background-color: var(--info-bg);
	color: var(--info-text);
}

.status-other {
	background-color: var(--other-bg);
	color: var(--other-text);
}

.loading {
	text-align: center;
	padding: 20px;
	color: var(--text-muted);
}

.error {
	background-color: var(--danger-bg);
	color: var(--danger-text);
	padding: 15px;
	border-radius: 5px;
	margin: 20px 0;
}

.hidden {
	display: none !important;
}