body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: transparent;
  color: #f8fafc;
}

.container {
  max-width: 400px;
  min-width: 320px;
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 9999;
  padding: 20px;
  background: #1e293b;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  border: 1.5px solid #334155;
  cursor: default;
  box-sizing: border-box;
  overflow: hidden;
}

.floating-header {
  width: 100%;
  cursor: move;
  background: transparent;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #334155;
  user-select: none;
}

h1 {
  text-align: center;
  margin-bottom: 24px;
  color: #60a5fa;
}

.listing-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

input, select, button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  flex: 1;
  box-sizing: border-box;
  min-width: 0;
}

button {
  background-color: #2563eb;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background-color: #1d4ed8;
}

#refreshDataBtn {
  flex: 0 0 auto;
  width: 40px;
  padding: 8px;
  background-color: #059669;
  font-size: 14px;
}

#refreshDataBtn:hover {
  background-color: #047857;
}

.listings {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  color: #f8fafc;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content h2 {
  margin-top: 0;
  color: #60a5fa;
  font-size: 1.5em;
}

.modal-content p {
  color: #cbd5e1;
  margin-bottom: 20px;
}

.item-selector {
  margin: 10px 0;
}

.item-selector input, .item-selector select {
  width: 100%;
  box-sizing: border-box;
}

.item-option {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.item-option:hover {
  background-color: #f5f5f5;
}

.listing-card {
  background: #334155;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.listing-card:hover {
  background: #3f4c63;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  border-color: #60a5fa;
  transform: translateY(-2px);
}

.header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: bold;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.online {
  background-color: #22c55e;
}

.status-dot.offline {
  background-color: #6b7280;
}

.details {
  line-height: 1.5;
  font-size: 15px;
}

.description {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  font-style: italic;
  color: #cbd5e1;
  border-left: 3px solid #60a5fa;
}

.reply-button {
  margin-top: 12px;
  padding: 8px 16px;
  background: #059669;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s;
}

.reply-button:hover {
  background: #047857;
}
