  body { font-family: system-ui, -apple-system, sans-serif; margin: 20px; background: #111; color: #eee; line-height: 1.4; }
    .container { max-width: 800px; margin: 0 auto; }
    input, button { width: 100%; padding: 10px; margin: 5px 0; border-radius: 3px; }
    input { background: #222; border: 1px solid #444; color: #eee; font-size: 14px; }
    button { background: #0af; border: none; cursor: pointer; color: #eee; font-weight: 500; transition: all 0.2s; }
    button:hover { background: #08c; }
    button:active { transform: scale(0.98); }
    button.deny { background: #f44; }
    button.deny:hover { background: #c33; }
    button.accept { background: #0f0; color: #000; }
    button.accept:hover { background: #0d0; }
    button.block { background: #888; }
    button.block:hover { background: #666; }
    button.small { width: auto; padding: 6px 12px; margin: 2px; font-size: 0.85em; }
    .status { margin: 15px 0; padding: 10px; background: #1a1a1a; border-radius: 3px; cursor: pointer; }
    .status:hover { background: #222; }
    #chatSection { display: none; }
    #messages { height: 400px; overflow-y: auto; border: 1px solid #444; padding: 15px; background: #0a0a0a; border-radius: 3px; }
    .msg { margin: 8px 0; padding: 8px 12px; border-radius: 12px; max-width: 85%; word-wrap: break-word; }
    .msg.own { text-align: right; background: #0af; color: #000; margin-left: auto; }
    .msg.peer { text-align: left; background: #222; color: #eee; }
    .section { margin: 20px 0; padding: 15px; border: 1px solid #333; border-radius: 5px; background: #1a1a1a; }
    .section h2 { margin-top: 0; font-size: 1.2em; color: #0af; }
    .request { background: #1a1a1a; padding: 12px; margin: 8px 0; border-left: 4px solid #f90; border-radius: 3px; }
    .contact-item { background: #1a1a1a; padding: 12px; margin: 8px 0; border-left: 4px solid #0af; border-radius: 3px; }
    .contact-item.blocked { border-left-color: #f44; opacity: 0.6; }
    .contact-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
    .contact-name { font-weight: 600; }
    .contact-status { font-size: 0.8em; color: #999; }
    .button-group { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
    #peerList { max-height: 200px; overflow-y: auto; }
    .call-container { display: none; margin: 10px 0; padding: 10px; background: #0a0a0a; border: 1px solid #444; border-radius: 3px; }
    #callControls { margin: 10px 0; }
    #callStatus { font-weight: bold; margin: 10px 0; }
    #callTimer, #videoCallTimer { font-size: 1.2em; color: #0af; font-weight: bold; }
    #transferProgress { margin: 10px 0; }
    #myContact { font-family: monospace; font-size: 12px; word-break: break-all; min-height: 40px; padding: 8px; }
    #messageInput { display: inline-block; width: calc(100% - 80px); margin-right: 5px; }
    #sendBtn { display: inline-block; width: 75px; }
    #fileInput { display: none; }
    .file-label { display: inline-block; padding: 8px 12px; background: #0af; color: #eee; cursor: pointer; border-radius: 3px; margin: 5px 5px 5px 0; }
    .file-label:hover { background: #08c; }
    .init-error { color: #f44; padding: 10px; background: #2a0000; border: 1px solid #f44; border-radius: 3px; margin: 10px 0; }
    
/* Contact status styles */
.contact-item.requested {
  background: rgba(255, 153, 0, 0.1);
  border-left: 3px solid #ff9900;
}

.contact-item.pending {
  background: rgba(0, 153, 255, 0.1);
  border-left: 3px solid #0099ff;
}

.contact-item.connected {
  background: rgba(0, 255, 0, 0.1);
  border-left: 3px solid #00ff00;
}

.contact-item.offline {
  background: rgba(128, 128, 128, 0.1);
  border-left: 3px solid #808080;
}

.contact-item.blocked {
  background: rgba(255, 68, 68, 0.1);
  border-left: 3px solid #ff4444;
  opacity: 0.7;
}

.contact-item.connecting {
  animation: pulse 1.5s infinite;
}

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

/* Contact status indicators */
.contact-status {
  font-size: 0.85em;
  margin-top: 2px;
}

.contact-status small {
  font-size: 0.9em;
  opacity: 0.8;
}

/* Button styles for different actions */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.button-group .small {
  padding: 4px 8px;
  font-size: 0.85em;
}

.accept {
  background: #0f0 !important;
  color: #000 !important;
}

.deny {
  background: #f44 !important;
  color: #fff !important;
}

.block {
  background: #f84 !important;
  color: #000 !important;
}