body {
	font-family: 'Inter', sans-serif;
	background-color: #f8f9fa;
	margin: 0;
	padding: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.container {
	max-width: 1200px;
	width: 95%;
	padding: 40px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

h1 {
	text-align: center;
	color: #2c3e50;
	margin-bottom: 30px;
	font-weight: 700;
}

#credentialSection {
	display: grid;
	grid-template-columns: auto auto auto;
	gap: 15px;
	margin-bottom: 30px;
	align-items: center;
}

#credentialSection input[type='text'] {
	padding: 14px;
	border: 1px solid #ced4da;
	border-radius: 8px;
	font-size: 1rem;
}

#credentialSection button {
	padding: 14px 24px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
	font-size: 1rem;
	font-weight: 500;
}

#credentialSection button:hover {
	background-color: #0056b3;
}

#credentialList {
	margin-top: 15px;
	padding: 15px;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	background-color: #f8f9fa;
	font-size: 0.9rem;
}

#credentialList label {
	display: block;
	margin-bottom: 8px;
}

select#dateSelect,
select#timezoneSelect,
input#customDate {
	padding: 8px 12px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	border: 1px solid #ccc;
	border-radius: 6px;
	margin: 8px 0;
	display: inline-block;
	min-width: 150px;
	background-color: #fff;
	transition: border 0.2s ease, box-shadow 0.2s ease;
}

select#dateSelect:focus,
select#timezoneSelect:focus,
input#customDate:focus {
	border-color: #3f51b5;
	box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
	outline: none;
}

/* Дополнительное оформление при отображении поля выбора даты */
input#customDate {
	display: none; /* по умолчанию скрыт */
}

.fetch-btn {
	padding: 14px 24px;
	background-color: #28a745;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
	font-size: 1rem;
	font-weight: 500;
	margin: 8px;
}

.fetch-btn:hover {
	background-color: #1e7e34;
}

#stopButton {
	background-color: #dc3545;
}

#stopButton:hover {
	background-color: #c82333;
}

#loadingIndicator {
	margin-top: 30px;
	font-weight: 600;
	text-align: center;
	color: #6c757d;
	font-size: 1.1rem;
}

#progressIndicator {
	margin-top: 15px;
	text-align: center;
	color: #868e96;
	font-size: 0.95rem;
}

.styled-table {
	width: 100%;
	border-collapse: separate; /* Используем separate для задания gap между строками */
	border-spacing: 0; /* Убираем стандартные отступы между ячейками */
	margin-top: 40px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	border: 1px solid #e9ecef;
}

.styled-table thead tr {
	background-color: #343a40;
	color: white;
	text-align: left;
	font-weight: 600;
}

.styled-table th,
.styled-table td {
	padding: 16px;
	text-align: left;
	font-size: 0.95rem;
}

.styled-table th {
	font-weight: 600;
}

.styled-table tbody tr {
	background-color: #fff; /* Установим белый фон по умолчанию */
}

.styled-table tbody tr.level-1 {
	background-color: #f0f0f5; /* Светло-серый фон для level 1 */
	font-weight: 600; /* Сделаем шрифт level 1 еще жирнее */
	border-bottom: 2px solid #ddd; /* Добавим отчетливую нижнюю границу */
}

.styled-table tbody tr.level-2 td {
	padding-left: 40px; /* Увеличим отступ для level 2 */
	font-style: italic;
	color: #777; /* Ещё немного приглушим цвет level 2 */
}

.styled-table tbody tr:last-child td {
	border-bottom: none;
}

.styled-table input.cost-input {
	width: 120px;
	padding: 10px;
	border: 1px solid #adb5bd;
	border-radius: 6px;
	font-size: 0.9rem;
}

.styled-table td.status {
	padding-left: 16px;
	font-weight: 500;
	color: #6c757d;
}

.styled-table td.status.success {
	color: #28a745;
}

.styled-table td.status.error {
	color: #dc3545;
}

.spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #007bff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 30px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

#notification {
	padding: 16px 20px;
	margin-top: 30px;
	border-radius: 8px;
	color: white;
	text-align: center;
	font-size: 1rem;
}

.error-log {
	margin-top: 40px;
	border: 1px solid #e74c3c;
	padding: 20px;
	background-color: #fdecea;
	border-radius: 12px;
}

.error-log h2 {
	color: #e74c3c;
	margin-top: 0;
	margin-bottom: 15px;
	font-weight: 700;
}

.error-log ul {
	list-style: none;
	padding: 0;
}

.error-log li {
	padding: 10px 0;
	border-bottom: 1px solid #fbd5d5;
	font-size: 0.9rem;
}

.error-log li:last-child {
	border-bottom: none;
}
