/* Глобальные настройки */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  background: url("../images/background.jpg") no-repeat center center/cover;
  overflow: hidden;
}

/* Контент всегда от верха */
.content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 60px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Верхняя панель */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0px;
}

/* Статус */
.status, .updating {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 12px;
  width: 200px;
}

.status img, .updating img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.status-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.admincp {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  background: #ff9800;
  color: white;
  margin-left: 20px;
}

.admincp:hover {
  background: #e68a00;
}

.online-bar, .progress-bar {
  height: 4px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

#online-fill, #progress-fill {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.3s;
}

/* Центрированный блок */
.center {
  max-width: 50%;
}

/* Убираем фокус-рамки со всех кнопок */
button:focus {
  outline: none;
  box-shadow: none;
}

/* Убираем фокус-рамки для кнопок внутри диалогового окна */
.dialog-box button:focus {
  outline: none;
  box-shadow: none;
}

/* Убираем фокус-рамки для селектора разрешений */
#resolution-select:focus {
  outline: none;
  box-shadow: none;
}

/* При необходимости — убрать рамку у всех select */
select:focus {
  outline: none;
  box-shadow: none;
}


/* Заголовки */
.center h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.pagination {
	margin-top: 12px;
	text-align: center;
}

.pagination button,
.pagination .dots {
	margin: 0 4px;
	padding: 6px 12px;
	border: none;
	border-radius: 6px;
	background-color: #2c2f4a;
	color: white;
	cursor: pointer;
	font-size: 13px;
}

.pagination button:hover {
	background-color: #3d3f6a;
}

.pagination button.active {
	background-color: #7b4dfb;
	font-weight: bold;
}

.pagination .dots {
	cursor: default;
	background: transparent;
	color: #aaa;
}

.center p {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Кнопки */
.buttons {
  display: flex;
}

.buttons > *:not(:last-child) {
  margin-right: 20px;
}

.start, .settings{
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.start {
  background: #7b4dfb;
  color: white;
}

.start:hover {
  background: #6b39e3;
}

.settings {
  background: #2c2e36;
  color: white;
}

.settings:hover {
  background: #3d3f4a;
}

.guides {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none; /* removes underline */
  background: #556B2F;   /* your green */
  color: white;
}

.guides:hover {
  background: #8FBC8F;  /* lighter green on hover */
}

/* Секции новостей */
.news-sections {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.news-sections .panel {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
  min-width: 0;
}

.news-sections .panel:not(:last-child) {
  margin-right: 20px;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.panel ul {
  list-style: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
}

.panel li {
  margin-bottom: 10px;
}

.panel li:last-child {
  margin-bottom: 0;
}

/* Нижняя часть */
.footer {
  text-align: right;
  font-size: 13px;
  padding-top: 10px;
  color: #ccc;
}

.footerLicense {
  margin-top: 20px;
  border-radius: 10px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(to right, #181c2ab8, #1e2233bd);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 13px;
  color: #bbb;
}

.footerLicense-left span,
.footerLicense-right span {
  font-weight: 500;
  font-size: 13px;
}

#license-owner {
  color: #9b8dfb;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(123, 77, 251, 0.4);
}

#license-valid {
  color: #4dff88;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.offline {
  color: green;
}

/* Диалог настроек */
.settings-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-box {
  background-color: #1e1e2f;
  border-radius: 12px;
  padding: 30px;
  width: 300px;
  color: white;
}

.dialog-box h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.dialog-box label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.dialog-box select {
  width: 100%;
  padding: 6px;
  background-color: #2c2f4a;
  color: white;
  border: none;
  border-radius: 6px;
  margin-bottom: 16px;
}

.dialog-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.dialog-buttons button {
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

#save-settings {
  background-color: #7b4dfb;
  color: white;
}

#save-settings:hover {
  background-color: #6b39e3;
}

#cancel-settings {
  background-color: #2f2f3f;
  color: #ccc;
}

#cancel-settings:hover {
  background-color: #3e3e4f;
}
