body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 1rem 1rem 1rem 0.5rem; /* ลด padding ซ้ายเหลือ 0.5rem */
  border-left: 6px solid transparent;
  background: #f0f0f0;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  word-break: break-word;
  font-size: 1rem;
  position: relative;
}

/* ขอบสีเขียวด้านซ้ายติดไอคอน */
li.up {
  border-left-color: #4caf50;
  background: #e8f5e9;
  color: #2e7d32;
  
}

/* ปรับให้ไอคอนชิดขอบซ้าย */
li img.favicon {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  flex-shrink: 0;
  border-radius: 3px;
  position: absolute;
  left: 8px;  /* ชิดขอบซ้ายมาก */
  top: 50%;
  transform: translateY(-50%);
}

/* ขยับเนื้อหาให้ไม่ทับไอคอน */
li span {
  flex: 1 1 70%;
  text-align: left;
  display: flex;
  align-items: center;
  padding-left: 36px; /* เว้นที่ให้ไอคอน */
}

.up {
  border-color: #4caf50;
  background: #e8f5e9;
  color: #2e7d32;
  margin-bottom: 10px;
}

.down {
  border-color: #f44336;
  background: #ffebee;
  color: #c62828;
  margin-bottom: 10px;
}

.error {
  border-color: #ff9800;
  background: #fff3e0;
  color: #ef6c00;
  margin-bottom: 10px;
}

button#refresh-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: background 0.2s ease;
}

button#refresh-btn:hover {
  background-color: #0056b3;
}

span a {
  color: inherit;
  text-decoration: none;
}

span a:hover {
  text-decoration:none;
}

@media (max-width: 600px) {
 
}