/* Custom CSS untuk IP Management Dashboard */

/* Override warna AdminLTE - hilangkan biru terong dan pink */
.btn-primary {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}

.btn-primary:hover {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
}

.btn-info {
  background-color: #17a2b8 !important;
  border-color: #17a2b8 !important;
}

.btn-info:hover {
  background-color: #138496 !important;
  border-color: #117a8b !important;
}

/* Sidebar */
.sidebar-dark-primary {
  background-color: #343a40 !important;
}

.sidebar-dark-primary .nav-link.active {
  background-color: #28a745 !important;
  color: #fff !important;
}

/* Info boxes */
.info-box {
  box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
  border-radius: .25rem;
  margin-bottom: 1rem;
}

/* Table styling */
#ipTable {
  font-size: 14px;
}

#ipTable thead {
  background-color: #f8f9fa;
}

#ipTable tbody tr:hover {
  background-color: #f1f1f1;
}

/* Sortable headers */
.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.sortable:hover {
  background-color: #e9ecef !important;
}

.sortable i {
  margin-left: 5px;
  opacity: 0.5;
}

.sortable i.fa-sort-up,
.sortable i.fa-sort-down {
  opacity: 1;
  color: #28a745;
}

/* Checkbox styling */
input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

#selectAll {
  width: 20px;
  height: 20px;
}

/* Bulk delete button */
#bulkDeleteBtn {
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Button groups */
.btn-group-sm > .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #28a745;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Port list styling */
.port-list {
  max-height: 400px;
  overflow-y: auto;
}

.port-item {
  display: inline-block;
  margin: 5px;
}

/* Badge styling */
.badge {
  font-size: 90%;
  padding: 0.35em 0.65em;
}

/* Card header */
.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

/* Responsive table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* SweetAlert custom styling */
.swal2-popup {
  font-size: 1rem !important;
}

.swal2-styled.swal2-confirm {
  background-color: #28a745 !important;
}

.swal2-styled.swal2-cancel {
  background-color: #dc3545 !important;
}

/* Copy button */
.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: #fff;
}

