.wpdt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  padding: 15px 20px;
  border-bottom: 1px solid #ccc;
  z-index: 1000;
  width: calc(100% - 20px); /* Compensate for WordPress admin padding */
  left: 0;
  margin-left: -20px; /* Align full width */
}
.wpdt-header h2 {
  margin: 0;
  font-size: 1.2em;
  line-height: 26px;
  font-weight: 1.4em;
  color: #1d2327;
}
.wpdt-header-buttons .wpdt-button {
  background: #213448;
  color: #fff;
  padding: 8px 10px;
  margin-left: 10px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.wpdt-header-buttons .wpdt-button:hover {
  background: #547792;
}
.wpdt-header-title {
  display: flex;
  align-items: center;
  gap: 3px;
}
.wpdt-header-icon {
  width: 32px;
  height: 32px;
}
.wpdt-settings-container {
  display: flex;
  gap: 20px;
  padding: 20px 20px 20px 0;
}
.wpdt-form-buttons {
  display: flex;
  gap: 10px;
}
.wpdt-log-container {
  flex: 1;
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
}
#debug-log-table th {
  background-color: #fff;
  font-weight: 500 !important;
  color: #2c3338;
}

/* Hide the default filters */
#debug-log-table_wrapper .dt-search,
#debug-log-table_wrapper .dt-length {
  display: none;
}

/* Custom filter container */
.filter-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f6f7f7;
  border-radius: 5px;
}

/* Left and right sections of the filter container */
.filter-left {
  display: flex;
  align-items: center;
}

.filter-right {
  display: flex;
  align-items: center;
}

.filter-right > * {
  margin-left: 10px;
}

#wpdb-download-log {
  margin: 0 10px 0 10px;
}

.wpdt-server-info-container {
  width: 100%;
  flex: 1;
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.wpdt-server-info-content {
  padding: 5px;
}

.wpdt-server-info-content textarea {
  height: 75vh;
  width: 100%;
  font-family: monospace;
  background-color: #fff;
}
.wpdt-server-info-content iframe {
  height: 75vh;
}

.wpdt-database-table-overview {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
}

.wpdt-database-table-overview summary {
  font-weight: bold;
  cursor: pointer;
  padding: 5px;
  background: #e0dede;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wpdt-database-table-overview summary span {
  font-size: 12px;
  color: #555;
  margin-left: 10px;
}

.wpdt-database-table-info-summary table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
}

.wpdt-database-table-info-summary table th {
  border: 1px solid #ddd;
  padding: 5px;
  font-weight: bold;
}

.wpdt-database-table-info-summary table td {
  border: 1px solid #ddd;
  padding: 5px;
}

.wpdt-general-setting-container {
  flex: 1;
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.wpdt-settings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  margin-bottom: 15px;
}
.wpdt-settings-table th,
.wpdt-settings-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}
.wpdt-toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}
.wpdt-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.wpdt-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}
.wpdt-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.wpdt-toggle input:checked + .wpdt-slider {
  background-color: #28a745;
}
.wpdt-toggle input:checked + .wpdt-slider:before {
  transform: translateX(16px);
}
/* Primary Button */
.wpdt-btn-primary {
  background-color: #213448;
  color: #ffffff;
  border: none;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.wpdt-btn-primary:hover {
  background-color: #162533; /* darker shade for hover */
}

/* Secondary Button */
.wpdt-btn-secondary {
  background-color: #f1f1f1;
  color: #213448;
  border: 1px solid #ccc;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.wpdt-btn-secondary:hover {
  background-color: #e2e2e2;
}

/* Info Button */
.wpdt-btn-info {
  background-color: #17a2b8; /* Bootstrap-like info blue */
  color: #ffffff;
  border: none;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.wpdt-btn-info:hover {
  background-color: #138496;
}

.wpdt-admin-notice-error {
  padding: 12px;
  margin: 20px 0 5px 0;
  border-left: 4px solid #dc3232;
  background-color: #fef7f7;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 3px;
}

.wpdt-table-fixed {
  table-layout: fixed;
  width: 100%;
}

.wpdt-table-fixed td,
.wpdt-table-fixed th {
  word-wrap: break-word;
  white-space: normal;
  vertical-align: top;
}

.wpdt-transient-value {
  max-height: 3.5em;
  overflow: hidden;
  position: relative;
  word-break: break-word;
}

.wpdt-transient-value.expanded {
  max-height: none;
}

.wpdt-view-toggle {
  cursor: pointer;
  color: #0073aa;
  display: inline-block;
  margin-top: 5px;
}

.wpdt-expired {
  color: red;
}

div.dt-container select.dt-input {
  padding: 0 24px 0 8px !important;
}

.wpdt-log-value {
  max-height: 3.5em;
  overflow: hidden;
  position: relative;
  word-break: break-word;
}

.wpdt-log-value.expanded {
  max-height: none;
}

.wpdt-filter-divider {
  width: 1px;
  background-color: #ccc;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
}

.wpdt-log-tbl-action {
  outline: none !important;
  box-shadow: none !important;
}

.wpdt-log-tbl-action svg {
  width: 16px;
  height: 16px;
  fill: #929292;
}

.wpdt-copy-icon {
  cursor: pointer;
  width: 16px;
  height: 16px;
  fill: #929292;
}

.wpdt-copy-icon:hover {
  fill: #007cba;
}

.wpdt-copy-icon.copied {
  fill: green;
}

.wpdt-copy-cell {
  text-align: center;
  padding-top: 15px !important;
}

/* Alert notication */
#wpdt-alert-container {
  position: fixed;
  top: 50px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wpdt-alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  min-width: 180px;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  animation: slideIn 0.3s forwards, fadeOut 0.3s 2.7s forwards;
  transition: all 0.3s ease;
}

.wpdt-alert-success {
  background-color: #d4edda;
  border-left: 4px solid #28a745;
  color: #155724;
}

.wpdt-alert-warning {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
}

.wpdt-alert-error {
  background-color: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
}

.wpdt-alert-info {
  background-color: #d1ecf1;
  border-left: 4px solid #17a2b8;
  color: #0c5460;
}

/* Animations */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.wpdt-cron-notice {
  margin: 20px 0;
}

/* Help links */
.wpdt-help-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.wpdt-help-icon {
  width: 16px;
  height: 16px;
  fill: #929292;
  cursor: pointer;
}

.wpdt-help-links a {
  outline: none !important;
  box-shadow: none !important;
}

.wpdt-help-icon.google:hover {
  fill: #4285f4;
}

.wpdt-help-icon.chatgpt:hover {
  fill: #10a37f;
}

.wpdt-help-icon.gemini:hover {
  fill: #673ab7;
}

.wpdt-link-cell {
  text-align: center;
  padding-top: 15px !important;
}

/* Form fields */
.wpdt-input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
  box-sizing: border-box;
}
.wpdt-input-group .label-container {
  display: flex;
  align-items: center;
  color: #000;
  margin-bottom: 2px;
}
.wpdt-input-group label {
  font-size: 12px;
  font-weight: 600;
  margin-right: 5px;
}
.wpdt-input-group .label-container svg {
  width: 12px;
  margin-left: 5px;
}
.wpdt-input-group input[type="text"],
.wpdt-input-group select {
  width: 100%;
}
.wpdt-input-group .checkbox-group,
.wpdt-input-group .radio-group {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.wpdt-input-group .checkbox-group div,
.wpdt-input-group .radio-group div {
  width: 250px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 10px 5px 0;
}
.wpdt-input-group .checkbox-group div input,
.wpdt-input-group .radio-group div input {
  margin: 0 5px 0 0 !important;
}
.wpdt-input-group .checkbox-group div span,
.wpdt-input-group .radio-group div span {
  font-size: 12px;
  font-weight: 300;
}
.wpdt-input-group .required-char {
  font-size: 12px;
  color: #ff0000;
}
.wpdt-input-group .divide-bar {
  width: 100%;
  display: flex;
  flex-wrap: grid;
  align-items: center;
}