html {
  font-size: 1rem;
}

body {
  margin: 0px;
  height: 100%;
  padding: 0px;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--surface-ground);
  font-family: var(--font-family);
  font-weight: normal;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dark-theme-background {
  background: #111827;
}

.light-theme-background {
  background: #fbfbfb;
}

.p-carousel .p-carousel-indicators {
  padding: 0;
  padding-top: 10px;
}

th {
  background-color: #f3f3f3;
  padding-left: 1rem;
}

::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-thumb {
  background-clip: content-box;
  border: 4px solid transparent;
  border-radius: 7px;
  box-shadow: inset 0 0 0 10px #b6bdc5;
}

::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

::-webkit-scrollbar-corner {
  background-color: transparent;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-all-scroll {
  cursor: all-scroll;
}

.card-float:hover {
  box-shadow:
    -1px 1px 0px rgba(0, 0, 0, 0.05),
    0 5px 5px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

/**CSS**/
.flip-card {
  background-color: white;
  width: 200px;
  height: 180px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-back {
  overflow-y: hidden;
  transform: rotateY(180deg);
}

/**primereact datatable**/
.list-card.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {
  padding: 0.3rem 0.3rem;
}

.p-datatable .p-datatable-tbody > tr > td {
  padding: 0.5rem 0.5rem;
}

@keyframes green-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.8));
  }

  50% {
    filter: drop-shadow(0 0 25px rgba(0, 255, 0, 1));
  }
}

.animate-green-pulse {
  animation: green-pulse 1.5s infinite;
}

.direction-icon {
  z-index: 0 !important;
}

.disabled-item {
  filter: grayscale(100);
}

.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
}

.p-togglebutton .p-button {
  border: 0px solid white;
}

.custom-tooltip {
  z-index: 10000 !important; /* or any value higher than other map elements */
}

.card-side-tab {
  border-radius: 5px 0px 0px 5px !important;
  box-shadow: -6px 0 8px rgba(0, 0, 0, 0.1) !important;
  border: 0px;
  background: #ffffff;
  width: 2rem;
}

.radar-container {
  position: relative;
  width: 12px;
  height: 12px;
  margin-right: 20px;
}

.radar-dot {
  position: absolute;
  top: 5px;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: #00ff00;
  border-radius: 50%;
  z-index: 2;
}

.radar-dot-alert {
  position: absolute;
  top: 5px;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: #ff1717;
  border-radius: 50%;
  z-index: 2;
}

.radar-pulse {
  position: absolute;
  top: 5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 255, 0, 0.5);
  animation: pulse-animation 2s infinite;
  z-index: 1;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.transparent-marker-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.evt-icon {
  font-size: 1rem;
}

.pulse-notification {
  position: relative;
  overflow: visible;
}

.pulse-notification::before,
.pulse-notification::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(59, 130, 246, 0.4); /* Full background color */
  border-radius: 0%;
  border-top-left-radius: 20%;
  border-bottom-left-radius: 20%;
  animation: radar-pulse-full 2s infinite;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.pulse-notification::after {
  animation-delay: 1s;
}

@keyframes radar-pulse-full {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

/* TabView Scrollable Navigation Buttons */
.p-tabview-nav-btn {
  background-color: var(--surface-ground);
  border: 1px solid var(--surface-border);
  color: var(--text-color);
  width: 2rem;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.p-tabview-nav-btn:hover {
  background-color: var(--surface-hover);
}

.p-tabview-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   NOTIFICATION PANEL STYLES
   ============================================ */

/* Notification card base styles */
.notification-card {
  transition: all 0.15s ease;
}

.notification-card:hover {
  transform: translateX(2px);
}

/* Date group headers */
.notification-date-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem 0.5rem 1rem;
  background: var(--surface-ground);
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Notification panel header */
.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface-card);
  position: sticky;
  top: 0;
  z-index: 10;
}

.notification-panel-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Unread badge on bell icon */
.notification-bell-container {
  position: relative;
  display: inline-flex;
}

.notification-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background-color: var(--red-500);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Intensified pulse for new notification */
.pulse-notification-active::before,
.pulse-notification-active::after {
  background-color: rgba(34, 197, 94, 0.6) !important;
  animation: radar-pulse-intense 1s infinite !important;
}

@keyframes radar-pulse-intense {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* Empty state styling */
.notification-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-color-secondary);
}

.notification-empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.notification-empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

/* Mark as read button */
.mark-all-read-btn {
  font-size: 0.8rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.15s ease;
}

.mark-all-read-btn:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

/* Unread indicator dot */
.unread-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
  flex-shrink: 0;
}

/* Notification scroll container */
.notification-scroll-container {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-bottom: 1rem;
}
