/* ================================================================
   STRATUM DWM Configuration Modal - Premium Styling
   Comprehensive configuration interface for Dark Web Monitoring
   ================================================================ */

/* ==================== MODAL OVERLAY ==================== */
.dwm-config-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.dwm-config-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==================== MODAL CONTAINER ==================== */
.dwm-config-modal {
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  background: linear-gradient(165deg, rgba(18, 24, 38, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 100px rgba(139, 92, 246, 0.1);
}

.dwm-config-modal-overlay.active .dwm-config-modal {
  transform: scale(1) translateY(0);
}

/* ==================== MODAL HEADER ==================== */
.dwm-config-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dwm-config-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dwm-config-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-radius: 12px;
  font-size: 20px;
  color: #a78bfa;
}

.dwm-config-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.dwm-config-title p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.dwm-config-title strong {
  color: #a78bfa;
}

.dwm-config-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dwm-config-action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dwm-config-action-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.dwm-config-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.dwm-config-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ==================== MODAL BODY ==================== */
.dwm-config-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ==================== SIDEBAR NAVIGATION ==================== */
.dwm-config-sidebar {
  width: 240px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.dwm-config-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.dwm-config-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.dwm-config-nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.dwm-config-nav-item span {
  flex: 1;
}

.dwm-config-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.dwm-config-nav-item.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: #ffffff;
}

.dwm-config-nav-item.active i {
  color: #a78bfa;
}

.dwm-config-nav-badge {
  padding: 2px 8px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #a78bfa;
}

.dwm-config-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dwm-config-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.dwm-config-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.dwm-config-status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.dwm-config-last-scan {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==================== CONTENT AREA ==================== */
.dwm-config-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ==================== TAB CONTENT ==================== */
.dwm-config-tab {
  display: none;
  animation: fadeIn 0.3s ease;
}

.dwm-config-tab.active {
  display: block;
}

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

.dwm-config-tab-header {
  margin-bottom: 24px;
}

.dwm-config-tab-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.dwm-config-tab-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ==================== SECTIONS ==================== */
.dwm-config-section {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.dwm-config-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dwm-config-section-header i {
  font-size: 16px;
  color: #a78bfa;
}

.dwm-config-section-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  flex: 1;
}

.dwm-config-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #a78bfa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dwm-config-add-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

/* ==================== FORM ELEMENTS ==================== */
.dwm-config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dwm-config-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dwm-config-field.full-width {
  grid-column: 1 / -1;
}

.dwm-config-field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.dwm-config-input {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  color: #ffffff;
  transition: all 0.2s ease;
}

.dwm-config-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.dwm-config-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.dwm-config-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dwm-config-select {
  padding: 10px 36px 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.dwm-config-select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.dwm-config-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dwm-config-select option {
  background: #1a1f2e;
  color: #ffffff;
}

.dwm-config-select-sm {
  padding: 6px 28px 6px 10px;
  font-size: 13px;
}

.dwm-config-textarea {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  color: #ffffff;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.dwm-config-textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.dwm-config-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==================== CHECKBOXES ==================== */
.dwm-config-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dwm-config-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.dwm-config-checkbox input {
  display: none;
}

.dwm-config-checkbox-mark {
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  position: relative;
  transition: all 0.2s ease;
}

.dwm-config-checkbox input:checked + .dwm-config-checkbox-mark {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #8b5cf6;
}

.dwm-config-checkbox input:checked + .dwm-config-checkbox-mark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dwm-config-checkbox:hover .dwm-config-checkbox-mark {
  border-color: rgba(139, 92, 246, 0.5);
}

/* ==================== TAGS ==================== */
.dwm-config-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.dwm-config-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #60a5fa;
}

.dwm-config-tag i {
  font-size: 12px;
}

.dwm-config-tag.brand {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.dwm-config-tag-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dwm-config-tag-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  opacity: 1;
}

.dwm-config-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ==================== TOGGLE SWITCH ==================== */
.dwm-config-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.dwm-config-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dwm-config-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.dwm-config-switch-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dwm-config-switch input:checked + .dwm-config-switch-slider {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #8b5cf6;
}

.dwm-config-switch input:checked + .dwm-config-switch-slider::before {
  transform: translateX(20px);
  background: #ffffff;
}

/* ==================== TOOLBAR ==================== */
.dwm-config-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dwm-config-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.dwm-config-search i {
  color: rgba(255, 255, 255, 0.4);
}

.dwm-config-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #ffffff;
}

.dwm-config-search input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.dwm-config-filters {
  display: flex;
  gap: 10px;
}

/* ==================== KEYWORDS LIST ==================== */
.dwm-config-keywords-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.dwm-config-keyword-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.dwm-config-keyword-row:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.2);
}

.dwm-config-keyword-type {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 10px;
  color: #a78bfa;
  font-size: 16px;
}

.dwm-config-keyword-info {
  flex: 1;
  min-width: 0;
}

.dwm-config-keyword-term {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.dwm-config-keyword-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.dwm-config-keyword-type-badge {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-transform: capitalize;
}

.dwm-config-keyword-priority {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dwm-config-keyword-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.dwm-config-keyword-status .dwm-config-status-dot {
  width: 6px;
  height: 6px;
}

.dwm-config-keyword-status.active .dwm-config-status-dot {
  background: #22c55e;
}

.dwm-config-keyword-status.paused .dwm-config-status-dot {
  background: #f59e0b;
}

.dwm-config-keyword-actions {
  display: flex;
  gap: 8px;
}

.dwm-config-action-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dwm-config-action-icon:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.dwm-config-action-icon.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.dwm-config-action-icon.success:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.dwm-config-action-icon.warning:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

/* ==================== KEYWORDS STATS ==================== */
.dwm-config-keywords-stats {
  display: flex;
  gap: 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-radius: 12px;
}

.dwm-config-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dwm-config-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.dwm-config-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==================== SOURCES GRID ==================== */
.dwm-config-sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dwm-config-source-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.2s ease;
}

.dwm-config-source-card.disabled {
  opacity: 0.5;
}

.dwm-config-source-card.enabled {
  border-color: rgba(139, 92, 246, 0.3);
}

.dwm-config-source-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dwm-config-source-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-radius: 12px;
  font-size: 18px;
  color: #a78bfa;
}

.dwm-config-source-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.dwm-config-source-priority {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.dwm-config-source-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.dwm-config-source-expand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.dwm-config-source-expand:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
}

.dwm-config-source-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dwm-config-source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.dwm-config-source-item i {
  color: #22c55e;
  font-size: 10px;
}

/* ==================== ALERT RULES ==================== */
.dwm-config-alert-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.dwm-config-alert-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.dwm-config-alert-rule:hover {
  border-color: rgba(139, 92, 246, 0.2);
}

.dwm-config-rule-status {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dwm-config-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.dwm-config-status-indicator.active {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.dwm-config-rule-info {
  flex: 1;
  min-width: 0;
}

.dwm-config-rule-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.dwm-config-rule-condition {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.dwm-config-rule-condition code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.dwm-config-rule-action,
.dwm-config-rule-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.dwm-config-rule-actions {
  display: flex;
  gap: 6px;
}

/* ==================== THRESHOLD GRID ==================== */
.dwm-config-threshold-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dwm-config-threshold {
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  text-align: center;
}

.dwm-config-threshold-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.dwm-config-threshold-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dwm-config-threshold.critical .dwm-config-threshold-dot { background: #ef4444; }
.dwm-config-threshold.high .dwm-config-threshold-dot { background: #f97316; }
.dwm-config-threshold.medium .dwm-config-threshold-dot { background: #eab308; }
.dwm-config-threshold.low .dwm-config-threshold-dot { background: #22c55e; }

.dwm-config-threshold-value {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==================== NOTIFICATIONS GRID ==================== */
.dwm-config-notifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dwm-config-notification-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.dwm-config-notification-card.enabled {
  opacity: 1;
  border-color: rgba(139, 92, 246, 0.3);
}

.dwm-config-notification-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dwm-config-notification-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-radius: 12px;
  font-size: 20px;
  color: #a78bfa;
}

.dwm-config-notification-icon.slack {
  background: linear-gradient(135deg, rgba(78, 10, 100, 0.3) 0%, rgba(225, 33, 138, 0.2) 100%);
  color: #e01e5a;
}

.dwm-config-notification-icon.teams {
  background: linear-gradient(135deg, rgba(70, 78, 175, 0.3) 0%, rgba(91, 95, 199, 0.2) 100%);
  color: #5b5fc7;
}

.dwm-config-notification-icon.pagerduty {
  background: linear-gradient(135deg, rgba(0, 99, 65, 0.3) 0%, rgba(6, 172, 56, 0.2) 100%);
  color: #06ac38;
}

.dwm-config-notification-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.dwm-config-notification-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==================== INTEGRATIONS ==================== */
.dwm-config-integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.dwm-config-integration-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.dwm-config-integration-card.enabled {
  opacity: 1;
  border-color: rgba(139, 92, 246, 0.3);
}

.dwm-config-integration-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.dwm-config-integration-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-radius: 12px;
  font-size: 20px;
  color: #a78bfa;
}

.dwm-config-integration-icon.splunk {
  background: linear-gradient(135deg, rgba(101, 184, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
  color: #65b800;
}

.dwm-config-integration-icon.webhook {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
  color: #60a5fa;
}

.dwm-config-integration-info {
  flex: 1;
}

.dwm-config-integration-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.dwm-config-integration-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.dwm-config-integration-status.connected {
  color: #22c55e;
}

.dwm-config-integration-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==================== API ACCESS ==================== */
.dwm-config-api-info {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.dwm-config-api-key-row {
  margin-bottom: 16px;
}

.dwm-config-api-key-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.dwm-config-api-key-display {
  display: flex;
  gap: 8px;
}

.dwm-config-api-key-display input {
  flex: 1;
}

.dwm-config-api-docs {
  display: flex;
  gap: 20px;
}

.dwm-config-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dwm-config-link:hover {
  color: #c4b5fd;
}

/* ==================== SCANNING TAB ==================== */
.dwm-config-frequency-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dwm-config-radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dwm-config-radio-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.dwm-config-radio-card.selected {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
}

.dwm-config-radio-card input {
  display: none;
}

.dwm-config-radio-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dwm-config-radio-content i {
  font-size: 20px;
  color: #a78bfa;
  margin-bottom: 4px;
}

.dwm-config-radio-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.dwm-config-radio-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.dwm-config-radio-check {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: transparent;
  transition: all 0.2s ease;
}

.dwm-config-radio-card.selected .dwm-config-radio-check {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #8b5cf6;
  color: #ffffff;
}

.dwm-config-depth-slider {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.dwm-config-depth-slider input[type="range"] {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  margin-bottom: 12px;
}

.dwm-config-depth-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.dwm-config-depth-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dwm-config-depth-labels span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.dwm-config-depth-labels span.active {
  color: #a78bfa;
  font-weight: 600;
}

.dwm-config-depth-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ==================== TEMPLATES TAB ==================== */
.dwm-config-templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dwm-config-template-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s ease;
}

.dwm-config-template-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.dwm-config-template-card.active {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.05);
}

.dwm-config-template-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dwm-config-template-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-radius: 12px;
  font-size: 18px;
  color: #a78bfa;
}

.dwm-config-template-badge {
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #22c55e;
  text-transform: uppercase;
}

.dwm-config-template-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.dwm-config-template-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.dwm-config-template-keywords {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.dwm-config-template-keyword {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin: 2px 4px 2px 0;
}

.dwm-config-template-more {
  color: #a78bfa;
}

.dwm-config-template-compliance {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.dwm-config-compliance-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  margin: 2px 4px 2px 0;
  color: #60a5fa;
}

.dwm-config-btn-template {
  width: 100%;
  justify-content: center;
}

.dwm-config-custom-templates {
  display: flex;
  gap: 12px;
}

/* ==================== BUTTONS ==================== */
.dwm-config-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.dwm-config-btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.dwm-config-btn-primary:hover {
  background: linear-gradient(135deg, #9d6fff 0%, #8b4ffa 100%);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
}

.dwm-config-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.dwm-config-btn-secondary:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #fff;
}

.dwm-config-btn-ghost {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
}

.dwm-config-btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.dwm-config-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.dwm-config-btn-ghost-sm {
  padding: 6px 12px;
  font-size: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dwm-config-btn-ghost-sm:hover {
  color: #ffffff;
}

/* ==================== MODAL FOOTER ==================== */
.dwm-config-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dwm-config-footer-left,
.dwm-config-footer-right {
  display: flex;
  gap: 12px;
}

/* ==================== TOAST ==================== */
.dwm-config-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(18, 24, 38, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 10002;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dwm-config-toast.show {
  transform: translateX(0);
}

.dwm-config-toast.success { border-left: 4px solid #22c55e; }
.dwm-config-toast.error { border-left: 4px solid #ef4444; }
.dwm-config-toast.warning { border-left: 4px solid #f59e0b; }
.dwm-config-toast.info { border-left: 4px solid #3b82f6; }

.dwm-config-toast i {
  font-size: 18px;
}

.dwm-config-toast.success i { color: #4ade80; }
.dwm-config-toast.error i { color: #f87171; }
.dwm-config-toast.warning i { color: #fbbf24; }
.dwm-config-toast.info i { color: #60a5fa; }

.dwm-config-toast span {
  font-size: 14px;
  color: #ffffff;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .dwm-config-sources-grid,
  .dwm-config-templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dwm-config-frequency-options {
    grid-template-columns: 1fr;
  }
  
  .dwm-config-threshold-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .dwm-config-modal-body {
    flex-direction: column;
  }
  
  .dwm-config-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .dwm-config-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px;
    gap: 8px;
  }
  
  .dwm-config-nav-item {
    flex: 0 0 auto;
    padding: 10px 14px;
  }
  
  .dwm-config-nav-item span:not(.dwm-config-nav-badge) {
    display: none;
  }
  
  .dwm-config-sidebar-footer {
    display: none;
  }
  
  .dwm-config-grid,
  .dwm-config-notifications-grid,
  .dwm-config-integrations-grid {
    grid-template-columns: 1fr;
  }
  
  .dwm-config-sources-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dwm-config-modal-overlay {
    padding: 10px;
  }
  
  .dwm-config-modal {
    max-height: 95vh;
    border-radius: 16px;
  }
  
  .dwm-config-modal-header {
    padding: 16px;
  }
  
  .dwm-config-header-left {
    gap: 12px;
  }
  
  .dwm-config-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .dwm-config-title h2 {
    font-size: 16px;
  }
  
  .dwm-config-content {
    padding: 16px;
  }
  
  .dwm-config-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .dwm-config-search {
    max-width: none;
  }
  
  .dwm-config-filters {
    flex-wrap: wrap;
  }
  
  .dwm-config-modal-footer {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  
  .dwm-config-footer-left,
  .dwm-config-footer-right {
    width: 100%;
    justify-content: center;
  }
  
  .dwm-config-templates-grid {
    grid-template-columns: 1fr;
  }
}
