/* Страница личного кабинета */

/* Хлебные крошки - универсальные стили для всего сайта */
.breadcrumb {
  padding: 15px 0;
  margin-bottom: 0;
  list-style: none;
  background: transparent;
  border-radius: 0;
}

.breadcrumb li {
  display: inline-block;
  font-size: 13px;
}

.breadcrumb li + li:before {
  content: "›";
  padding: 0 10px;
  color: #6b7280;
  font-size: 18px;
  vertical-align: -2px;
}

.breadcrumb li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb li a:hover {
  color: #23a1d1;
}

.breadcrumb li:last-child a {
  color: #e5e7eb;
}

/* Отступы контента */
.account-page #content {
  padding: 20px 15px;
}

/* Заголовок */
.account-header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2d2d44;
  position: relative;
}

.account-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #23a1d1, #6366f1);
  border-radius: 2px;
}

.account-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #f3f4f6;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.account-subtitle {
  font-size: 15px;
  color: #9ca3af;
  margin: 0;
}

/* Карточки */
.account-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.account-card {
  display: flex;
  align-items: center;
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.account-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  background: #1e1e36;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f, #2d4a7c);
  border-radius: 12px;
  margin-right: 18px;
}

.card-icon i {
  font-size: 28px;
  color: #60a5fa;
}

.card-icon--blue {
  background: linear-gradient(135deg, #1e3a5f, #2d4a7c);
}

.card-icon--blue i {
  color: #93c5fd;
}

.card-content {
  flex-grow: 1;
}

.card-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #f3f4f6;
  margin: 0 0 8px 0;
}

.card-content p {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

.card-arrow {
  flex-shrink: 0;
  margin-left: 16px;
  opacity: 0.3;
  transition: all 0.2s;
}

.card-arrow i {
  font-size: 26px;
  color: #9ca3af;
}

.account-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.account-card:hover .card-arrow i {
  color: #60a5fa;
}

/* Адаптив */
@media (max-width: 768px) {
  .account-cards {
    grid-template-columns: 1fr;
  }

  .account-header h1 {
    font-size: 24px;
  }

  .account-card {
    padding: 18px;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    margin-right: 14px;
  }

  .card-icon i {
    font-size: 22px;
  }
}

/* Alert */
.account-page .alert {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.account-page .alert-success {
  background: linear-gradient(135deg, #064e3b, #065f46);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.account-page .alert-success i {
  margin-right: 10px;
  font-size: 20px;
}

/* Страница Avito */
#account-avito-monitoring #content {
  padding: 20px 15px;
}

#account-avito-monitoring h2 {
  font-size: 28px;
  font-weight: 700;
  color: #f3f4f6;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #2d2d44;
  position: relative;
}

#account-avito-monitoring h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #eab308, #f97316);
  border-radius: 2px;
}

#account-avito-monitoring h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e5e7eb;
  margin: 0 0 16px 0;
}

/* Инфоблок */
#account-avito-monitoring .bg-white {
  background: #1a1a2e !important;
  border: 1px solid #2d2d44 !important;
}

#account-avito-monitoring .text-gray-800 {
  color: #f3f4f6 !important;
}

#account-avito-monitoring .text-gray-600,
#account-avito-monitoring .text-gray-700 {
  color: #9ca3af !important;
}

/* Форма */
#account-avito-monitoring label {
  color: #d1d5db !important;
}

#account-avito-monitoring input[type="text"] {
  background: #1a1a2e;
  border: 1px solid #374151;
  color: #f3f4f6;
  padding: 12px 16px;
  border-radius: 8px;
}

#account-avito-monitoring input[type="text"]:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#account-avito-monitoring input[type="text"]::placeholder {
  color: #6b7280;
}

/* Кнопка */
#account-avito-monitoring button[type="submit"] {
  background: linear-gradient(135deg, #eab308, #f97316);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

#account-avito-monitoring button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3);
}

/* Таблица */
#account-avito-monitoring table {
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 12px;
  overflow: hidden;
}

#account-avito-monitoring table thead {
  background: #16162a;
}

#account-avito-monitoring table th {
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2d2d44;
}

#account-avito-monitoring table td {
  color: #e5e7eb;
  border-bottom: 1px solid #2d2d44;
}

#account-avito-monitoring table tbody tr:hover {
  background: #1e1e36;
}

#account-avito-monitoring table .text-gray-500 {
  color: #9ca3af !important;
}

#account-avito-monitoring table .text-gray-900 {
  color: #f3f4f6 !important;
}

/* Статусы */
#account-avito-monitoring .bg-green-100 {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
}

/* Alert */
#account-avito-monitoring .alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

#account-avito-monitoring .alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
}

/* Примечание */
#account-avito-monitoring p.text-gray-500 {
  color: #6b7280 !important;
}

/* Хлебные крошки с домиком */
.breadcrumb li a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb li:first-child a {
  color: #9ca3af;
}

.breadcrumb li:first-child a:hover {
  color: #23a1d1;
}

/* Страница Analytics */
#account-analytics {
  min-height: 100vh;
}

#account-analytics #content {
  padding: 20px 15px;
}


/* Карточки статистики */
#account-analytics .bg-white {
  background: #1a1a2e !important;
  border: 1px solid #2d2d44;
}

#account-analytics .bg-gray-50 {
  background: #16162a !important;
  border-bottom: 1px solid #2d2d44;
}

#account-analytics .text-gray-800 {
  color: #f3f4f6 !important;
}

#account-analytics .text-gray-700 {
  color: #e5e7eb !important;
}

#account-analytics .text-gray-600 {
  color: #9ca3af !important;
}

#account-analytics .text-gray-500 {
  color: #9ca3af !important;
}

#account-analytics .text-gray-400 {
  color: #6b7280 !important;
}

#account-analytics .text-blue-600 {
  color: #60a5fa !important;
}

#account-analytics .text-green-500 {
  color: #34d399 !important;
}

#account-analytics .text-orange-500 {
  color: #fb923c !important;
}

#account-analytics .text-red-600 {
  color: #f87171 !important;
}

/* Инпуты */
#account-analytics input[type="text"],
#account-analytics select {
  background: #1a1a2e;
  border: 1px solid #374151;
  color: #f3f4f6;
}

#account-analytics input[type="text"]:focus,
#account-analytics select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#account-analytics input::placeholder {
  color: #6b7280;
}

/* Кнопки */
#account-analytics .bg-blue-600 {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

#account-analytics .bg-blue-600:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

/* Файл инпут */
#account-analytics input[type="file"] {
  background: #1a1a2e;
  border: 1px solid #374151;
  color: #9ca3af;
}

/* Таблица */
#account-analytics table {
  background: #1a1a2e;
  border: 1px solid #2d2d44;
}

#account-analytics table thead {
  background: #16162a;
}

#account-analytics table th {
  color: #9ca3af;
  border-bottom: 1px solid #2d2d44;
}

#account-analytics table td {
  color: #e5e7eb;
  border-bottom: 1px solid #2d2d44;
}

#account-analytics table tbody tr:hover {
  background: #1e1e36;
}

/* Alert */
#account-analytics .bg-green-100 {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
}

#account-analytics .bg-blue-50 {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
}

/* Переключатель темы */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 25px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.theme-toggle .toggle-icon {
  font-size: 20px;
  color: #fbbf24;
}

.theme-toggle .toggle-text {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

/* Светлая тема - когда добавлен класс light-theme */
body.light-theme {
  background: #f5f5f5;
}

body.light-theme .breadcrumb li a {
  color: #374151;
}

body.light-theme .breadcrumb li + li:before {
  color: #9ca3af;
}

body.light-theme .breadcrumb li:last-child a {
  color: #111827;
}

body.light-theme .account-header {
  border-bottom-color: #e5e7eb;
}

body.light-theme .account-header h1 {
  color: #111827;
}

body.light-theme .account-subtitle {
  color: #6b7280;
}

body.light-theme .account-card {
  background: #fff;
  border-color: #e5e7eb;
}

body.light-theme .account-card:hover {
  background: #f9fafb;
}

body.light-theme .card-content h3 {
  color: #111827;
}

body.light-theme .card-content p {
  color: #6b7280;
}

body.light-theme #account-avito-monitoring h2,
body.light-theme #account-analytics h2 {
  color: #111827;
  border-bottom-color: #e5e7eb;
}

body.light-theme #account-avito-monitoring h3,
body.light-theme #account-analytics h3 {
  color: #1f2937;
}

body.light-theme #account-avito-monitoring .bg-white,
body.light-theme #account-analytics .bg-white {
  background: #fff !important;
  border-color: #e5e7eb !important;
}

body.light-theme #account-avito-monitoring .text-gray-800,
body.light-theme #account-analytics .text-gray-800,
body.light-theme #account-avito-monitoring .text-gray-700,
body.light-theme #account-analytics .text-gray-700,
body.light-theme #account-avito-monitoring .text-gray-600,
body.light-theme #account-analytics .text-gray-600 {
  color: #374151 !important;
}

body.light-theme #account-avito-monitoring label,
body.light-theme #account-analytics label {
  color: #374151 !important;
}

body.light-theme #account-avito-monitoring input[type="text"],
body.light-theme #account-analytics input[type="text"],
body.light-theme #account-analytics select {
  background: #fff;
  border-color: #d1d5db;
  color: #111827;
}

body.light-theme #account-avito-monitoring table,
body.light-theme #account-analytics table {
  background: #fff;
  border-color: #e5e7eb;
}

body.light-theme #account-avito-monitoring table thead,
body.light-theme #account-analytics table thead {
  background: #f9fafb;
}

body.light-theme #account-avito-monitoring table th,
body.light-theme #account-analytics table th {
  color: #6b7280;
  border-bottom-color: #e5e7eb;
}

body.light-theme #account-avito-monitoring table td,
body.light-theme #account-analytics table td {
  color: #111827;
  border-bottom-color: #e5e7eb;
}

body.light-theme #account-avito-monitoring table tbody tr:hover,
body.light-theme #account-analytics table tbody tr:hover {
  background: #f9fafb;
}

body.light-theme #account-avito-monitoring .bg-gray-50,
body.light-theme #account-analytics .bg-gray-50 {
  background: #f9fafb !important;
  border-bottom-color: #e5e7eb !important;
}

body.light-theme .theme-toggle {
  background: #fff;
  border-color: #e5e7eb;
}

body.light-theme .theme-toggle .toggle-text {
  color: #374151;
}

body.light-theme .theme-toggle .toggle-icon {
  color: #6366f1;
}
