* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 380px;
  height: 600px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  overflow: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  width: 24px;
  height: 24px;
}

.logo h1 {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
}

.status-dot.online {
  background: #44ff44;
}

.status-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-button {
  flex: 1;
  padding: 12px 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.tab-button.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-bottom: 2px solid #fff;
}

.tab-content {
  height: calc(100vh - 120px);
  overflow-y: auto;
}

.tab-panel {
  display: none;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  height: 100%;
}

.tab-panel.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recent-activity h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

.activity-list {
  max-height: 200px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-item.placeholder {
  justify-content: center;
  text-align: center;
  color: #666;
  font-style: italic;
}

.activity-icon {
  font-size: 20px;
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-weight: 500;
  margin-bottom: 2px;
}

.activity-subtitle {
  font-size: 12px;
  color: #666;
}

.add-wallet-section {
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.input-group input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 8px;
}

.btn-secondary:hover {
  background: #eee;
}

.wallet-list {
  max-height: 300px;
  overflow-y: auto;
}

.wallet-item {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #667eea;
}

.wallet-item.placeholder {
  text-align: center;
  color: #666;
  font-style: italic;
  border-left: none;
}

.wallet-address {
  font-weight: 500;
  margin-bottom: 4px;
  font-family: monospace;
  font-size: 12px;
}

.wallet-stats {
  font-size: 12px;
  color: #666;
}

.signals-filter {
  margin-bottom: 16px;
}

.signals-filter select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.signals-list {
  max-height: 400px;
  overflow-y: auto;
}

.signal-item {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ff9800;
}

.signal-item.placeholder {
  text-align: center;
  color: #666;
  font-style: italic;
  border-left: none;
}

.signal-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.signal-subtitle {
  font-size: 12px;
  color: #666;
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

.setting-item {
  margin-bottom: 12px;
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.setting-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.setting-item input[type="number"] {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 80px;
  margin-left: 8px;
}

.about-info {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.about-info p {
  margin-bottom: 8px;
}

.links {
  margin-top: 12px;
}

.links a {
  color: #667eea;
  text-decoration: none;
  margin-right: 12px;
  font-weight: 500;
}

.links a:hover {
  text-decoration: underline;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}
