/* ============================================================================
   ENTERPRISE DNS SUITE - STYLES
   ============================================================================ */

.dns-enterprise-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.dns-suite-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.suite-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.suite-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.suite-title .icon {
  font-size: 32px;
}

.badge.pro {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suite-subtitle {
  color: #94a3b8;
  font-size: 16px;
  margin: 0;
}

/* Tabs */
.dns-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(30, 41, 59, 0.5);
  padding: 8px;
  border-radius: 12px;
  overflow-x: auto;
}

.dns-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dns-tab:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #e2e8f0;
}

.dns-tab.active {
  background: #3b82f6;
  color: #fff;
}

.tab-icon {
  font-size: 18px;
}

/* Panels */
.dns-content {
  min-height: 500px;
}

.dns-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.dns-panel.active {
  display: block;
}

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

.panel-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.panel-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 8px 0;
}

.panel-header p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #64748b;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

/* Health Score Dashboard */
.health-score-dashboard {
  display: grid;
  gap: 24px;
}

.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border-radius: 16px;
  border: 2px solid;
}

.score-card.excellent { border-color: #10b981; }
.score-card.good { border-color: #3b82f6; }
.score-card.warning { border-color: #f59e0b; }
.score-card.critical { border-color: #ef4444; }

.score-circle {
  position: relative;
  width: 150px;
  height: 150px;
}

.score-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.score-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.score-progress {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  transition: stroke-dashoffset 1s ease;
}

.score-card.excellent .score-progress { stroke: #10b981; }
.score-card.good .score-progress { stroke: #3b82f6; }
.score-card.warning .score-progress { stroke: #f59e0b; }
.score-card.critical .score-progress { stroke: #ef4444; }

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
}

.score-label {
  font-size: 16px;
  color: #64748b;
}

.score-grade {
  font-size: 56px;
  font-weight: 800;
  margin-top: 16px;
}

.score-card.excellent .score-grade { color: #10b981; }
.score-card.good .score-grade { color: #3b82f6; }
.score-card.warning .score-grade { color: #f59e0b; }
.score-card.critical .score-grade { color: #ef4444; }

.score-status {
  font-size: 18px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 8px;
}

/* Category Cards */
.score-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  border-left: 4px solid;
  transition: transform 0.2s ease;
}

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

.category-card.excellent { border-left-color: #10b981; }
.category-card.good { border-left-color: #3b82f6; }
.category-card.warning { border-left-color: #f59e0b; }
.category-card.critical { border-left-color: #ef4444; }

.category-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.category-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.category-score {
  font-size: 14px;
  color: #64748b;
}

.category-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.category-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Recommendations */
.recommendations {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 20px;
}

.recommendations h4 {
  margin: 0 0 12px 0;
  color: #f59e0b;
}

.recommendations ul {
  margin: 0;
  padding-left: 20px;
}

.recommendations li {
  color: #e2e8f0;
  margin-bottom: 8px;
}

/* Propagation */
.propagation-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.summary-item {
  background: rgba(30, 41, 59, 0.6);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.summary-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.summary-label {
  display: block;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.status-propagated { color: #10b981; }
.status-partial { color: #f59e0b; }
.status-pending { color: #ef4444; }

.propagation-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.node-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.node-card.propagated { border-left: 4px solid #10b981; }
.node-card.failed { border-left: 4px solid #ef4444; }
.node-card.pending { border-left: 4px solid #f59e0b; }

.node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.node-flag {
  font-size: 20px;
}

.node-name {
  font-weight: 600;
  color: #e2e8f0;
  flex: 1;
}

.node-location {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.node-latency {
  font-size: 14px;
  font-weight: 600;
}

.node-latency.excellent { color: #10b981; }
.node-latency.good { color: #3b82f6; }
.node-latency.slow { color: #ef4444; }

/* Performance */
.performance-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.perf-card {
  background: rgba(30, 41, 59, 0.6);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.perf-card.best {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.perf-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.perf-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.resolver-comparison {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 20px;
}

.resolver-comparison h4 {
  margin: 0 0 16px 0;
  color: #e2e8f0;
}

.resolver-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.resolver-row:last-child {
  border-bottom: none;
}

.resolver-row.best {
  background: rgba(16, 185, 129, 0.1);
  margin: 0 -20px;
  padding: 12px 20px;
}

.resolver-info {
  width: 140px;
}

.resolver-name {
  display: block;
  font-weight: 600;
  color: #e2e8f0;
}

.resolver-location {
  font-size: 12px;
  color: #64748b;
}

.resolver-bar-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.resolver-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.resolver-row.best .resolver-bar {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.resolver-latency {
  width: 80px;
  text-align: right;
  font-weight: 600;
  color: #e2e8f0;
}

/* Traceroute Graph */
.traceroute-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.traceroute-controls .input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
}

.network-graph {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 24px;
  min-height: 400px;
}

.graph-summary {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.graph-stat {
  text-align: center;
}

.graph-stat .stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #3b82f6;
}

.graph-stat .stat-label {
  font-size: 12px;
  color: #64748b;
}

.graph-nodes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.graph-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.graph-node.origin {
  border-left-color: #10b981;
}

.graph-node.destination {
  border-left-color: #8b5cf6;
}

.graph-node.bottleneck {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
}

.graph-node.origin .node-dot { background: #10b981; }
.graph-node.destination .node-dot { background: #8b5cf6; }
.graph-node.bottleneck .node-dot { background: #ef4444; animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.node-info {
  flex: 1;
}

.node-hop {
  font-size: 12px;
  color: #64748b;
}

.node-isp {
  font-weight: 600;
  color: #e2e8f0;
}

.node-ip {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
}

.node-rtt {
  font-weight: 600;
  color: #3b82f6;
}

.bottleneck-alert {
  margin-top: 24px;
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
}

.bottleneck-alert h4 {
  color: #ef4444;
  margin: 0 0 12px 0;
}

.bottleneck-alert ul {
  margin: 0;
  padding-left: 20px;
}

.bottleneck-alert li {
  color: #e2e8f0;
  margin-bottom: 4px;
}

/* Watchdog */
.watchdog-setup {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.watchdog-setup h4 {
  margin: 0 0 16px 0;
  color: #e2e8f0;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input, .select {
  width: 100%;
  padding: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
}

.checkbox-group {
  display: flex;
  gap: 16px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
}

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

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

/* Monitors List */
.monitors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.monitor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.monitor-card.active {
  border-left-color: #10b981;
}

.monitor-card.paused {
  border-left-color: #f59e0b;
}

.monitor-info {
  flex: 1;
}

.monitor-domain {
  display: block;
  font-weight: 600;
  color: #e2e8f0;
}

.monitor-type {
  font-size: 12px;
  color: #64748b;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

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

.toast-success {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.toast-error {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}

.toast-warning {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
}

.toast-info {
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .dns-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .tab-label {
    display: none;
  }
  
  .score-breakdown {
    grid-template-columns: 1fr;
  }
  
  .propagation-summary {
    grid-template-columns: 1fr;
  }
  
  .performance-summary {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}
