/* RocketUp TeamPing Dashboard Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

header {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #667eea;
}

header p {
  color: #666;
  font-size: 14px;
}

.room-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.room-info p {
  margin: 4px 0;
  font-size: 14px;
}

.status-connected {
  color: #10b981;
  font-weight: 600;
}

.status-connecting {
  color: #f59e0b;
  font-weight: 600;
}

.status-disconnected {
  color: #6b7280;
  font-weight: 600;
}

.status-error {
  color: #ef4444;
  font-weight: 600;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #1f2937;
}

.create-room-section {
  text-align: center;
}

.result-message {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.result-message.success {
  background: #d1fae5;
  color: #065f46;
}

.result-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.result-message.loading {
  background: #dbeafe;
  color: #1e40af;
}

.refresh-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.last-updated {
  font-size: 12px;
  color: #6b7280;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: #f9fafb;
}

th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

tbody tr:hover {
  background: #f9fafb;
}

.room-id {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #6b7280;
}

.room-code {
  font-weight: 600;
  color: #667eea;
  font-size: 16px;
}

.user-id {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #6b7280;
}

.ping-value, .jitter-value, .loss-value {
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

.evaluation {
  font-weight: 600;
}

.evaluation.good {
  color: #10b981;
}

.evaluation.medium {
  color: #f59e0b;
}

.evaluation.bad {
  color: #ef4444;
}

.evaluation.unknown {
  color: #6b7280;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge.active {
  background: #d1fae5;
  color: #065f46;
}

.badge.inactive {
  background: #e5e7eb;
  color: #6b7280;
}

.btn-primary, .btn-secondary, .btn-link {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-link {
  background: transparent;
  color: #667eea;
  padding: 8px 16px;
}

.btn-link:hover {
  background: #f3f4f6;
}

.loading, .empty, .error {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

.error {
  color: #ef4444;
}

nav {
  margin-top: 16px;
}

.lang-selector {
  margin-top: 12px;
  text-align: right;
}

.lang-selector select {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  cursor: pointer;
}

.lang-selector select:hover {
  border-color: #667eea;
}

/* 반응형 */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  header h1 {
    font-size: 24px;
  }

  section {
    padding: 16px;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px;
  }
}

