/* Server IP Details Table Styles */

/* Page background color for stats page - white background */
.server-ip-details-page .card-body {
  background-color: #ffffff;
}

/* Filters Layout - Search and Status side by side */
.server-ip-details-filters {
  margin-bottom: 1rem;
}

.server-ip-details-filter-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.server-ip-details-search-group {
  flex: 1 1 40%;
  min-width: 200px;
  position: relative;
}

.server-ip-details-search-group .search-input {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.server-ip-details-search-group .clear-search {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-ip-details-status-select {
  flex: 1 1 25%;
  min-width: 150px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: #fff;
  cursor: pointer;
}

.server-ip-details-table-wrap {
  overflow-x: auto;
}

.server-ip-details-table {
  width: 100%;
  margin-bottom: 1rem;
  background-color: transparent;
  border-collapse: collapse;
}

.server-ip-details-table th,
.server-ip-details-table td {
  padding: 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.server-ip-details-table thead th {
  background-color: var(--color-table-th);
  color: white;
  font-weight: 500;
  border-bottom: 2px solid var(--color-border);
}

.server-ip-details-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.server-ip-details-loading-row td {
  padding: 2rem;
}

/* Ensure spinner uses theme color */
.server-ip-details-table-wrap .spinner-border {
  color: var(--color-table-th);
}

/* Dropdown Actions */
.actions-btn-custom {
  min-width: 80px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .server-ip-details-table th,
  .server-ip-details-table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .server-ip-details-table th,
  .server-ip-details-table td {
    padding: 0.375rem;
    font-size: 0.75rem;
  }
}
