/* === Контейнер фильтров === */
#public-forms-container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 25px 30px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* Заголовок */
#public-forms-container h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* Сетка фильтров (2 колонки) */
#public-forms-container .filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 40px;
    margin-bottom: 20px;
}

#public-forms-container select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
}

#public-forms-container select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

#public-forms-actions {
    text-align: center;
    margin-top: 20px;
}

#public-forms-actions .button {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
}

/* === Таблица === */
.public-table-wrapper {
    overflow-x: auto;
    width: 100%;
    margin-top: 25px;
}

.public-table-wrapper table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    font-size: 14px;
}

.public-table-wrapper th,
.public-table-wrapper td {
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
}

.public-table-wrapper th {
    background: #f8f9fb;
    color: #333;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
}

.public-table-wrapper tr:nth-child(even) td {
    background: #fafafa;
}

.public-table-wrapper tr:hover td {
    background: #f0f6ff;
}

.loading {
    text-align: center;
    padding: 15px;
    color: #666;
}

/* === Адаптивность === */
@media (max-width: 768px) {
    #public-forms-container .filters-grid {
        grid-template-columns: 1fr;
    }
}
/* Контейнер для статистики — две колонки */
#public-forms-stats-content {
	display: grid;
	gap: 25px 30px;
	align-items: start;
	margin-top: 25px;
	justify-items: center;
}

/* Каждая карточка вопроса */
#public-forms-stats-content .stats-item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 15px 20px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#public-forms-stats-content .stats-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Заголовок вопроса (номер + текст) */
#public-forms-stats-content .stats-item h4 {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
}

/* Диаграмма */
#public-forms-stats-content .stats-item canvas {
	display: block;
	margin: 0 auto 10px;
	max-width: 230px;
	max-height: 230px;
	width: 100%;
	height: auto;
}

/* Список ответов */
#public-forms-stats-content .stats-item ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: #555;
}

#public-forms-stats-content .stats-item li {
	margin: 4px 0;
}

/* Горизонтальный скролл на маленьких экранах */
.public-table-wrapper,
#public-forms-stats-content {
	overflow-x: auto;
}

/* === Центрирование заголовка общей статистики === */
#public-forms-stats-content h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

/* === Сетка для диаграмм (2 колонки) === */
.stats-scroll-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 30px;
    align-items: start;
    margin-top: 25px;
	justify-items: center;
}

/* На узких экранах — одна колонка */
@media (max-width: 768px) {
    .stats-scroll-container {
        grid-template-columns: 1fr;
    }
}
