/* 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 220px;
  min-width: 180px;
  max-width: 320px;
  position: relative;
}

.server-ip-details-search-group .search-input {
  width: 100%;
  height: 38px;
  padding: 8px 2rem 8px 16px;
  border: 1px solid #0082a3;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
}

.server-ip-details-search-group .search-input:focus {
  outline: none;
  border-color: #164966;
  box-shadow: 0 0 0 2px rgba(22, 73, 102, 0.25);
}

.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 140px;
  min-width: 130px;
  max-width: 190px;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid #0082a3;
  border-radius: 6px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  appearance: menulist;
}

.server-ip-details-status-select:focus {
  outline: none;
  border-color: #164966;
  box-shadow: 0 0 0 2px rgba(22, 73, 102, 0.25);
}

.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;
  }
}
