/* Стили для личного кабинета */

/* Подключение шрифта PaluiSP для заголовков */
@font-face {
  font-family: 'PaluiSP';
  src: url('../fonts/PaluiSP.woff2') format('woff2'),
       url('../fonts/PaluiSP.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Общие стили */
body {
  background-color: #000;
  color: #fff;
  font-family: Arial, sans-serif;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.dashboard-header h1 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 2.5em;
  font-family: 'PaluiSP', Arial, sans-serif;
  font-weight: bold;
}

.user-welcome p {
  margin: 0;
  color: #ffffff;
  font-size: 1.2em;
}

/* Основной контент */
.dashboard-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

/* Боковая панель */
.dashboard-sidebar {
  flex: 1;
  min-width: 250px;
}

.dashboard-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-nav li {
  margin-bottom: 5px;
}

.dashboard-nav a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #aaa;
  border-radius: 5px;
  transition: all 0.3s;
  background-color: #111;
  border-left: 3px solid #333;
}

.dashboard-nav a:hover {
  background-color: #222;
  color: #fff;
  border-left-color: #fff; /* Белый цвет при наведении */
}

.dashboard-nav .active a {
  background-color: #fff; /* Белый цвет для активного элемента */
  color: #000; /* Черный текст для контраста */
  border-left-color: #fff;
}

/* Основная область */
.dashboard-main {
  flex: 3;
  min-width: 300px;
}

.dashboard-main h2 {
  color: #fff;
  margin-top: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
  font-family: 'PaluiSP', Arial, sans-serif;
  font-size: 2em;
}

/* Виджеты */
.dashboard-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.widget {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s;
}

.widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.widget h3 {
  margin-top: 0;
  color: #fff;
  font-family: 'PaluiSP', Arial, sans-serif;
  font-size: 1.5em;
}

.widget p {
  color: #aaa;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  border: none;
  transition: all 0.3s;
  font-weight: bold;
  background-color: #fff; /* Белый цвет по умолчанию */
  color: #000; /* Черный текст по умолчанию */
  border: 1px solid #fff;
}

.btn:hover {
  background-color: #000; /* Черный цвет при наведении */
  color: #ffffff; /* Белый текст при наведении */
  border: 1px solid #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background-color: #fff; /* Белый цвет */
  color: #000; /* Черный текст */
  border: 1px solid #fff;
}

.btn-primary:hover {
  background-color: #000; /* Черный цвет при наведении */
  color: #fff; /* Белый текст при наведении */
  border: 1px solid #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: #333; /* Темно-серый цвет */
  color: #fff; /* Белый текст */
  border: 1px solid #555;
}

.btn-secondary:hover {
  background-color: #000; /* Черный цвет при наведении */
  color: #fff; /* Белый текст при наведении */
  border: 1px solid #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Формы */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #fff;
  font-family: 'PaluiSP', Arial, sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #222;
  color: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #fff; /* Белый цвет при фокусе */
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); /* Белый цвет при фокусе */
}

.form-check {
  display: flex;
  align-items: center;
}

.form-check input {
  width: auto;
  margin-right: 10px;
}

/* Сообщения */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.alert-error {
  background-color: #333; /* Серый цвет вместо красного */
  color: #fff;
  border: 1px solid #555;
}

.alert-success {
  background-color: #333; /* Серый цвет вместо зеленого */
  color: #fff;
  border: 1px solid #555;
}

/* Проекты */
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.project-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  border-color: #fff; /* Белый цвет при наведении */
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-family: 'PaluiSP', Arial, sans-serif;
}

.project-card h3 a {
  color: #fff; /* Белый цвет для ссылок */
  text-decoration: none;
}

.project-card h3 a:hover {
  text-decoration: underline;
}

.project-excerpt {
  color: #aaa;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.project-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #333; /* Серый цвет для статуса */
  color: #fff;
}

.project-date {
  color: #000000;
  font-size: 12px;
}

.no-projects {
  text-align: center;
  padding: 50px 20px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
}

.no-projects p {
  margin-bottom: 25px;
  color: #aaa;
  font-size: 1.1em;
}

/* Поддержка */
.tickets-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.ticket-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ticket-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #fff;
  font-family: 'PaluiSP', Arial, sans-serif;
}

.ticket-content {
  color: #aaa;
  margin-bottom: 20px;
  line-height: 1.6;
}

.ticket-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.ticket-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #333; /* Серый цвет для статуса */
  color: #fff;
}

.ticket-date {
  color: #aaa;
  font-size: 12px;
}

/* Страница проекта */
.project-detail .project-meta {
  margin-bottom: 35px;
  padding: 20px;
  background: #222;
  border-radius: 8px;
  border: 1px solid #333;
}

.project-content {
  margin-bottom: 35px;
  line-height: 1.7;
  color: #ccc;
}

.project-files h3 {
  margin-top: 0;
  font-family: 'PaluiSP', Arial, sans-serif;
  color: #fff;
}

.files-list {
  list-style: none;
  padding: 0;
}

.files-list li {
  padding: 12px 0;
  border-bottom: 1px solid #333;
}

.files-list li:last-child {
  border-bottom: none;
}

.files-list a {
  color: #fff; /* Белый цвет для ссылок */
  text-decoration: none;
}

.files-list a:hover {
  text-decoration: underline;
}

.files-list small {
  color: #aaa;
  margin-left: 10px;
}

/* Страница входа */
.login-container {
  max-width: 450px;
  margin: 50px auto;
  padding: 40px;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.login-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 35px;
  color: #fff;
  font-family: 'PaluiSP', Arial, sans-serif;
  font-size: 2.2em;
}

.login-form .form-group {
  margin-bottom: 25px;
}

.login-links {
  text-align: center;
  margin-top: 25px;
}

.login-links a {
  color: #fff; /* Белый цвет для ссылок */
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.login-error {
  background-color: #333; /* Серый цвет вместо красного */
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 25px;
  border: 1px solid #555;
}

.login-success {
  background-color: #333; /* Серый цвет вместо зеленого */
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 25px;
  border: 1px solid #555;
}

/* Адаптивность */
@media (max-width: 768px) {
  .dashboard-content {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    order: 2;
  }
  
  .dashboard-main {
    order: 1;
  }
  
  .dashboard-widgets,
  .projects-list,
  .tickets-list {
    grid-template-columns: 1fr;
  }
  
  .project-meta,
  .ticket-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .login-container {
    margin: 20px;
    padding: 25px;
  }
  
  .dashboard-header h1 {
    font-size: 2em;
  }
  
  .dashboard-main h2 {
    font-size: 1.7em;
  }
}
