@tailwind base;
@tailwind components;
@tailwind utilities;

html,
body,
#root,
.app,
.content {
  /* width: 100%; */
  /* user-select: none !important; */
  background: white;
  /* overflow-x: hidden;
  overflow-y: hidden; */
}

/* Import Lexend font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Lexend&display=swap");

/* Use Lexend font in your CSS */
body {
  font-family: "Lexend", sans-serif;
}

/* Blinking cursor animation for streaming content */
@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.app {
  display: flex;
  position: relative;
  overflow-x: hidden;
  /* overflow-y: hidden; */
  /* Use dynamic viewport units so mobile browsers (iOS Safari/Chrome) fill correctly */
  height: 100dvh;
  min-height: 100svh;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: grey;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.RemoveStylesFromATags {
  text-decoration: none;
  color: inherit;
  display: block;
  width: auto;
  height: auto;
}

@keyframes pulsate {
  0% {
    box-shadow: 0px 0px 10px #242f8c;
  }
  50% {
    box-shadow: 0px 0px 25px #242f8c;
  }
  100% {
    box-shadow: 0px 0px 10px #242f8c;
  }
}

.card {
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.p-organizationchart .p-component{
  width: 100%;
}

.p-icon.p-node-toggler-icon {
  fill: black; /* Set SVG color to black */
  color: black;
  margin-top: 2px;
}

.p-node-toggler {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #D9E4EC; /* Bottom border */
  border-color: transparent transparent #D9E4EC transparent; /* Only show the bottom border */
  box-sizing: border-box; /* Ensures the border does not expand the element’s size */
  margin-bottom: 2px;
}

/* WebViewer styling - REQUIRED for WebViewer to render properly */
.webviewer {
  width: 100% !important;
  height: 100% !important;
}
  
/* Hide the entire connector lines row when visibility is set to hidden */
.p-organizationchart-lines[style*="visibility: hidden"] {
  display: none !important; /* Remove the row from the layout */
}

/* Also hide each individual line cell when the row is hidden */
.p-organizationchart-lines[style*="visibility: hidden"] td {
  display: none !important; /* Remove individual cells in case they persist */
}

/* Style for the horizontal connector line from the center of the parent to each child */
.p-organizationchart-line-left,
.p-organizationchart-line-right {
  border-top: 1px solid white;
  width: 50%; /* Adjust as necessary to align with the nodes */
  height: 1px; /* Thin horizontal line */
}

/* Ensure the lines connect at the parent-child junction */
.p-organizationchart-line-left.p-organizationchart-line-top{
  border-top: 1px solid #D9E4EC;
  border-right: 1px solid #D9E4EC;
}
.p-organizationchart-line-right.p-organizationchart-line-top {
  border-top: 1px solid #D9E4EC; /* Remove border-left if combining classes for different directions */
  border-left: 1px solid #D9E4EC;
}

.retuneIframeStyles {
  border-radius: 10px;
}

@media screen and (max-width: 900px) {
  .retuneIframeStyles {
    border-radius: 0px;
  }
}

iframe#webpack-dev-server-client-overlay {
  display: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  border-radius: 16px !important;
}

input:-webkit-autofill {
  -webkit-text-fill-color: black !important;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  caret-color: black !important; /* Set the cursor color */
}

.tab-panel-scrollable {
  overflow: auto;
  height: 100%; /* Adjust height as needed */
}

.tab-panel-scrollable::-webkit-scrollbar {
  width: 6px;
}

.tab-panel-scrollable::-webkit-scrollbar-thumb {
  background-color: rgb(207, 207, 207);
  border-radius: 4px;
}

.tab-panel-scrollable::-webkit-scrollbar-thumb:hover {
  background-color: rgb(150, 150, 150);
}

.tab-panel-scrollable::-webkit-scrollbar-track {
  background-color: transparent;
}

/* Add this to global CSS */
.MuiPaginationItem-ellipsis {
  color: black !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #535862 !important;
  caret-color: #535862 !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

/* WebViewer styling */
.webviewer {
  height: 100%;
  width: 100%;
}

