body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
  color: #333;
  font-size: 16px;
}

h1,
h2 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 25px;
}

h1 {
  margin-top: 15px;
  margin-bottom: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 로그인 페이지 스타일 */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.login-container h2 {
  margin-top: 0;
  color: #2c3e50;
  margin-bottom: 30px;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.login-btn {
  width: 100%;
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #2980b9;
}

.login-error {
  color: #e74c3c;
  margin-top: 15px;
  font-size: 14px;
  display: none;
}

.logout-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  position: absolute;
  top: 20px;
  right: 20px;
}

.logout-btn:hover {
  background-color: #5a6268;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 25px;
  margin-top: 20px;
}

.card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: all 0.2s ease;
  word-break: break-word;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  border: 1px solid #e1e5e9;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #3b82f6;
  border-radius: 6px 6px 0 0;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.card::after {
  display: none;
}

.card p {
  margin: 12px 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}

.card strong {
  display: inline-block;
  min-width: 120px;
  color: #6b7280;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  flex-shrink: 0;
}

.card-info-value {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.uuid-value {
  display: inline-block;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  background: #f3f4f6;
  color: #1f2937;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  max-width: 100%;
  border: 1px solid #e5e7eb;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header span {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  background: #f9fafb;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
}

.status {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.status.online {
  background: #10b981;
}

.status.offline {
  background: #ef4444;
}

.count {
  background: #3b82f6;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
}

.serials-container {
  max-height: 100px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  position: relative;
}

.serials-container::-webkit-scrollbar {
  width: 6px;
}

.serials-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.serials-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.tag {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  margin-right: 4px;
  margin-bottom: 4px;
  word-break: break-all;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
}

.tag:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.client-list {
  margin-top: 30px;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 5px;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  flex: 1;
  margin: 0 15px 15px 0;
  min-width: 150px;
}

.stat-card h3 {
  margin: 0;
  font-size: 15px;
  color: #7f8c8d;
}

.stat-card .number {
  font-size: 28px;
  font-weight: bold;
  margin: 10px 0;
  color: #3498db;
}

.time {
  font-size: 14px;
  color: #95a5a6;
  display: block;
  margin-bottom: 10px;
}

.refresh-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
}

.refresh-button:hover {
  background-color: #2980b9;
}

#loading {
  display: none;
  text-align: center;
  margin: 20px 0;
  font-size: 16px;
}

#error-message {
  display: none;
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 4px;
  margin: 20px 0;
  font-size: 16px;
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 50px auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 80%;
  position: relative;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-button:hover {
  color: #555;
}

.back-button {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 20px;
}

.back-button:hover {
  background-color: #5a6268;
}

.detail-section {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th,
.detail-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.detail-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

/* 모달 내 필터링 및 페이지네이션 스타일 */
.serials-filter {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-input {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.serials-info {
  font-size: 13px;
  color: #6c757d;
  margin-left: auto;
}

.modal-pagination {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 5px;
}

.modal-pagination button {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.modal-pagination button:hover {
  background-color: #e9ecef;
}

.modal-pagination button.active {
  background-color: #3498db;
  color: white;
  border-color: #3498db;
}

.modal-pagination button:disabled {
  background-color: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
}

/* 시각화 차트 컨테이너 */
.chart-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow:
    0 10px 25px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin: 30px 0;
  max-height: 450px;
  height: 420px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.chart-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12);
  border-radius: 16px 16px 0 0;
}

.chart-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  flex-shrink: 0;
  width: 100%;
}

.chart-content {
  display: flex;
  flex-direction: row;
  height: calc(100% - 30px);
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 60px;
}

.chart-canvas-container {
  width: 320px;
  height: 320px;
  max-width: 320px;
  max-height: 320px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  order: 1;
}

.chart-legend-container {
  width: 400px;
  min-width: 350px;
  max-width: 450px;
  padding: 16px;
  height: 320px;
  margin-left: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  order: 2;
  position: relative;
}

.chart-legend-container::-webkit-scrollbar {
  width: 8px;
}

.chart-legend-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  margin: 4px 0;
}

.chart-legend-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3498db, #2980b9);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-legend-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2980b9, #1f5f99);
}

/* 스크롤 표시기 */
.chart-legend-container::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(52, 152, 219, 0.3));
  border-radius: 2px;
  pointer-events: none;
}

.custom-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding-bottom: 8px;
}

/* 범례가 많을 때 알림 */
.legend-scroll-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(52, 152, 219, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chart-legend-container:hover .legend-scroll-hint {
  opacity: 1;
}

.legend-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 0;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 60px;
  height: 60px;
}

.legend-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 25px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.legend-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--legend-color);
  border-radius: 12px 12px 0 0;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid white;
  flex-shrink: 0;
}

.legend-text {
  flex: 1;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  color: #2c3e50;
  line-height: 1.4;
}

.legend-server-url {
  font-weight: 700;
  font-size: 13px;
  color: #2c3e50;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-uuid {
  font-size: 10px;
  color: #6c757d;
  margin-bottom: 6px;
  font-family: "Courier New", monospace;
  background: rgba(108, 117, 125, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.legend-device-count {
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  color: var(--legend-color);
}

/* 툴팁 스타일 개선 */
.legend-server-url[title]:hover::after,
.legend-uuid[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.legend-server-url[title]:hover::before,
.legend-uuid[title]:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  pointer-events: none;
}

.uuid-tooltip {
  position: relative;
  cursor: pointer;
}

.uuid-tooltip:hover::after {
  content: attr(data-full-uuid);
  position: absolute;
  top: -30px;
  left: 0;
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}

.chart-title {
  font-size: 20px;
  color: #2c3e50;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* 검색 폼 */
.search-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 30px 0;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  min-width: 250px;
}

.search-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
}

.reset-button {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
}

.search-result {
  margin-top: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
  display: none;
}

.search-detail {
  margin-top: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  border-left: 4px solid #3498db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.search-detail h4 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.search-detail p {
  margin: 5px 0;
  font-size: 14px;
}

.match-info {
  background-color: #e8f4fd;
  padding: 8px;
  border-radius: 4px;
  margin-top: 8px;
}

.match-type {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-right: 5px;
  color: white;
}

.match-type.connected {
  background-color: #2ecc71;
}

.match-type.subscribed {
  background-color: #3498db;
}

.match-type.disconnected {
  background-color: #e74c3c;
}

/* 페이지네이션 스타일 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  align-items: center;
  gap: 5px;
}

.pagination button {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.pagination button:hover {
  background-color: #e9ecef;
}

.pagination button.active {
  background-color: #3498db;
  color: white;
  border-color: #3498db;
}

.pagination button:disabled {
  background-color: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
}

.pagination .page-info {
  font-size: 14px;
  color: #6c757d;
  margin: 0 10px;
}

.search-loading {
  display: none;
  text-align: center;
  margin: 20px 0;
}

.search-loading .spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 모바일 최적화 */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-header span {
    margin-top: 5px;
  }

  .stat-card {
    min-width: 100%;
    margin-right: 0;
  }

  .stats {
    flex-direction: column;
  }

  .modal-content {
    width: 95%;
    margin: 20px auto;
    padding: 15px;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input,
  .search-button,
  .reset-button {
    width: 100%;
    margin-bottom: 10px;
  }

  .chart-container {
    height: 200px; /* 모바일에서 차트 높이 줄임 */
  }

  .chart-content {
    flex-direction: column;
    height: calc(100% - 30px);
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    gap: 15px;
  }

  .chart-canvas-container {
    width: 100%;
    max-width: 250px;
    max-height: 200px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  .chart-legend-container {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    max-height: 200px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-y: auto;
  }
}

/* 클라이언트가 없을 때 표시되는 메시지 스타일 */
.no-clients-message {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 16px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.no-clients-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.no-clients-message h3 {
  font-size: 24px;
  margin: 0 0 15px 0;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.no-clients-message p {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.no-clients-message .icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

/* 서버 URL 링크 스타일 개선 */
.server-url-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  border: 1px solid rgba(102, 126, 234, 0.2);
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
}

.server-url-link::before {
  content: "🌐";
  font-size: 16px;
  margin-right: 6px;
  display: inline-block;
}

.server-url-link:hover {
  color: white;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

.server-url-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}


/* 성능 지표 섹션 */
.performance-container {
  margin: 30px 0;
  display: grid;
  gap: 20px;
}

.performance-section {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #f8f9fa;
  padding-bottom: 15px;
}

.section-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 18px;
}

.section-status {
  padding: 5px 12px;
  background-color: #e3f2fd;
  color: #1976d2;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.performance-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.chart-wrapper {
  background-color: #fafafa;
  border-radius: 8px;
  padding: 15px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.performance-stats {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-weight: 500;
  color: #6c757d;
}

.stat-value {
  font-weight: bold;
  color: #2c3e50;
}

/* 매핑 성능 통계 그리드 */
.mapping-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.mapping-stat-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}

.mapping-stat-card:hover {
  transform: translateY(-3px);
}

.mapping-stat-card h4 {
  margin: 0 0 15px 0;
  font-size: 14px;
  opacity: 0.9;
  font-weight: normal;
}

.large-number {
  font-size: 28px;
  font-weight: bold;
  margin: 10px 0;
}

.stat-subtitle {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 5px;
}

.small-text {
  font-size: 12px;
  opacity: 0.9;
}

/* 시스템 성능 모니터링 (간소화된 하단 바) */
.system-performance-compact {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 20px 24px;
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}


.perf-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.perf-header .perf-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #2c3e50;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-badge.good {
  background-color: #27ae60;
}

.status-badge.warning {
  background-color: #f39c12;
}

.status-badge.danger {
  background-color: #e74c3c;
}

.perf-items {
  display: flex;
  gap: 25px;
  align-items: center;
}

.perf-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #34495e;
}

.perf-item .label {
  opacity: 0.8;
  color: #7f8c8d;
}

.perf-item .value {
  font-weight: bold;
  font-size: 16px;
  color: #2c3e50;
}

/* 반응형 디자인 개선 */
@media (max-width: 768px) {
  .stats {
    flex-direction: column;
  }
  
  .stat-card {
    margin-right: 0;
  }
  
  .system-performance-compact {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .perf-items {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
