/* === 全局 === */
body {
	font-family: "Segoe UI", Roboto, sans-serif;
	background: #fff;
	color: #222;
	padding: 20px;
	line-height: 1.6;
}

/* === LOG === */
.log-line {
	margin-bottom: 4px;
	font-size: 14px;
	opacity: 1;
	transition: opacity 1s ease;
}
.log-line.dim {
	opacity: 0.4;
}

/* === 分頁區塊 === */
.tab-btn {
	background: transparent;
	color: #555;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 8px 16px;
	margin-right: 12px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}
.tab-btn:hover {
	color: #000;
	border-bottom: 3px solid #bbb;
	background-color: #f9f9f9;
}
.tab-content {
	padding-top: 1em;
}
.tabs {
	display: flex;
	border-bottom: 2px solid #ddd;
	margin-bottom: 1em;
}
.tab-btn.active {
	background-color: #2196f3;
	color: #fff;
	border-bottom: 3px solid #1976d2;
	font-weight: 600;
	border-radius: 6px 6px 0 0;
	box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1) inset;
}

/* === 進度區塊 === */
.progress-section {
	margin-bottom: 20px;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 10;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}
.progress-bar {
	background: #eee;
	border: 1px solid #ccc;
	height: 24px;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
}
.progress-fill {
	height: 100%;
	background: #4caf50;
	width: 0%;
	transition: width 0.3s ease;
}
.progress-text {
	color: #333;
	text-align: center;
	margin-top: 4px;
	font-weight: bold;
}

/* === 按鈕通用樣式 === */
button,
.state-btn {
	background: #f8f8f8;
	color: #333;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-right: 6px;
	margin-top: 6px;
}
button:hover,
.state-btn:hover {
	background: #eaeaea;
}

/* === 特殊狀態按鈕 === */
.btn-start {
	background: #2196f3;
	color: #fff;
}
.btn-start:hover {
	background: #1976d2;
}
.btn-pause {
	background: #f44336;
	color: #fff;
}
.btn-pause:hover {
	background: #d32f2f;
}
.btn-resume {
	background: #4caf50;
	color: #fff;
}
.btn-resume:hover {
	background: #388e3c;
}
.state-btn.btn-done {
	background: #e0e0e0;
	color: #999;
	cursor: not-allowed;
}

/* === Spinner === */
.spinning .spinner {
	display: inline-block;
	width: 1em;
	height: 1em;
	border: 2px solid #999;
	border-top: 2px solid transparent;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	vertical-align: middle;
	margin-left: 0.5em;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* === Tooltip === */
.tooltip {
	position: relative;
	cursor: help;
	border-bottom: 1px dotted #999;
}
.tooltip:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	top: 1.5em;
	left: 0;
	z-index: 10;
	background: #333;
	color: #fff;
	padding: 6px 10px;
	font-size: 13px;
	border-radius: 4px;
	white-space: pre-line;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* === Model Selector === */
#model-selector {
	position: fixed;
	top: 10px;
	right: 10px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 10px 15px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}
#start-button {
	margin-top: 10px;
	width: 100%;
	font-size: 1em;
}
