:root {
  /* Цветовая палитра */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;
  
  /* Нейтральные цвета */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-header: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  
  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Скругления */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

body {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-800);
  min-height: 100vh;
}

/* Навигация */
.navbar {
  background: var(--gradient-header) !important;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

/* Кнопки */
.btn {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-primary {
  background: var(--gradient-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.btn-outline-primary {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: white;
}

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

.btn-outline-secondary {
  border: 1px solid var(--slate-300);
  color: var(--slate-600);
  background: white;
}

.btn-outline-secondary:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
}

/* Карточки */
.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: white;
}

.card-header {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

/* Правая панель действий (редактирование конспекта) */
.conspect-actions-card {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
}

.conspect-actions-card .card-header {
  background: var(--gradient-primary);
  color: white;
  border-bottom: none;
  padding: 1rem 1.1rem;
}

.conspect-actions-card .card-header h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.conspect-actions-card .card-body {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, #ffffff 100%);
}

.conspect-actions-card .btn {
  padding: 0.6rem 0.9rem;
}

.conspect-actions-card .btn svg {
  opacity: 0.95;
}

.conspect-actions-card .btn-outline-secondary {
  border-color: var(--slate-300);
}

.conspect-actions-card .card-footer {
  padding: 0.75rem 1.1rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
}

/* Формы */
.form-control,
.form-select {
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--slate-700);
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

/* Таблицы */
.table {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table thead th {
  background: var(--slate-100);
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid var(--slate-200);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--slate-100);
}

.table tbody tr {
  transition: background-color 0.2s;
}

.table tbody tr:hover {
  background: var(--slate-50);
}

/* Бейджи */
.badge {
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--slate-800);
  letter-spacing: -0.5px;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

/* Ссылки */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

/* Уведомления (Toast) */
.toast {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

/* Модальные окна */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-weight: 700;
  color: var(--slate-800);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--slate-200);
  padding: 1rem 1.5rem;
}

/* Статус онлайн */
.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  display: inline-block;
  background-color: var(--slate-400);
  transition: background-color 0.3s ease;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.status-dot-online {
  background-color: var(--success);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

/* Курсор */
.cursor-pointer {
  cursor: pointer;
}

/* Детали */
details.js-note-review summary {
  user-select: none;
}

details.js-note-review[open] summary {
  margin-bottom: 0.5rem;
}

/* Колокольчик уведомлений */
#notifications-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
}

#notifications-bell:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

#notifications-bell svg {
  display: block;
  color: white;
  width: 24px;
  height: 24px;
}

#notifications-bell i {
  display: none;
}

/* Панель активности тьюторов */
#tutor-activity-panel {
  position: sticky;
  top: 1rem;
}

#tutor-activity-list {
  max-height: 300px;
  overflow-y: auto;
}

#tutor-activity-list li {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Цветовая индикация ролей в верхней панели */
.role-badge {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.75rem;
}

.role-badge-admin {
  background: linear-gradient(135deg, #dc3545 0%, #b91c1c 100%);
  color: white;
}

.role-badge-manager {
  background: linear-gradient(135deg, #0d6efd 0%, #1d4ed8 100%);
  color: white;
}

.role-badge-head_methodist {
  background: linear-gradient(135deg, #6f42c1 0%, #5b21b6 100%);
  color: white;
}

.role-badge-methodist {
  background: linear-gradient(135deg, #fd7e14 0%, #ea580c 100%);
  color: white;
}

.role-badge-tutor {
  background: linear-gradient(135deg, #198754 0%, #15803d 100%);
  color: white;
}

/* Цветовая индикация ролей в таблице пользователей */
.role-badge-cell-admin {
  background: linear-gradient(135deg, #dc3545 0%, #b91c1c 100%);
  color: white;
}

.role-badge-cell-manager {
  background: linear-gradient(135deg, #0d6efd 0%, #1d4ed8 100%);
  color: white;
}

.role-badge-cell-head_methodist {
  background: linear-gradient(135deg, #6f42c1 0%, #5b21b6 100%);
  color: white;
}

.role-badge-cell-methodist {
  background: linear-gradient(135deg, #fd7e14 0%, #ea580c 100%);
  color: white;
}

.role-badge-cell-tutor {
  background: linear-gradient(135deg, #198754 0%, #15803d 100%);
  color: white;
}

/* Стили для заметок */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.note-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.note-card-has-reply {
  border-left: 4px solid var(--success);
  background: linear-gradient(to right, #f0fdf4, white);
}

.note-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.note-card-avatar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.avatar-circle.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.note-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.note-card-author {
  font-weight: 600;
  color: var(--slate-800);
  font-size: 0.95rem;
}

.note-card-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--slate-500);
  font-size: 0.8rem;
}

.note-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.note-status-new {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
}

.note-status-in_progress {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
}

.note-status-done {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #15803d;
}

.note-card-body {
  margin-bottom: 1rem;
}

.note-content {
  background: var(--slate-50);
  padding: 1rem;
  border-radius: var(--radius);
  color: var(--slate-700);
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 0.9rem;
  border: 1px solid var(--slate-200);
}

.note-reply {
  margin-bottom: 1rem;
}

.note-reply-details {
  border: none;
}

.note-reply-details[open] .note-reply-summary {
  margin-bottom: 0.75rem;
}

.note-reply-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--slate-100);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--slate-600);
  transition: all 0.2s;
  list-style: none;
}

.note-reply-summary:hover {
  background: var(--slate-200);
}

.note-reply-summary::-webkit-details-marker {
  display: none;
}

.note-reply-date {
  margin-left: auto;
  color: var(--slate-400);
  font-size: 0.75rem;
}

.note-reply-content {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #fefefe 100%);
  border-radius: var(--radius);
  border-left: 3px solid var(--success);
  box-shadow: var(--shadow-sm);
}

.reply-avatar {
  flex-shrink: 0;
}

.reply-body {
  flex: 1;
  min-width: 0;
}

.reply-author {
  font-weight: 600;
  color: #166534;
  font-size: 0.85rem;
  margin-bottom: 0.375rem;
}

.reply-content-text {
  color: var(--slate-700);
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 0.875rem;
}

.note-card-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--slate-200);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: white;
  color: var(--slate-500);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-action-edit:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

.btn-action-delete:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: #fef2f2;
}

.note-reply-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-200);
}

.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

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

.form-group .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 0;
}

.form-group .form-select,
.form-group .form-control {
  font-size: 0.85rem;
}

.form-group.form-actions {
  padding-top: 0.25rem;
}

.form-group.form-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-weight: 500;
}

.notes-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate-400);
}

.notes-empty svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.notes-empty p {
  margin: 0;
  font-size: 0.95rem;
}

/* Подвал */
footer {
  background: var(--slate-100);
  border-top: 1px solid var(--slate-200);
}

/* Адаптивность */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-collapse {
    background: var(--gradient-header);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: var(--radius-md);
  }
}

/* Скроллбар */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--slate-100);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--slate-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate-500);
}

/* Выделения */
::selection {
  background: var(--primary-light);
  color: white;
}

::-moz-selection {
  background: var(--primary-light);
  color: white;
}

/* Markdown контент */
.markdown-body {
  font-size: 1rem;
  line-height: 1.7;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
 

.markdown-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  color: var(--slate-600);
  font-style: italic;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
}

.markdown-body table th,
.markdown-body table td {
  border: 1px solid var(--slate-200);
  padding: 0.5rem 0.75rem;
}

.markdown-body table th {
  background: var(--slate-100);
  font-weight: 600;
}


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

/* Карточка конспекта */
.conspect-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
}

/* Страницы уведомлений */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid var(--slate-200);
  transition: all 0.2s;
}

.notification-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.notification-item.unread {
  background: linear-gradient(135deg, #eff6ff 0%, #fefefe 100%);
  border-left: 4px solid var(--primary);
}

.notification-item.read {
  opacity: 0.7;
}

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

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.stat-card-icon.primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.stat-card-icon.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.stat-card-icon.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.stat-card-icon.info {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
}

.stat-card-icon.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-800);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card-label {
  color: var(--slate-500);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Карточки модулей для тьютора */
.module-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.module-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-md);
}

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

.stat-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.access-badge .badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

.module-card .card-title {
  color: var(--slate-800);
  font-weight: 700;
}

.module-card .card-footer {
  padding-top: 0;
}

/* Карточки модулей с изображением */
.module-card-with-image {
  overflow: hidden;
  transition: all 0.3s ease;
}

.module-card-with-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.module-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.module-card-with-image:hover .module-image {
  transform: scale(1.05);
}

.module-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Кнопки в карточках модулей */
.module-card-with-image .card-footer {
  padding: 0.75rem 1rem;
}

.module-card-with-image .card-footer .btn {
  border-width: 1px;
  border-style: solid;
}

.module-card-with-image .btn-group {
  display: flex;
  flex-wrap: nowrap;
}

.module-card-with-image .btn-group .btn,
.module-card-with-image .btn-group .btn.btn-sm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0.375rem 0.75rem !important;
  white-space: nowrap !important;
  flex: 1 1 auto;
  font-size: 0.875rem;
}

.module-card-with-image .btn-group .btn svg {
  flex-shrink: 0;
}

.module-card-with-image .btn-group form {
  display: contents;
}

/* Панель уведомлений */
.notifications-dropdown {
  position: relative;
}

/* Строка поиска модулей */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 600px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--slate-400);
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding-left: 3rem;
  padding-right: 3rem;
  font-size: 0.95rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-clear {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: var(--slate-200);
  color: var(--slate-500);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear:hover {
  background: var(--slate-300);
  color: var(--slate-700);
}

.search-results-info {
  padding-left: 0.5rem;
}


.notifications-panel {
  min-width: 380px;
  max-width: 380px;
  max-height: 450px;
  border: none;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 0.5rem;
}

.notifications-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.notifications-panel-header h6 {
  font-weight: 700;
  color: var(--slate-800);
  font-size: 0.95rem;
}

.notifications-panel-header a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.notifications-panel-header a:hover {
  color: var(--primary-dark);
}

.notifications-panel-body {
  max-height: 350px;
  overflow-y: auto;
  padding: 0;
}

.notification-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-100);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.notification-item:hover {
  background: var(--slate-50);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: linear-gradient(135deg, #eff6ff 0%, #fefefe 100%);
  border-left: 3px solid var(--primary);
}

.notification-item.read {
  opacity: 0.8;
}

.notification-item-content {
  font-size: 0.875rem;
  color: var(--slate-700);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.notification-item-time {
  font-size: 0.75rem;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.notification-item.unread .notification-item-content {
  font-weight: 600;
}

.notifications-panel-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--slate-500);
}

.notifications-panel-empty svg {
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.notifications-panel-footer {
  padding: 0.75rem 1.25rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  text-align: center;
}

.notifications-panel-footer a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.875rem;
}

.notifications-panel-footer a:hover {
  color: var(--primary-dark);
}

/* Адаптивность для мобильных */
@media (max-width: 575.98px) {
  .notifications-panel {
    min-width: 320px;
    max-width: 320px;
  }
}

