/* Общие стили */
body {
  background: linear-gradient(135deg, #191970, #66CDAA);
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Заголовок */
h1 {
  text-align: center;
  font-weight: 900;
  font-size: 3rem;
  margin-bottom: 10px;
  color: #00eaff;
  text-shadow:
    0 0 8px #00eaff,
    0 0 20px #09add3,
    0 0 40px #00eaff;
}

.diamond-icon {
  margin: 0 0.3em;
  color: #00eaff;
  text-shadow: 0 0 8px #00eaff;
}

/* Навигация */
.nav-bar {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-bar a {
  display: inline-flex;
  align-items: center;
  background: #09add3;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 8px #09add3;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.nav-bar a:hover {
  background: #00eaff;
  box-shadow: 0 0 15px #00eaff;
  transform: translateY(-2px);
}

.nav-bar a .fa {
  margin-right: 6px;
}

.nav-bar a.start-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 0 8px #f59e0b;
}

.nav-bar a.start-btn:hover {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 0 15px #f59e0b;
}

/* Основное содержимое */
.document-container {
  background: #121212;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
  border: 1px solid rgba(0, 234, 255, 0.2);
}

.document-header {
  color: #00eaff;
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 0 0 8px #00eaff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.document-header i {
  font-size: 1.5em;
}

h2 {
  color: #00eaff;
  font-size: 1.5rem;
  margin: 25px 0 15px;
  border-bottom: 2px solid #00eaff;
  padding-bottom: 5px;
}

h3 {
  color: #00eaff;
  font-size: 1.2rem;
  margin: 20px 0 10px;
}

p, li {
  margin-bottom: 15px;
  color: #e0e0e0;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
  position: relative;
}

li:before {
  content: "•";
  color: #00eaff;
  margin-right: 8px;
}

.highlight {
  color: #f59e0b;
  font-weight: 600;
}

/* Основной контент с двумя колонками */
.main-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Правая колонка: мониторинг */
.right-section {
  flex: 1 1 320px;
  background: #121212;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px #09add3;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.monitor-block {
  background: #181818;
  border-radius: 10px;
  padding: 15px;
  box-shadow: inset 0 0 10px #09add3;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #00eaff;
  font-weight: 700;
  font-size: 1.5rem;
  border-bottom: 2px solid #00eaff;
  padding-bottom: 5px;
}

/* Кнопка входа */
.btn-login {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #09add3;
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 0 12px #09add3;
  transition: background-color 0.3s ease;
  text-decoration: none;
  user-select: none;
}

.btn-login:hover {
  background: #00eaff;
  box-shadow: 0 0 20px #00eaff;
  text-decoration: none;
  color: white;
}

/* Мониторинг серверов */
.server-status {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #222;
  border-radius: 8px;
  box-shadow: inset 0 0 8px #00eaff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.server-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.server-name {
  font-weight: 700;
  font-size: 1rem;
  color: #00eaff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.server-version {
  font-size: 0.75rem;
  color: #aaa;
  white-space: nowrap;
}

.online-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  flex-shrink: 0;
}

.online-indicator {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #00eaff;
  flex-shrink: 0;
}

.online-fill {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: 50%;
  background: conic-gradient(#00eaff var(--fill-percent), transparent 0);
  transform: rotate(-90deg);
  transform-origin: center;
}

.online-fill.full {
  background: #00eaff;
}

.online-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f0;
  white-space: nowrap;
}

/* Общие стили уведомлений */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
  font-size: 1.1rem;
  text-align: center;
}

.notification.success {
  background-color: #10b981;
  color: white;
}

.notification.error {
  background-color: #ef4444;
  color: white;
}

/* Подвал */
.footer {
  margin-top: 50px;
  text-align: center;
  color: #555;
  font-size: 0.9rem;
  user-select: none;
}

/* Профиль */
.profile-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.user-info-block, .skin-cape-block {
  flex: 1;
  min-width: 300px;
}

.user-info-block h3, .skin-cape-block h3 {
  color: #00eaff;
  margin-bottom: 10px;
}

#user-info p {
  margin: 10px 0;
}

.skin-cape-block form {
  margin-top: 10px;
}

.skin-cape-block input[type="file"] {
  margin-bottom: 10px;
  background: #222;
  color: #eee;
  padding: 8px;
  border-radius: 6px;
  border: none;
}

#skin-viewer {
  border: 1px solid #09add3;
  border-radius: 6px;
  background: #181818;
}

.change-password-block {
  margin-top: 25px;
}

.logout-block {
  margin-top: 25px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #09add3;
  font-size: 1.1rem;
}

.input-group input {
  width: 100%;
  padding: 10px 10px 10px 38px;
  border: none;
  border-radius: 6px;
  background: #222;
  color: #eee;
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 0 8px #09add3;
  transition: background-color 0.3s ease;
}

.input-group input:focus {
  background: #333;
  box-shadow: 0 0 10px #00eaff;
}

/* Адаптивность */
@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
  }
  .right-section {
    flex: 1 1 100%;
  }
  h1 {
    font-size: 2.2rem;
  }
  .document-header {
    font-size: 1.5rem;
  }
  .nav-bar {
    flex-direction: column;
    align-items: center;
  }
  .nav-bar a {
    width: 100%;
    justify-content: center;
  }
  .profile-columns {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .server-name {
    max-width: 100px;
  }
  .server-version {
    display: none;
  }
}