#s4e-main-container,
#s4e-main-container h1,
#s4e-main-container h2,
#s4e-main-container h3,
#s4e-main-container input,
#s4e-main-container button,
#s4e-main-container textarea {
  font-family: "Inter", sans-serif !important;
}

button {
  font-weight: 300 !important;
}

#s4e-scan-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#s4e-scan-buttons button {
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#s4e-scan-buttons button i {
  margin-right: 6px;
}

#s4e-scan-result-wrapper {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 4px;
}

#s4e-scan-result-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.s4e-scan-info {
  display: flex;
  width: 100%;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.info-block {
  background-color: #f8f9fa;
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  min-width: 80px;
  width: 150px;
}

.info-block[data-type="Low"] {
  background-color: #e6f7d0;
}

.info-block[data-type="Medium"] {
  background-color: #fce8b2;
}

.info-block[data-type="High"] {
  background-color: #f5d1d1;
}

.info-block[data-type="Critical"] {
  background-color: #f3b4b4;
}

.chart-label {
  position: absolute;
  text-align: center;
}

#s4e-scan-results {
  margin-top: 20px;
}

#s4e-scan-results h3 {
  font-size: 1.5em;
}

#s4e-scan-output {
  padding: 10px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  height: 150px;
  overflow-y: auto;
}

.s4e-api-url-wrapper-class {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 20px;
}

#s4e-api-url {
  margin-left: 20px;
  width: 200px;
  text-align: center;
}

#s4e-user-info-wrapper {
  text-align: center;
  padding: 40px;
  color: #888888;
}

#s4e-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  /* Remove the gap between the buttons and box */
  gap: 0;
  /* No gap between buttons */
  border: 2px solid #ddd;
  /* Add a border around the entire button set */
  border-radius: 8px 8px 0 0;
  /* Rounded top corners to match the box below */
  overflow: hidden;
  /* Ensure the buttons stay inside the border radius */
}

.s4e-tab-button {
  flex: 1;
  /* Make all buttons equal width */
  padding: 12px 20px;
  background-color: #62b6f0;
  /* Original light blue color */
  color: white;
  border: none;
  /* Remove individual button borders */
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.s4e-tab-button:hover {
  background-color: #358ac0;
  transform: translateY(-2px);
  /* Slight lift on hover */
}

.s4e-tab-button:not(:last-child) {
  border-right: 1px solid #ddd;
  /* Create a separator line between buttons, except the last */
}

.s4e-tab-button.active {
  background-color: #4292d4;
  /* Slightly darker blue for active tab */
}

.s4e-tab-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(98, 182, 240, 0.5);
  /* Soft focus outline */
}

.s4e-tab-content {
  padding: 30px;
  padding-top: 1px;
  border: 2px solid #ddd;
  /* Match border style with the button set */
  border-radius: 0 0 8px 8px;
  /* Rounded bottom corners to connect visually */
  border-top: none;
  /* Remove top border to seamlessly connect with buttons */
  min-height: 410px;
  background-color: #f9fafb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  text-align: center;
}

#s4e-clear-token {
  margin-top: 20px;
  padding: 10px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.clickable-row {
  cursor: pointer;
}

/* Ensure action buttons are above the row */
.action-button {
  position: relative;
  z-index: 2;
}

/* Optional: Highlight the row on hover */
.clickable-row:hover {
  background-color: #f1f1f1;
}

/* styles.css */

/* Hover effect for scan table rows */
.hover-highlight:hover {
  background-color: #f1f1f1;
  /* Light gray background on hover */
}

/* Optional: Change cursor to pointer to indicate clickable rows */
.hover-highlight {
  cursor: pointer;
}

.button-disabled {
  background-color: #b2b2b2 !important;
  /* Gray color for disabled button */
  cursor: not-allowed !important;
  /* Change cursor to indicate disabled state */
  color: #fff !important;
  /* Ensure the text remains visible */
}

.loader {
  border: 2px solid #f3f3f3;
  /* Light grey */
  border-top: 2px solid #3498db;
  /* Blue */
  border-radius: 50%;
  width: 12px;
  height: 12px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* CSS for Theme change button */

.theme-toggle-main-div {
  padding: 20px 30px;
  border: 2px solid #ddd;
  border-top: none;
  border-bottom: none;
  background-color: #f9fafb;
  text-align: end;
  /* Aligns children to the right */
  display: flex;
  /* Use flexbox for alignment */
  justify-content: space-between;
  /* Space between toggle and logo */
  align-items: center;
  /* Vertically center items */
}

.toggle-logo-main-div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.toggle-logo {
  height: 40px !important;
  /* Adjust height as needed */
  margin-left: 0px;
  /* Space between toggle and logo */
}

.s4e-text {
  font-size: 21px;
  /* Adjust font size as needed */
  margin-left: 4px;
  /* Spacing between logo and text */
  color: black;
  /* Color of the text */
  font-weight: bold;
  /* Optional: make the text bold */
  align-self: center;
  /* Center the text vertically with the logo */
  /* Additional styles can be added here */
}

.theme-toggle {
  display: inline-block;
  position: relative;
  width: 69px;
  height: 30px;
}

.toggle-checkbox {
  display: none;
}

.toggle-label {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #d5d6d8;
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.4s ease;
}

.toggle-ball {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s ease;
  z-index: 2;
  /* To keep the toggle ball on top */
}

.toggle-checkbox:checked + .toggle-label {
  background-color: black;
}

.toggle-checkbox:checked + .toggle-label .toggle-ball {
  transform: translateX(38px);
}

.sun-icon,
.moon-icon {
  font-size: 12px !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  z-index: 1;
  /* To keep icons behind the toggle ball */
}

.sun-icon {
  right: 10px;
  color: #6a7175;
  /* Moved to the right side */
}

.moon-icon {
  left: 10px;
  /* Moved to the left side */
  display: none;
}

.toggle-checkbox:checked + .toggle-label .sun-icon {
  display: none;
}

.toggle-checkbox:checked + .toggle-label .moon-icon {
  display: inline-block;
  color: white;
}

.back-button {
  font-size: 18px;
  padding: 8px;
  background-color: transparent;
  color: #1a4466;
  border: none;
  cursor: pointer;
}

.swal2-popup > h2,
.swal2-popup {
  font-family: "Inter", sans-serif;
}

.swal2-actions > button {
  background-color: #4292d4;
}

.severity-chip-loader {
  color: #2125299e;
}

/* Container to center the dropdown */
.dropdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 10px 0;
}

/* Style for the dropdown to make it full width */
.styled-dropdown {
  width: 100%;
  max-width: 300px;
  /* Optional: limit the maximum width */
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  appearance: none;
  background-color: #f9f9f9;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http%3A//www.w3.org/2000/svg%22 viewBox%3D%220 0 4 5%22%3E%3Cpath fill%3D%22%23333%22 d%3D%22M2 0L0 2h4zm0 5L0 3h4z%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  cursor: pointer;
}

/* Hover and focus effects */
.styled-dropdown:hover,
.styled-dropdown:focus {
  border-color: #888;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Overlay to cover the entire screen with black opacity */
.verify-asset-overlay {
  display: none;
  /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Black with 50% opacity */
  z-index: 999;
  /* Layered behind the popup */
}

.verify-asset-popup {
  display: flex;
  /* Set to 'none' for modal behavior */
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 500px;
  z-index: 1000;
  /* Above the overlay */
  font-family: Arial, sans-serif;
  height: 70vh;
  overflow-y: auto;
}

.verify-asset-main-container {
  padding: 24px;
  height: 85%;
}

.asset-top-bar-header {
  margin-top: 2px;
  padding-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verify-asset-popup-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.verify-asset-close-button {
  padding-bottom: 16px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #666;
}

.verify-asset-notification {
  background-color: #e9f5e9;
  padding: 10px 15px;
  font-size: 0.9em;
  color: #2f8f2f;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  text-align: center;
  padding: 18px;
  position: relative;
}

.verify-asset-notification i {
  margin-right: 8px;
}

.verify-asset-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.verify-asset-tabs {
  display: flex;
  justify-content: start;
  gap: 20px;
  margin-bottom: 20px;
}

.verify-asset-tab {
  padding-bottom: 5px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  color: rgb(99, 115, 129);
  position: relative;
}

.verify-asset-tab.active {
  font-weight: bold;
  color: #000;
}

.verify-asset-tab.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #2b2b2b;
  bottom: -1px;
  left: 0;
}

.verify-asset-content {
  font-size: 0.9em;
  margin-bottom: 20px;
  color: #333;
}

.verify-asset-content > p {
  text-align: start;
}

.verify-asset-download-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  margin-bottom: 20px;
}

.verify-asset-download-container span {
  font-size: 0.85em;
  color: #333;
}

.verify-asset-download-container a {
  font-size: 0.85em;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.verify-asset-download-container a:hover {
  text-decoration: underline;
}

.verify-asset-custom-button {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  color: #ffffff;
  background-color: #1a4466;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
}

.verify-asset-custom-button:hover {
  background-color: #0056b3;
}

.init-asset-custom-verification-div {
  padding: 24px;
}

/* notice box desing */

.notification-box-success {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 2px solid #64a101;
  border-left: 10px solid #64a101;
  border-radius: 8px;
  background-color: #eff7e6;
  color: #000;
  font-family: "Inter", sans-serif;
  max-width: 400px;
  margin: 10px auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification-box-error {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 2px solid #d13c2d;
  border-left: 10px solid #d13c2d;
  border-radius: 8px;
  background-color: #fcebea;
  color: #000;
  font-family: "Inter", sans-serif;
  max-width: 400px;
  margin: 10px auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification-close {
  background: none;
  border: none;
  color: #646464;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.notification-close:hover {
  color: #1d1d1d;
  /* Match the green border on hover */
}

#start-new-scan {
  padding: 10px;
  background-color: #1a4466;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* WordPress Admin Area fixes for Light/Dark Toggle only */
.wrap .theme-toggle {
  display: inline-block !important;
  position: relative !important;
  width: 69px !important;
  height: 30px !important;
  z-index: 10 !important;
}

.wrap .toggle-checkbox {
  display: none !important;
}

.wrap .toggle-label {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background-color: #d5d6d8 !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  position: relative !important;
  transition: background-color 0.4s ease !important;
  border: none !important;
  box-shadow: none !important;
}

.wrap .toggle-ball {
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 26px !important;
  height: 26px !important;
  background-color: white !important;
  border-radius: 50% !important;
  transition: transform 0.4s ease !important;
  z-index: 2 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.wrap .toggle-checkbox:checked + .toggle-label {
  background-color: black !important;
}

.wrap .toggle-checkbox:checked + .toggle-label .toggle-ball {
  transform: translateX(38px) !important;
}

.wrap .sun-icon,
.wrap .moon-icon {
  font-size: 12px !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 1 !important;
}

.wrap .sun-icon {
  right: 10px !important;
  color: #6a7175 !important;
}

.wrap .moon-icon {
  left: 10px !important;
  display: none !important;
}

.wrap .toggle-checkbox:checked + .toggle-label .sun-icon {
  display: none !important;
}

.wrap .toggle-checkbox:checked + .toggle-label .moon-icon {
  display: inline-block !important;
  color: white !important;
}
