/* Modern Cyberpunk Theme */
:root {
  --primary-color: #00ff9d;
  --secondary-color: #00b8ff;
  --background-dark: #0a0a0a;
  --background-light: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --border-color: #333333;
  --success-color: #00ff9d;
  --error-color: #ff3d3d;
  --card-bg: rgba(26, 26, 26, 0.8);
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at top,
      rgba(0, 255, 157, 0.14) 0%,
      transparent 55%
    ),
    linear-gradient(135deg,
      rgba(8, 16, 16, 1) 0%,
      rgba(6, 10, 14, 1) 45%,
      rgba(3, 6, 10, 1) 100%
    );
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#__nuxt {
  width: 100%;
  min-height: 100vh;
  background: transparent;
}

/* Основной контейнер */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background-color: rgba(19, 19, 19, 0.95);
  position: relative;
  overflow: hidden;
}

/* Главный контент */
.main-content {
  flex: 1;
  padding: 20px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  background-color: rgba(19, 19, 19, 0.95);
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(0, 20, 20, 0.85) 0%,
    rgba(0, 10, 15, 0.85) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* Область контента */
.content-area {
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

/* Заголовок контента */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: linear-gradient(90deg, 
    rgba(0, 20, 20, 0.95) 0%,
    rgba(0, 10, 15, 0.95) 100%
  );
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 157, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.header-title h1 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.header-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Стили для кнопок */
button {
  cursor: pointer !important;
  transition: all 0.15s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid rgba(0, 255, 157, 0.2);
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 157, 0.15),
    transparent
  );
  transition: 0.3s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: rgba(0, 255, 157, 0.08);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--background-dark);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: rgba(0, 255, 157, 0.9);
  color: var(--background-dark);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--background-dark);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background: rgba(0, 184, 255, 0.9);
  color: var(--background-dark);
}

.btn-danger {
  background: var(--error-color);
  color: var(--text-primary);
  border-color: var(--error-color);
}

.btn-danger:hover {
  background: rgba(255, 61, 61, 0.9);
  color: var(--text-primary);
}

/* Стили для форм */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.1);
}

.form-group input:disabled,
.form-group textarea:disabled {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* Стили для карточек */
.card {
  background: linear-gradient(135deg,
    rgba(0, 20, 20, 0.95) 0%,
    rgba(0, 10, 15, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 157, 0.15);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(0, 255, 157, 0.3),
    transparent
  );
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(0, 255, 157, 0.1),
    transparent
  );
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.1);
}

/* Стили для статистических карточек */
.stat-card {
  background: linear-gradient(135deg,
    rgba(0, 20, 20, 0.95) 0%,
    rgba(0, 10, 15, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 3px;
  border: 1px solid rgba(0, 255, 157, 0.15);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(0, 255, 157, 0.3),
    transparent
  );
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(0, 255, 157, 0.1),
    transparent
  );
}

.stat-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.1);
}

.stat-header {
  font-size: 14px;
  color: white;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.1);
  line-height: 1;
}

.stat-value {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
  line-height: 1;
}

.stat-trend {
  font-size: 9px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.stat-trend::before {
  content: '';
  display: inline-block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.stat-trend.positive {
  color: var(--success-color);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.stat-trend.negative {
  color: var(--error-color);
  text-shadow: 0 0 10px rgba(255, 61, 61, 0.2);
}

/* Сетка для статистики */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

/* Сообщения об ошибках и успехе */
.error-message {
  background-color: rgba(255, 61, 61, 0.1);
  color: var(--error-color);
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 61, 61, 0.2);
}

.success-message {
  background-color: rgba(0, 255, 157, 0.1);
  color: var(--success-color);
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid rgba(0, 255, 157, 0.2);
}

/* Стили для ссылок */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 184, 255, 0.3);
}

a:active {
  transform: translateY(1px);
}

/* Стили для ссылок в формах */
.stat-trend a,
.links a {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 184, 255, 0.05);
  border: 1px solid rgba(0, 184, 255, 0.2);
  border-radius: 3px;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.stat-trend a::before,
.links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 184, 255, 0.15),
    transparent
  );
  transition: 0.3s;
}

.stat-trend a:hover::before,
.links a:hover::before {
  left: 100%;
}

.stat-trend a:hover,
.links a:hover {
  background: rgba(0, 184, 255, 0.08);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(0, 184, 255, 0.3);
}

.stat-trend a:active,
.links a:active {
  transform: translateY(1px);
}

/* Оптимизация рендеринга текста */
.header-title h1,
.header-subtitle,
.stat-header,
.stat-value,
.stat-trend {
  text-rendering: optimizeLegibility;
}

/* Унифицированные стили для всех кнопок */
button {
  cursor: pointer !important;
  transition: all 0.15s ease;
  border: none;
  outline: none;
  font-family: inherit;
}

/* Базовые стили для всех кнопок */
button:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid rgba(0, 255, 157, 0.2);
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

button:not(.btn)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 157, 0.15),
    transparent
  );
  transition: 0.3s;
}

button:not(.btn):hover::before {
  left: 100%;
}

button:not(.btn):hover {
  background: rgba(0, 255, 157, 0.08);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.1);
}

button:not(.btn):active {
  transform: translateY(0);
}

button:not(.btn):disabled {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.6;
}

button:not(.btn):disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Специальные стили для кнопок в формах */
form button {
  width: 100%;
  margin-top: 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .main-content {
    padding: 10px;
  }
  
  .content-header {
    padding: 12px 16px;
  }
  
  .header-title h1 {
    font-size: 16px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
  }
  
  .stat-card {
    height: 70px;
    padding: 6px;
  }
  
  .stat-header {
    font-size: 12px;
  }
  
  .stat-value {
    font-size: 12px;
  }
  
  button:not(.btn) {
    padding: 10px 20px;
    font-size: 11px;
  }
}
