/* Kingdom Dashboard specific styles */
#dashboard-view {
  animation: fadeIn 0.3s ease;
}

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

.dash-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0,0,0,0.2);
}

.dash-table th {
  background: rgba(255,255,255,0.03);
  padding: 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #94a3b8);
  border: 1px solid rgba(255,255,255,0.05);
}

.dash-table td {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  color: #f8fafc;
}

/* Removed hover effect as requested */

/* Premium Dashboard UI */
.dash-segmented-control {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 3px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.dash-segmented-control label {
  position: relative;
  z-index: 2;
  cursor: pointer;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted, #888);
  transition: color 0.3s ease;
  user-select: none;
  border-radius: 6px;
  width: 140px;
  text-align: center;
  white-space: nowrap;
}

.dash-segmented-control label:hover {
  color: #fff;
}

.dash-segmented-control input {
  display: none;
}

.dash-segmented-control input:checked + span {
  color: #fff;
}

.dash-segmented-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  width: 140px;
  background: var(--primary, #1479ff);
  border-radius: 6px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(20, 121, 255, 0.4);
}

.dash-segmented-control input:nth-of-type(1):checked ~ .dash-segmented-slider {
  transform: translateX(0);
}

.dash-segmented-control input:nth-of-type(2):checked ~ .dash-segmented-slider {
  transform: translateX(100%);
}

.dash-controls-wrap {
  background: rgba(20, 20, 20, 0.5);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dash-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-control-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-select-premium {
  appearance: none;
  color-scheme: dark;
  background-color: rgba(0, 0, 0, 0.4);
  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='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 36px 8px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  min-width: 170px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dash-select-premium option {
  background-color: #1a1a1a;
  color: #fff;
}

.dash-select-premium:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.05);
}

.dash-select-premium:focus {
  border-color: var(--primary, #1479ff);
  box-shadow: 0 0 0 2px rgba(20, 121, 255, 0.25);
}

.dash-btn-premium {
  background: linear-gradient(135deg, var(--primary, #1479ff) 0%, #0b5ece 100%);
  color: #fff;
  border: none;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(20, 121, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dash-btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 121, 255, 0.4);
}

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

@media (max-width: 768px) {
  .dash-controls-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .dash-control-group {
    margin-left: 0 !important;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .dash-select-premium {
    width: 100%;
    min-width: unset;
  }
  .perf-filters {
    justify-content: center;
  }
  .table-container {
    overflow-x: auto;
  }
  .dash-segmented-control {
    width: 100%;
    display: flex;
  }
  .dash-segmented-control label {
    flex: 1;
    width: auto;
  }
  .dash-segmented-slider {
    width: calc(50% - 3px);
  }
}

.dash-tooltip-container {
  position: relative;
  cursor: help;
}
.dash-tooltip-content {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
  pointer-events: none;
  width: auto;
  min-width: 280px;
  font-weight: normal;
  font-size: 13px;
  color: #fff;
}
.dash-tooltip-container:hover .dash-tooltip-content {
  opacity: 1;
  visibility: visible;
}
.dash-tooltip-badges {
  display: flex; 
  align-items: center; 
  gap: 6px; 
  background: rgba(0,0,0,0.3); 
  padding: 8px 12px; 
  border-radius: 8px; 
  border: 1px solid rgba(255,255,255,0.05); 
}
.dash-tooltip-badges * {
  white-space: nowrap !important;
}
