/* Общее начало */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background-color: #ebebeb;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
}

a {
  color: #000;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #ccc;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Общие компоненты */

button,
.button {
  padding: 0.75rem 1.5rem;
  background: #cccccc;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background-color 0.3s;
}

button:hover,
.button:hover {
  background: #bbbbbb;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.msg {
  border: 2px solid #f45f5f;
  border-radius: 3px;
  padding: 10px;
  text-align: center;
  margin: 1rem 0;
  color: #721c24;
  background-color: #f8d7da;
}

.text-success {
  color: green;
}

.text-danger {
  color: red;
}

/* Header конец */

/* Footer начало */

#footer {
  background: #cccccc;
  color: #000000;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  padding: 0;
  clear: both;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  max-height: 40px;
  width: auto;
  transition: opacity 0.3s;
}

.footer-logo img:hover {
  opacity: 0.8;
}

.footer-info {
  display: flex;
  flex-direction: column;
}

.copyright {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #333;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #4f0151;
}

.page-generation-time {
  font-size: 80%;
  color: #666;
  text-align: right;
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 0.75rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 1rem;
  }

  .footer-links {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .page-generation-time {
    text-align: center;
  }
}

/* Footer конец */

/* Input начало */

#siteInput {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 1rem;
}

#siteInput form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#siteInput button {
  margin-top: 1rem;
}

#siteInput .msg {
  margin-top: 1rem;
}

#siteInput input {
  border: none;
  border-bottom: 2px solid #4f0151;
  border-radius: 0;
  background-color: transparent;
}

#siteInput input:focus {
  outline: none;
  border-color: #7b0282;
}

/* SiteInput конец */

/* Stats начало */

#stats {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  min-height: 80vh;
}

#stats form {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#stats h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

#stats h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

#stats p {
  margin: 0.5rem 0;
}

#stats img {
  display: block;
  margin: 0 auto 1.5rem;
  max-height: 250px;
  width: auto;
}

/* Stats конец */

/* 404 начало */

#error404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

#error404 h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

#error404 p {
  font-size: 1.25rem;
}

/* 404 конец */

/* mainPage начало */

#mainPage {
  padding: 2rem 0;
  text-align: center;
}

#mainPage .mainDescription {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

#mainPage .mainDescription h2 {
  margin-bottom: 1.5rem;
}

#mainPage .mainDescription p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
  text-align: left;
}

#mainPage .mainDescription p strong {
  color: #4f0151;
}

@media (max-width: 768px) {
  #mainPage .mainDescription p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* mainPage конец */

/* monitoring начало */

#monitoring {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 600px;
}

#monitoring h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#monitoring p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#monitoring button {
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  font-weight: bold;
}

/* monitoring конец */

/* donate начало */

#donate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 1rem;
}

#donate form {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#donate button {
  margin-top: 1rem;
  width: 100%;
}

#donate input {
  border: none;
  border-bottom: 2px solid #4f0151;
  border-radius: 0;
  background-color: transparent;
}

#donate input:focus {
  outline: none;
  border-color: #7b0282;
}

/* donate конец */

/* donateFail начало */

#donateFail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

#donateFail h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #721c24;
}

#donateFail p {
  font-size: 1.25rem;
}

/* donateFail конец */

/* donateSuccess начало */

#donateSuccess {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

#donateSuccess h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #155724;
}

#donateSuccess p {
  font-size: 1.25rem;
}

/* donateSuccess конец */

/* Медиа-запросы для адаптивности */

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  #stats form {
    padding: 1rem;
  }

  #stats img {
    max-height: 200px;
  }

  #error404 h1 {
    font-size: 2.5rem;
  }

  #mainPage .mainDescription p {
    font-size: 1.1rem;
  }

  #monitoring h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }

  #siteInput form,
  #donate form,
  #stats form {
    padding: 1rem;
  }

  #stats img {
    max-height: 150px;
  }

  #error404 h1 {
    font-size: 2rem;
  }

  #monitoring button {
    width: 100%;
  }
}

/* Добавляем новые стили в конец файла style.css */

/* Секция с системами сервера */
#server-features {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #4f0151;
  margin: 0.5rem auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  color: #4f0151;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .feature-icon {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Добавляем стили для времени генерации страницы в конец файла style.css */

.page-generation-time {
  font-size: 80%;
  color: #666;
  text-align: right;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .page-generation-time {
    text-align: center;
  }
}

/* Добавляем стили для нового блока мониторинга в конец файла style.css */

/* Мониторинг сервера */
#server-monitoring {
  padding: 3rem 0;
}

.monitoring-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.monitoring-header {
  padding: 1.5rem;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.server-status {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.server-status i {
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

.server-status.online {
  color: #28a745;
}

.server-status.offline {
  color: #dc3545;
}

.monitoring-content {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.server-info {
  flex: 1;
  min-width: 250px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.info-item i {
  width: 24px;
  margin-right: 1rem;
  color: #4f0151;
}

.progress-container {
  margin-top: 1.5rem;
}

.progress-bar {
  height: 12px;
  background-color: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background-color: #4f0151;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
}

.server-connect {
  margin-top: 1.5rem;
}

.connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: #4f0151;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.connect-button:hover {
  background-color: #7b0282;
  color: white;
}

.connect-button i {
  margin-right: 0.5rem;
}

.server-message {
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 4px;
  color: #666;
  font-style: italic;
}

@media (max-width: 768px) {
  .monitoring-content {
    flex-direction: column;
  }

  .server-info,
  .server-connect {
    width: 100%;
  }

  .server-connect {
    margin-top: 1.5rem;
    text-align: center;
  }

  .connect-button {
    width: 100%;
  }
}

