:root {
	--p-color: #2563eb;
	--bg: #f8fafc;
	--border: #e2e8f0;
}

body {
	font-family: -apple-system, sans-serif;
	background: var(--bg);
	margin: 15px;
	font-size: 13px;
	color: #1e293b;
	height: 98vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.drop-zone {
	border: 2px dashed #cbd5e1;
	padding: 15px;
	text-align: center;
	background: white;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.2s;
}

.drop-zone.hover {
	border-color: var(--p-color);
	background: #eff6ff;
	transition: background-color 0.5s ease-in-out; 
	transition: border-color 0.5s ease-in-out; 
}

.drop-zone.parse-error {
	background-color: #FEE2E2;
	border-color: #FCA5A5;
}

.source-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0;
}

.source-tag {
	background: #fff;
	border: 1px solid var(--border);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
}
.preset-area {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 12px;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}

.btn-preset {
	background: #e2e8f0;
	border: none;
	padding: 4px 12px;
	border-radius: 15px;
	cursor: pointer;
	font-size: 11px;
}

.btn-preset.active {
	background: var(--p-color) !important;
	color: white !important;
}

.filter-panel {
	background: white;
	padding: 12px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 6px;
}

.filter-group, .setting-item {
	display: flex;
	flex-direction: column;
	position: relative;
}

.filter-group label,
.setting-item label {
	font-size: 10px;
	font-weight: bold;
	color: #64748b;
	margin-bottom: 3px;
}

input {
	padding: 0 8px;
	height: 28px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	font-size: 12px;
	box-sizing: border-box;
	width: 100%;
}

select {
	height: 28px;
	padding: 0 8px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	font-size: 12px;
}


.input-toggle-group {
	display: flex;
	height: 28px;
}

.input-toggle-group input {
	flex-grow: 1;
	border-radius: 4px 0 0 4px;
	border-right: none;
}

.toggle-btn {
	border: 1px solid #cbd5e1;
	padding: 0 8px;
	cursor: pointer;
	font-size: 10px;
	border-radius: 0 4px 4px 0;
	min-width: 45px;
	border-left: none;
}

.toggle-btn.gte {
	background: #dcfce7;
	color: #166534;
}

.toggle-btn.lte {
	background: #fee2e2;
	color: #991b1b;
}

/* 固定された（操作不能な）ボタンのスタイル */
.fixed-btn {
	border: 1px solid #cbd5e1;
	padding: 0 8px;
	font-size: 10px;
	border-radius: 0 4px 4px 0;
	min-width: 45px;
	border-left: none;
	pointer-events: none;
}

.fixed-btn.gte {
	background: #dcfce7;
	color: #166534;
	border-color: #86efac;
}

.fixed-btn.lte {
	background: #fee2e2;
	color: #991b1b;
	border-color: #fca5a5;
}

.multi-select {
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	height: 26px;
	background: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 8px;
	overflow-x: auto;
}

.dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	width: 100%;
	background: white;
	border: 1px solid #cbd5e1;
	z-index: 100;
	max-height: 200px;
	overflow-y: auto;
	border-radius: 4px;
}

.dropdown-content.show {
	display: block;
}

.dropdown-item {
	padding: 8px 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.dropdown-item input {
	width: 14px;
	height: 14px;
	margin: 0;
}

.status-badge {
	background: var(--p-color);
	color: white;
	padding: 1px 6px;
	border-radius: 10px;
	font-size: 10px;
	white-space: nowrap;
	cursor: pointer;
}

.actions {
	margin: 8px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: white;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid var(--border);
}

.btn-primary {
	background: var(--p-color);
	color: white;
	border: none;
	padding: 8px 20px;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
}

.btn-primary:disabled {
	background: #cbd5e1;
	cursor: not-allowed;
}

#zip-padding {
	width: 60px;
	height: 28px;
	text-align: center;
}

.scroll-area {
	flex-grow: 1;
	overflow: auto;
	border: 1px solid var(--border);
	background: white;
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 1000px;
}

th,
td {
	border-bottom: 1px solid var(--border);
	padding: 6px 8px;
	text-align: left;
	font-size: 11px;
}

th {
	background: #f1f5f9;
	position: sticky;
	top: 0;
	z-index: 10;
}

.row-selected {
	background: #eff6ff !important;
}

/* 時間・時刻切替ボタンのスタイル */
.btn-small {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	color: #64748b;
	font-size: 9px;
	padding: 1px 6px;
	border-radius: 4px;
	cursor: pointer;
	transition: 0.2s;
	margin-left: 4px;
	vertical-align: middle;
	line-height: 1;
}

.btn-small:hover {
	background: #e2e8f0;
	color: #1e293b;
	border-color: #94a3b8;
}

.btn-small:active {
	background: #cbd5e1;
	transform: translateY(1px);
}

.bulk-actions {
	margin-left: 15px; 
	display: inline-flex;
	gap: 8px;

}
.btn-text {
	background: none;
	border: none;
	color: var(--p-color);
	cursor: pointer;
	font-size: 11px;
	padding: 0;
	text-decoration: underline;

}

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

.url-link {
	color: var(--p-color);
	text-decoration: none;
	cursor: pointer;
}
.url-link:hover {
	text-decoration: underline;
}

#list-body tr {
	cursor: pointer;
	transition: background-color 0.1s;
}
#list-body tr:hover {
	background-color: #f1f5f9;
}
.reset-group {
	justify-content: flex-end;
}

.btn-reset {
	height: 30px;
	background: #fff;
	border: 1px solid #fca5a5;
	color: #ef4444;
	border-radius: 4px;
	font-size: 11px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.btn-reset:hover {
	background: #fef2f2;
	border-color: #ef4444;
	box-shadow: 0 1px 2px rgba(239, 68, 68, 0.1);
}

.btn-reset:active {
	background: #fee2e2;
	transform: translateY(1px);
}

.btn-reset .icon {
	font-size: 14px;
}

.preset-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}


.preset-actions {
	margin-left: 20px;
}

.preset-actions .btn-icon {
	padding: 0 5px;
	background-color: transparent;
	border: none;
	cursor: pointer;
	outline: none;
	appearance: none;
	position: relative;
}
.preset-actions .btn-icon img {
	height: 20px;
	width: 20px;
}
div.green-check {
	opacity: 0;
	transition: opacity 0.5s ease-in-out; 
}
.success div.green-check {
	opacity: 1; 
	position: absolute;
	top: -7px;
	left: 0;
	content: '';
	width: 30px;
	height: 15px;
	border-left: 5px solid #25B000;
	border-bottom: 5px solid #25B000;
	transform: rotate(-45deg);
}

.download-controls {
	display: flex;
	gap: 5px;
	align-items: center;
}

.settings-grid {
	display: flex;
	align-items: left;
	gap: 5px;
	flex: 1;
}