/* Base Styles */
:root {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-color: #e5e5e5;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --success-color: #10B981;
  --primary-color: #3b82f6;
  --primary-color-dark: #2563eb;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: #404040;
  --accent-color: #60a5fa;
  --accent-hover: #3b82f6;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  --success-color: #34D399;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: 200px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
  gap: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.sidebar-link:hover {
  background-color: var(--bg-primary);
}

.sidebar-link.active {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 500;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Create Payment Button - Global */
.create-payment-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.625rem 1rem !important;
  background-color: var(--primary-color) !important;
  color: white !important;
  border: none !important;
  border-radius: 0.375rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 10 !important;
  margin: 0 !important;
  min-width: fit-content !important;
}

.create-payment-btn:hover {
  background-color: var(--primary-color-dark) !important;
  transform: translateY(-1px) !important;
}

.create-payment-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
}

@media (max-width: 768px) {
  .create-payment-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Main Content Styles */
.main-content {
  flex: 1;
  position: relative;
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-title {
  font-weight: 500;
  font-size: 1rem;
}

.header-title-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container {
  position: relative;
}

.search-input {
  padding: 0.375rem 0.75rem;
  padding-right: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.875rem;
  width: 200px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.notification-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #ebf5ff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  cursor: pointer;
}

.user-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #3b82f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}

/* Dashboard Content Styles */
.dashboard-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card Styles */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.inline-icon {
  width: 16px;
  height: 16px;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.category-icon.blue {
  background: var(--blue-color, #3B82F6);
}

.category-icon.green {
  background: var(--green-color, #10B981);
}

.category-icon.purple {
  background: var(--purple-color, #8B5CF6);
}

.category-icon.orange {
  background: var(--orange-color, #F59E0B);
}

.category-icon.red {
  background: var(--red-color, #EF4444);
}

.category-content {
  flex: 1;
}

.category-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
}

.category-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.amount {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
}

.status {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  background: var(--status-bg, rgba(59, 130, 246, 0.1));
  color: var(--status-color, var(--blue-color));
}

.status.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-color);
}

.status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--orange-color);
}

.status.rejected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-color);
}

.message-status.status-unsent {
    color: var(--warning-color);
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.message-status.status-unsent svg {
    width: 14px;
    height: 14px;
}

[data-theme="dark"] .message-status.status-unsent {
    color: var(--warning-color-dark);
}

/* Main Cards Grid */
.main-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Currency Grid */
.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.currency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 4px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
}

.currency-flag {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.currency-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.currency-value {
  font-weight: 600;
  color: var(--text-color);
  min-width: 60px;
  text-align: center;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.data-table tbody tr:hover {
  background: var(--hover-bg);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-color);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--orange-color);
}

/* Dark theme adjustments */
[data-theme="dark"] .category-card {
  background: var(--dark-card-bg);
  border-color: var(--dark-border-color);
}

[data-theme="dark"] .currency-item {
  background: var(--bg-color-dark);
  border-color: var(--border-color-dark);
}

[data-theme="dark"] .data-table th {
  border-bottom-color: var(--dark-border-color);
}

[data-theme="dark"] .data-table td {
  border-bottom-color: var(--dark-border-color);
}

[data-theme="dark"] .data-table tbody tr:hover {
  background: var(--dark-hover-bg);
}

/* Help Button */
.help-button {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 20;
}

.help-icon-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: #8b5cf6;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.help-popup {
  position: absolute;
  bottom: 4rem;
  left: 0;
  background-color: #8b5cf6;
  color: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
  width: 180px;
}

.help-title {
  font-size: 0.875rem;
  font-weight: 500;
}

.help-subtitle {
  font-size: 0.75rem;
  color: #d8b4fe;
  margin-top: 0.25rem;
}

.help-contact-btn {
  margin-top: 0.5rem;
  background-color: white;
  color: #8b5cf6;
  border: none;
  border-radius: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  width: 100%;
  cursor: pointer;
}

/* Profile Styles */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.profile-left-column,
.profile-right-column {
  display: flex;
  flex-direction: column;
}

.profile-card {
  overflow: hidden;
}

.profile-header {
  height: 6rem;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  position: relative;
}

.profile-avatar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: #4f46e5;
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.profile-info {
  padding: 20px;
}

.profile-info h4 {
  margin: 0 0 10px;
  color: var(--text-color);
}

.profile-info p {
  margin: 0;
  color: var(--text-secondary);
}

.primary-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  margin: 5px;
}

.primary-btn:active {
  background-color: #2563eb;
}

.danger-btn {
  background-color: #EF4444;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  margin: 5px;
}
.danger-btn:active {
  background-color: #B92121;
}

.warning-btn {
  background-color: #F59E0B;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  margin: 5px;
  cursor: pointer;
}
.warning-btn:active {
  background-color: #D97706;
}

.success-btn {
  background-color: #10B981;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  margin: 5px;
  cursor: pointer;
}
.success-btn:active {
  background-color: #059669;
}

.info-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  margin: 5px;
  cursor: pointer;
}
.info-btn:active {
  background-color: #2563eb;
}

.light-btn {
  background-color: #E5E5E5;
  color: #333;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  margin: 5px;
  cursor: pointer;
}
.light-btn:active {
  background-color: #D9D9D9;
}

.dark-btn {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  margin: 5px;
  cursor: pointer;
}
.dark-btn:active {
  background-color: #1F1F1F;
}

.link-btn {
  background-color: transparent;
  color: #3b82f6;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  margin: 5px;
  cursor: pointer;
}
.link-btn:active {
  background-color: #D9D9D9;
}

.save-btn {
  background-color: #10B981;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.save-btn:active {
  background-color: #059669;
}
.save-btn:hover {
  background-color: #059669;
}
.primary-btn:hover {
  background-color: #2563eb;
}

.full-width {
  width: 100%;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

/* Account Info Styles */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.account-info-item {
  margin-bottom: 0.5rem;
}

.account-info-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.account-info-value {
  font-size: 0.875rem;
}

/* Documents Styles */
.documents-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.documents-icon {
  width: 3rem;
  height: 3rem;
  background-color: #ebf5ff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

.documents-title {
  font-weight: 500;
}

.documents-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

.documents-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.outline-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Organization Info Styles */
.org-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.org-info-item {
  margin-bottom: 0.5rem;
}

.org-info-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.org-info-value {
  font-size: 0.875rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 0.5rem;
  margin-right: 0.5rem;
  cursor: pointer;
}

.header-left {
  display: flex;
  align-items: center;
}

/* Media Queries */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .main-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .currency-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -200px;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: left 0.3s ease;
    width: 200px;
    height: 100vh;
    background-color: var(--bg-secondary);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .sidebar.active {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .header {
    padding: 0.5rem;
    position: relative;
    z-index: 2;
  }

  .header-title {
    font-size: 1rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .search-container {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 3;
  }

  .dashboard-content {
    padding: 0.5rem;
  }

  /* Адаптивность для карточек категорий */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .category-card {
    padding: 1rem;
  }

  .category-icon {
    width: 40px;
    height: 40px;
  }

  .category-icon svg {
    width: 20px;
    height: 20px;
  }

  .category-content h3 {
    font-size: 0.875rem;
  }

  .amount {
    font-size: 1rem;
  }

  .status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  /* Адаптивность для основных карточек */
  .main-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  .card-header {
    margin-bottom: 1rem;
  }

  .card-title {
    font-size: 1rem;
  }

  /* Адаптивность для валют */
  .currency-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .currency-item {
    padding: 0.25rem;
  }

  .currency-flag {
    width: 20px;
    height: 20px;
  }

  .currency-value {
    min-width: 50px;
    font-size: 0.9rem;
  }

  /* Адаптивность для таблицы */
  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    margin: 0 -0.5rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }

  .action-btn {
    padding: 0.25rem;
  }

  .action-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Оверлей для мобильного меню */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .overlay.active {
    display: block;
    opacity: 1;
  }

  /* Предотвращаем прокрутку основного контента при открытом меню */
  body.menu-open {
    overflow: hidden;
  }

  /* Адаптивность для кнопки создания платежа */
  .create-payment-btn {
    width: 100%;
    justify-content: center;
    margin: 0.5rem 0;
  }

  /* Адаптивность для кнопки помощи */
  .help-button {
    bottom: 1rem;
    right: 1rem;
  }

  .help-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .help-popup {
    width: 280px;
    right: 0;
    bottom: 3.5rem;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 0.25rem;
  }

  .notification-btn,
  .user-btn,
  .theme-toggle-btn {
    width: 2rem;
    height: 2rem;
  }

  .category-card {
    padding: 0.75rem;
  }

  .currency-item {
    padding: 0.5rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.375rem;
    font-size: 0.75rem;
  }
}

/* Анимации для мобильного меню */
.sidebar {
  transition: left 0.3s ease;
}

/* Create Payment Page Styles */
.payment-type-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 2rem;
}

.payment-type-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.payment-type-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
}

.payment-type-buttons {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.payment-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 280px;
}

.payment-type-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.payment-type-btn .icon-container {
  width: 64px;
  height: 64px;
  background: var(--accent-color);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.payment-type-btn .icon-container svg {
  width: 32px;
  height: 32px;
  color: white;
}

.payment-type-btn .btn-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.payment-type-btn .btn-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .payment-type-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .payment-type-btn {
    width: 100%;
    padding: 1.5rem;
  }
}

/* Support Form Styles 
.support-card {
  max-width: 600px;
  margin: 0 auto;
}*/

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input[readonly] {
  background: var(--border-color);
  cursor: not-allowed;
}

.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}

.success-message svg {
  width: 48px;
  height: 48px;
  color: var(--success-color);
}

.success-message h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.success-message p {
  color: var(--text-secondary);
  margin: 0;
}

/* Import Form Styles */
.progress-steps {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: -1rem;
  width: 1rem;
  height: 2px;
  background-color: var(--border-color);
}

.step.completed:not(:last-child)::after {
  background-color: var(--accent-color);
}

.step-indicator {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
}

.step.completed .step-indicator {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.step.active .step-indicator {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.step-content h4 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.step-content p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.import-form-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.upload-section {
  background-color: var(--bg-primary);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.section-title {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.upload-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.upload-card {
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.upload-card-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.upload-card-header p {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.upload-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 1rem 0;
}

.file-upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-upload-zone:hover {
  border-color: var(--accent-color);
}

.file-upload-zone svg {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.upload-action {
  color: var(--accent-color);
  text-decoration: underline;
  cursor: pointer;
}

.quick-submit-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  opacity: 0.5;
}

.quick-submit-btn:not(:disabled) {
  opacity: 1;
}

.btn-content {
  text-align: center;
}

.btn-title {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin: 0;
}

.btn-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0;
}

.import-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.form-section-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.form-group label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.label-en {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.secondary-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.875rem;
}

.secondary-btn:hover {
  background-color: var(--bg-primary);
}

@media (max-width: 768px) {
  .progress-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .upload-cards {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

/* Payments Page Styles */
.payments-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.payments-header .create-payment-btn {
  /* Remove this duplicate */
}

.payments-header .create-payment-btn:hover {
  /* Remove this duplicate */
}

.payments-header .create-payment-btn svg {
  /* Remove this duplicate */
}

.create-payment-btn {
  /* Remove this duplicate */
}

.create-payment-btn:hover {
  /* Remove this duplicate */
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 160px;
  flex: 1;
}

.filter-group label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.filter-container {
  position: relative;
}

.filter-container.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: filter-spin 0.8s linear infinite;
}

@keyframes filter-spin {
  to {
    transform: rotate(360deg);
  }
}

.filter-select {
  appearance: none;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.filter-select:hover {
  border-color: var(--accent-color);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

.filter-select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Summary Cards */
.payments-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s;
}

.summary-card:hover {
  transform: translateY(-2px);
}

.summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-icon.blue { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.summary-icon.orange { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.summary-icon.purple { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.summary-icon.green { background-color: rgba(34, 197, 94, 0.1); color: #22c55e; }
.summary-icon.red { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Table Styles */
.payments-table-container {
  overflow-x: auto;
  margin: -1rem;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

.payments-table {
  width: 100%;
  min-width: 800px;
  border-collapse: separate;
  border-spacing: 0;
}

.payments-table th {
  background-color: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.payments-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.payments-table tr:hover {
  background-color: var(--bg-hover);
}

.payment-type {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.payment-type.export {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.payment-type.import {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.status-badge.draft {
  background-color: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.status-badge.completed {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  padding: 0.375rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pagination-btn {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn:not(:disabled):hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.page-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-btn:not(.active):hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.pagination-dots {
  color: var(--text-secondary);
  padding: 0 0.25rem;
}

/* Dark Theme */
[data-theme="dark"] .summary-card {
  background-color: var(--bg-tertiary);
}

[data-theme="dark"] .card {
  background-color: var(--bg-tertiary);
}

[data-theme="dark"] .payments-table th {
  background-color: var(--bg-quaternary);
}

/* Responsive */
@media (max-width: 768px) {
  .payments-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    flex-direction: column;
  }

  .filter-select {
    width: 100%;
  }

  .payments-table td, 
  .payments-table th {
    padding: 0.75rem 0.5rem;
  }

  .action-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .payments-summary {
    grid-template-columns: 1fr;
  }

  .summary-card {
    padding: 0.75rem;
  }

  .summary-icon {
    width: 32px;
    height: 32px;
  }

  .summary-icon svg {
    width: 18px;
    height: 18px;
  }

  .summary-value {
    font-size: 1rem;
  }

  .payments-table th,
  .payments-table td {
    padding: 0.625rem 0.375rem;
    font-size: 0.75rem;
  }

  .action-buttons {
    gap: 0.125rem;
  }

  .action-btn {
    padding: 0.375rem;
  }

  .action-btn svg {
    width: 14px;
    height: 14px;
  }

  .pagination-pages button:not(.active):not(:first-child):not(:last-child) {
    display: none;
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .payments-table th {
  background-color: var(--bg-secondary);
}

[data-theme="dark"] .payments-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  /* Dashboard Content */
  .dashboard-content {
    padding: 0.5rem !important;
  }

  /* Header and Filters */
  .payments-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
  }

  .create-payment-btn {
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
  }

  .filters {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .filter-group {
    width: 100% !important;
    min-width: unset !important;
  }

  .filter-select {
    width: 100% !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
    height: 42px !important;
  }

  /* Summary Cards */
  .payments-summary {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
  }

  .summary-card {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }

  .summary-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .summary-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .summary-label {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
  }

  .summary-value {
    font-size: 1rem !important;
  }

  /* Table Container */
  .card {
    margin: 0 !important;
    padding: 0.5rem !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  .payments-table-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Table Styles */
  .payments-table {
    min-width: 800px !important;
    font-size: 0.875rem !important;
  }

  .payments-table th,
  .payments-table td {
    padding: 0.625rem 0.5rem !important;
    font-size: 0.875rem !important;
    white-space: nowrap !important;
  }

  .payment-type,
  .status-badge {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
  }

  /* Action Buttons */
  .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.25rem !important;
    justify-content: flex-end !important;
  }

  .action-btn {
    padding: 0.375rem !important;
  }

  .action-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Pagination */
  .pagination {
    padding: 1rem 0 0 0 !important;
    gap: 0.375rem !important;
  }

  .pagination-pages {
    gap: 0.375rem !important;
  }

  .page-btn,
  .pagination-btn {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.875rem !important;
  }

  .pagination-dots {
    display: none !important;
  }
}

@media screen and (max-width: 480px) {
  /* Further adjustments for smaller screens */
  .payments-summary {
    grid-template-columns: 1fr !important;
  }

  .summary-card {
    padding: 0.625rem !important;
  }

  .summary-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .summary-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .action-buttons {
    gap: 0.125rem !important;
  }

  .action-btn {
    padding: 0.25rem !important;
  }

  .action-btn svg {
    width: 14px;
    height: 14px;
  }

  .pagination-pages button:not(.active):not(:first-child):not(:last-child) {
    display: none !important;
  }

  .page-btn,
  .pagination-btn {
    min-width: 28px !important;
    height: 28px !important;
  }
}

/* Fix for iOS input zoom */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  select {
    font-size: 16px !important;
  }
}

/* Dark theme specific mobile adjustments */
@media screen and (max-width: 768px) {
  [data-theme="dark"] .card {
    background-color: var(--bg-secondary) !important;
  }

  [data-theme="dark"] .summary-card {
    background-color: var(--bg-tertiary) !important;
  }

  [data-theme="dark"] .payments-table th {
    background-color: var(--bg-secondary) !important;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

[data-theme="dark"] .loading-overlay {
  background: rgba(0, 0, 0, 0.8);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Стили для страницы редактирования заявки */
.proposal-form {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--background-color);
  color: var(--text-color);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-color);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background: var(--hover-color);
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .proposal-form {
    padding: 15px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-actions button {
    width: 100%;
  }
}

/* Стили для интерактивных строк таблицы */
.payments-table tbody tr {
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.payments-table tbody tr:hover {
  background-color: rgba(33, 150, 243, 0.05);
}

/* Предотвращаем срабатывание клика по строке при клике на кнопки */
.payments-table .action-buttons {
  position: relative;
  z-index: 1;
}

.payments-table .action-btn {
  position: relative;
  z-index: 2;
}

/* Workflow Step Statuses */
.workflow-step {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.workflow-step.completed {
  opacity: 1;
}

.workflow-step.completed .step-number {
  background-color: var(--success-color);
  color: white;
}

.workflow-step.in_progress {
  opacity: 1;
}

.workflow-step.in_progress .step-number {
  background-color: var(--primary-color);
  color: white;
  animation: pulse 2s infinite;
}

.workflow-step.pending {
  opacity: 0.5;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.error {
  border-left: 4px solid #ef4444;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.notification-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.notification-close:hover {
  color: var(--text-primary);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Dark theme adjustments for notifications */
[data-theme="dark"] .notification {
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .notification.success {
  border-left-color: var(--success-color);
}

[data-theme="dark"] .notification.error {
  border-left-color: #ef4444;
}

/* Action Buttons Styles */
.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.button-outline {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-outline:hover {
  background-color: var(--bg-primary);
  border-color: var(--text-primary);
}

.button-primary {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-primary:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-1px);
}

.button-primary:active,
.button-outline:active {
  transform: translateY(1px);
}

/* Dark theme adjustments */
[data-theme="dark"] .button-outline {
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .button-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Workflow Steps Dark Theme */
[data-theme="dark"] .workflow-sidebar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .workflow-step {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .workflow-step .step-number {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .workflow-step .step-name {
  color: var(--text-primary);
}

[data-theme="dark"] .workflow-step .step-details {
  color: var(--text-secondary);
}

[data-theme="dark"] .workflow-step.active {
  background-color: var(--primary-color);
}

[data-theme="dark"] .workflow-step.active .step-number {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

[data-theme="dark"] .workflow-step.active .step-name,
[data-theme="dark"] .workflow-step.active .step-details {
  color: white;
}

[data-theme="dark"] .workflow-step.completed .step-number {
  background-color: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

[data-theme="dark"] .workflow-step.in_progress .step-number {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

[data-theme="dark"] .workflow-step.pending {
  opacity: 0.7;
}

/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  display: none;
  margin-top: 0.5rem;
}

.user-dropdown.active {
  display: block;
}

.user-dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.user-name {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.user-dropdown-menu {
  padding: 0.5rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: var(--bg-primary);
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.dropdown-item.logout {
  color: #ef4444;
}

.dropdown-item.logout svg {
  color: #ef4444;
}

/* Dark theme adjustments */
[data-theme="dark"] .user-dropdown {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Стили для меню уведомлений */
.notification-menu {
  position: fixed;
  top: 4rem;
  right: 1rem;
  width: 320px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
}

.notification-menu.active {
  display: block;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.notification-title {
  font-weight: 600;
  color: var(--text-primary);
}

.notification-clear {
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.875rem;
}

.notification-clear:hover {
  text-decoration: underline;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: var(--bg-primary);
}

.notification-item.unread {
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

.notification-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.notification-text {
  color: var(--text-primary);
  font-size: 0.875rem;
}

.notification-time {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.notification-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Темная тема */
[data-theme="dark"] .notification-menu {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .notification-item.unread {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

/* Мобильная версия */
@media (max-width: 768px) {
  .notification-menu {
    width: 100%;
    top: 3.5rem;
    right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

.tab-content-textarea {
  width: 100%;
  height: calc(100vh - 100px);
  padding: 1rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.5;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  resize: none;
  white-space: pre;
  overflow-x: auto;
  overflow-y: auto;
  tab-size: 2;
  position: relative;
}

.tab-content-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  padding: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

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

.copy-btn:hover svg {
  stroke: white;
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-secondary);
  transition: stroke 0.2s ease;
}

.copy-btn.copied {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.copy-btn.copied svg {
  stroke: white;
}

/* Темная тема */
[data-theme="dark"] .tab-content-textarea {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .copy-btn {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .copy-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Мобильная версия */
@media (max-width: 768px) {
  .tab-content-textarea {
    height: calc(100vh - 80px);
    font-size: 12px;
    padding: 0.75rem;
  }

  .copy-btn {
    top: 0.375rem;
    right: 0.375rem;
    width: 20px;
    height: 20px;
  }

  .copy-btn svg {
    width: 12px;
    height: 12px;
  }
}

.load-more-messages {
    display: flex;
    justify-content: center;
    padding: 0.25rem;
    margin: 0.25rem 0;
}

.load-more-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s;
    height: 20px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.load-more-btn:hover {
    background: var(--accent-color-dark);
}

.loading-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0.25rem;
}

.loading-indicator.active {
    display: flex;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

[data-theme="dark"] .load-more-btn {
    background: var(--accent-color-dark);
}

[data-theme="dark"] .load-more-btn:hover {
    background: var(--accent-color);
}

.sound-toggle-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.sound-toggle-btn:hover {
    background: var(--hover-color);
}

.sound-toggle-btn.active {
    color: var(--accent-color);
}

.sound-toggle-btn svg {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .sound-toggle-btn {
    color: var(--text-color-dark);
}

[data-theme="dark"] .sound-toggle-btn:hover {
    background: var(--hover-color-dark);
}

[data-theme="dark"] .sound-toggle-btn.active {
    color: var(--accent-color-dark);
}


.payments-table-header {
  background-color: var(--bg-secondary);
  border: 5px solid var(--border-color);
}

.payments-table-header th {
  color: var(--text-primary);
}

.data-table .clickable-row {
  transition: background-color 0.2s;
  cursor: pointer;
}

.data-table .clickable-row:hover {
  background: var(--hover-bg);
}

[data-theme="dark"] .data-table .clickable-row:hover {
  background: var(--dark-hover-bg);
}

