body {
	font-family:  Arial, sans-serif;					
	margin: 0;
	padding: 0;
	padding-top:30px;
}

/* ОСНОВНЫЕ ЭЛЕМЕНТЫ */
table{
  margin: 10px 0;	
	box-sizing: border-box;
	width: 100%;
}				
td{
	padding: 8px;
	border: 1px solid #ddd;	
}			
th{
	padding: 8px;
	border: 1px solid #ddd;	
  background: linear-gradient(to bottom, rgba(240, 250, 253, 1) 0%, rgba(210, 237, 247, 1) 100%);	
}
form{
	box-shadow: 1px 1px 3px;
  margin: 10px 0;
  padding: 20px;
  border-radius: 5px;
}	
form.noForm{
	box-shadow: none;
  margin: 0;
  padding: 0;
}
label {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	color: #555;
}
input[type=text]{
		width: 100%;
		padding: 10px;
		border: 1px solid #ddd;
		border-radius: 4px;
		font-size: 14px;
		box-sizing: border-box;
}
textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	min-height: 100px;
}
input[type=submit], button {
		width: 100%;
		padding: 2px;
		background: linear-gradient(to top, #27667d 0%, #488ebf 100%);
		border: none;
		color:#fff;
		border-radius: 14px;
		font-size: 16px;
		font-weight: 600;
		cursor: pointer;
		transition: background-color 0.3s;
}
input[type=submit]:hover, button:hover{
	background: linear-gradient(to bottom, #d2edf7 0%, #52bae6 100%);
}

/* ОСНОВА */
.container {
	margin: 0 auto;
	padding: 0 20px;
}
.flex{
	display:flex;
}
.blueTitle {
  line-height: 75px;
  background: linear-gradient(to bottom, rgba(240, 250, 253, 1) 0%, rgba(210, 237, 247, 1) 100%);
  margin: -7px -20px 0;
  padding: 0 20px;
}
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  top: 5px;
}
.divBtn{
	padding: 10px;
  border: 1px solid;
  cursor: pointer;
}
.divBtn.active{
	color:#fff;
	background:#000;
}
.hidden{
	display:none;
}
.btn{
		width: 100%;
		padding: 12px;
		background: linear-gradient(to top, #d2edf7 0%, #52bae6 100%);
		border: none;
		color:#fff;
		border-radius: 4px;
		font-size: 16px;
		font-weight: 600;
		cursor: pointer;
		transition: background-color 0.3s;	
}



/* ПАНЕЛЬ МЕНЮ */
.top_panel {
	box-sizing: border-box;
	position:absolute;
	top:0px;
	width:100%;				
	background: linear-gradient(to bottom, rgba(254, 254, 255, 1) 0%, rgba(229, 234, 245, 1) 50%, rgba(212, 219, 237, 1) 51%, rgba(225, 230, 246, 1) 100%);
	border-bottom: 1px solid #b6bccc;
	padding: 0 12px;
	color: #535252;
	height: 23px;
	display:flex;
	justify-content: space-between;
}		
.top_panel a {
	color: #535252;
	font-size: 12px;
	text-decoration: none;
	line-height: 16px;
	border-right: 1px solid #535252;
	display: inline-block;
	padding: 0 7px;
}	
.top_panel a:last-child {
border-right: none;
}			
.top_panel a.active {
  color: #fff;	
	background:#000;
}

.top_panel_right span{
color: #535252;
font-size: 12px;
line-height: 21px;	
cursor:pointer;
display: block;
padding: 0 7px;	
}				

.answers {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.answers svg {
    fill: #666;
    transition: fill 0.3s;
}

.answers-count {
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
}






/* Стили для вкладок */
.tabs {
		display: flex;
		border-bottom: 0px solid #e0e0e0;
}

.tab {
		flex: 1;
		text-align: center;
		padding: 15px 0;
		cursor: pointer;
		font-weight: 600;
		color: #666;
		transition: all 0.3s ease;
}

.tab.active {
		color: #52bae6;
		border-bottom: 2px solid #52bae6;
}

/* Стили для содержимого вкладок */
.tab-content {
		padding: 25px;
		display: none;
}

.tab-content.active {
		display: block;
}

/* Стили для формы */
.form-group {
		margin-bottom: 15px;
}



#success-notification{
  position: fixed;
	right: 20px;
	top: 20px;
	background-color: #000;
	color: #fff;
	padding: 15px 20px;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
	z-index: 10000;
	animation: fadeIn 0.5s ease;		
}
@keyframes fadeIn {
		from { opacity: 0; transform: translateX(100px); }
		to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
		from { opacity: 1; }
		to { opacity: 0; }
}


.status-new {
		background-color: #d4edda; /* Светло-зеленый фон */
		font-weight: bold;
}

.dop{
	display:none;
}
.dop.active{
	display:table-cell;
}
.dopNastroiki{
  float: right;
  position: relative;
  top: -20px;
  color: blue;
}
iframe{
	height:80vh;
}
.top_panel_right{
	display: flex;
  gap: 10px;
  font-size: 14px;
  padding-top: 3px;
}
.topStat {
	display:none;
  position: absolute;
  background: #fff;
  padding: 20px;
  right: 5px;
  box-shadow: 1px 1px 9px #ccc;
  border-radius: 10px;
  top: 23px;
}
.topStat.active{
	display:block;	
}
.topStat .stats-main{
	display: flex;
  gap: 20px;
}


.theme-selector-button {
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.theme-selector-button:hover {
    background-color: #005d8c;
}

.theme-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto; /* Добавляем прокрутку для всего модального окна */
}

.theme-modal-content {
    background-color: #fefefe;
    margin: 2% auto; /* Уменьшаем отступ сверху */
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Увеличиваем ширину для лучшего заполнения */
    max-width: 900px;
    max-height: 90vh; /* Ограничиваем высоту контента */
    border-radius: 5px;
    overflow-y: auto; /* Добавляем прокрутку содержимого */
    box-sizing: border-box; /* Учитываем padding в общей высоте */
    display: flex;
    flex-direction: column;
}

.theme-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 15px; /* Добавляем отступ */
}

.theme-modal-close:hover {
    color: black;
}

.theme-screenshots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    overflow-y: auto; /* Прокрутка если много тем */
    flex-grow: 1; /* Занимаем доступное пространство */
}

.theme-screenshot-item {
    width: calc(33.33% - 10px);
    cursor: pointer;
    border: 2px solid transparent;
    padding: 5px;
    box-sizing: border-box;
    min-height: 200px; /* Минимальная высота для единообразия */
}

.theme-screenshot-item:hover {
    border-color: #ddd;
}

.theme-screenshot-item.selected {
    border-color: #0073aa;
}

.theme-screenshot-item img {
    width: 100%;
    height: 180px; /* Фиксированная высота изображения */
    object-fit: cover; /* Заполняем область сохраняя пропорции */
}

.theme-name {
    text-align: center;
    margin-top: 5px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-row-separator {
    width: 100%;
    height: 0;
}

.confirm-button {
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px; /* Отступ сверху */
    align-self: flex-end; /* Выравниваем по правому краю */
}

.confirm-button:hover {
    background-color: #005d8c;
}

/* Заголовок модального окна */
.theme-modal-content h2 {
    margin-top: 0;
    padding-right: 30px; 
}
       .links-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}




/* СОЗДАНИЕ САЙТА */
#loadingOverlay{
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	color: white;
	font-size: 1.2em;		
}
.spinner{
	border: 5px solid #f3f3f3;
	border-top: 5px solid #3498db;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	margin-bottom: 15px;	
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* МОДАЛКА СОЗДАННЫХ СТРАНИЦ */
.links-modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	max-width: 800px;
	max-height: 70vh;
	border-radius: 5px;
	overflow-y: auto;
}
.links-modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}
.links-modal-close:hover {
    color: black;
}

.links-container {
  margin-top: 20px;
}
.link-item {
	padding: 8px;
	border-bottom: 1px solid #eee;
	word-break: break-all;
}
.link-item a {
	color: #0073aa;
	text-decoration: none;
}
.link-item a:hover {
	text-decoration: underline;
}
.index-cell{
	cursor:pointer;
	text-decoration:underline;
}