/* === RESET + CƠ BẢN === */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

/* === CỘT === */
.left-column,
.right-column {
  flex: 1;
  min-width: 350px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* === TIÊU ĐỀ & NHÃN === */
h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

label {
  font-weight: bold;
  margin-top: 15px;
  display: block;
}

/* === FORM === */
select,
textarea {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: vertical;
}

/* === NÚT === */
button {
  background-color: #007bff;
  color: #fff;
  padding: 10px 15px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* === TRẠNG THÁI === */
#activeProxies,
#inactiveProxies {
  height: 150px;
}

.proxy-status {
  margin-top: 20px;
}

.status-live {
  color: green;
  font-weight: bold;
  animation: highlightGreen 1s ease;
}

.status-die {
  color: red;
  font-weight: bold;
  animation: highlightRed 1s ease;
}

.status-pending {
  color: orange;
  font-weight: bold;
}

/* === BẢNG === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 14px;
  text-align: center;
}

th {
  background-color: #f2f2f2;
  color: #333;
}

/* === LOADING SPINNER === */
.loading-spinner {
  margin: 20px auto;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  display: none;
}

/* === ANIMATION === */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes highlightGreen {
  from { background-color: #d4edda; }
  to { background-color: transparent; }
}

@keyframes highlightRed {
  from { background-color: #f8d7da; }
  to { background-color: transparent; }
}
