.s-site-logo-img {
  content: url(../../Serenity.Assets/logo/white-128.png);
}

.s-PermissionCheckEditor {
  min-height: 450px;
}

.s-horizontal-divider {
  margin: 1em 0;
  line-height: 0;
  text-align: center;
}

.s-horizontal-divider span {
  background-color: var(--s-card-bg);
  padding: 1em;
}

.s-horizontal-divider:before {
  content: " ";
  display: block;
  border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #f7f7f7;
}
/* word wrap for gallery list column */
.s-Default-MatchEventGrid .slick-cell {
  white-space: normal;
}
.resetview-button span.button-inner:before {
  content: "\f12d";
  font-family: FontAwesome;
  /* 
  This is useful for buttons with text, but without text there are problems (no-text class makes fontawesome button huge fat)
  So the solution is to have the button text be " ", but then it's slightly padded with empty text
  So then the solution on top of that is to remove the right padding to balance out in the end. Bleh.

  So in summary, text buttons using FA icons should have the below. Pure icon buttons should not
*/
  /*padding-right: 3px;*/
  color: #5286E1;
}

.s-Default-WatchlistGrid  .card {
  height: unset;
  margin-bottom: 0.5rem;
  padding: 0.6rem;
  overflow-y: auto;
}

:root.theme-mycustomred { 

  --bs-body-bg-rgb: 246, 250, 253;
  --bs-body-bg: #f6fafc;
  --bs-body-color: #000;
  --bs-body-color-rgb: 0, 0, 0;
  --bs-border-color: #d5dce0;
  --bs-link-color: #0f41c9;
  --bs-link-hover-color: #1c77ff;
  --s-alt-row-bg: rgba(139, 177, 205, 0.1);
  --s-bright-rgb: 11,12,15;
  --s-card-bg: #fff;
  --s-card-border: #e8e9ea;
  --s-card-shadow: 0 2px 4px 0 rgba(53, 65, 76, 0.03);
  --s-card-title: #005fb1;
  --s-category-title: #39a7b9;
  --s-deleted: #999;
  --s-disabled: #606570;
  --s-inactive: #999;
  --s-input-bg: #fff;
  --s-input-clear: #b33f32;
  --s-input-dirty-bg: #ffe0e0;
  --s-input-outline: rgba(38, 113, 203, 0.25);
  --s-input-outline-error: rgba(203, 48, 48, 0.25);
  --s-input-readonly-bg: #f3f3f3;
  --s-modal-shadow: 0 0 6px 3px rgba(0, 0, 0, 0.10);
  --s-no-results: #9880bd;
  --s-placeholder: #777;
  --s-pager-icon: #5b3df1;
  --s-pager-text: #555;
  --s-scroll-thumb: #c9d0da;
  --s-scroll-thumb-hover: #c3cbd5;
  --s-scroll-track: #e2e8ee;
  /*--s-sidebar-band-bg: #005fb1;*/
  --s-sidebar-band-link: #bde8fd;
  --s-sidebar-band-link-active: #fff;
  --s-sidebar-icon: #0c6190;
  --s-sidebar-icon-active: #007eff;
  --s-sidebar-link: #2d3542;
  --s-sidebar-link-active: #007eff;
  --s-cell-border: rgba(53, 68, 78, 0.1);
  --s-cell-input-border: rgba(221, 221, 221, 0.5);
  --s-column-header: #7f8bb5;
  --s-column-header-hover-bg: rgba(68, 129, 239, 0.05);
  --s-column-header-border: #ebeff2;
  --s-column-footer: #3cacbf;
  --s-tabs-border: rgba(0, 0, 0, 0.1);
  --s-tabs-border-active: #3c78ff;
  --s-tabs-text: #7f8bb5;
  --s-tabs-text-active: #3c78ff;
  --s-tool-icon: #4a4a8e;

  --s-card-title: #aa2519;
  --s-category-title: #c18e85;
  --s-sidebar-band-bg: #770303;
  --s-sidebar-band-link: #ffc3b0;
  --s-sidebar-link-active: #d30a0a;
 
}

.theme-mycustomred .bg-world-map {
  /*background: var(--s-sidebar-band-bg);*/
  background: #005fb1
}
/*
--s-card-title: #aa2519;
  --s-category-title: #c18e85;
  --s-sidebar-band-bg: #63032f;
  --s-sidebar-band-link: #ffc3b0;
  --s-sidebar-link-active: #d30a0a;
/* :root.theme-azure-light {
  --bs-body-bg-rgb: 246, 250, 253;
  --bs-body-bg: #f6fafc;
  --bs-body-color: #000;
  --bs-body-color-rgb: 0, 0, 0;
  --bs-border-color: #d5dce0;
  --bs-link-color: #0f41c9;
  --bs-link-hover-color: #1c77ff;
  --s-alt-row-bg: rgba(139, 177, 205, 0.1);
  --s-bright-rgb: 11,12,15;
  --s-card-bg: #fff;
  --s-card-border: #e8e9ea;
  --s-card-shadow: 0 2px 4px 0 rgba(53, 65, 76, 0.03);
  --s-card-title: #005fb1;
  --s-category-title: #39a7b9;
  --s-deleted: #999;
  --s-disabled: #606570;
  --s-inactive: #999;
  --s-input-bg: #fff;
  --s-input-clear: #b33f32;
  --s-input-dirty-bg: #ffe0e0;
  --s-input-outline: rgba(38, 113, 203, 0.25);
  --s-input-outline-error: rgba(203, 48, 48, 0.25);
  --s-input-readonly-bg: #f3f3f3;
  --s-modal-shadow: 0 0 6px 3px rgba(0, 0, 0, 0.10);
  --s-no-results: #9880bd;
  --s-placeholder: #777;
  --s-pager-icon: #5b3df1;
  --s-pager-text: #555;
  --s-scroll-thumb: #c9d0da;
  --s-scroll-thumb-hover: #c3cbd5;
  --s-scroll-track: #e2e8ee;
  --s-sidebar-band-bg: #005fb1;
  --s-sidebar-band-link: #bde8fd;
  --s-sidebar-band-link-active: #fff;
  --s-sidebar-icon: #0c6190;
  --s-sidebar-icon-active: #007eff;
  --s-sidebar-link: #2d3542;
  --s-sidebar-link-active: #007eff;
  --s-cell-border: rgba(53, 68, 78, 0.1);
  --s-cell-input-border: rgba(221, 221, 221, 0.5);
  --s-column-header: #7f8bb5;
  --s-column-header-hover-bg: rgba(68, 129, 239, 0.05);
  --s-column-header-border: #ebeff2;
  --s-column-footer: #3cacbf;
  --s-tabs-border: rgba(0, 0, 0, 0.1);
  --s-tabs-border-active: #3c78ff;
  --s-tabs-text: #7f8bb5;
  --s-tabs-text-active: #3c78ff;
  --s-tool-icon: #4a4a8e;
} */

/* tree grid test stuff. difficult to make sub-items
pop out, and seems to not work on some browsers.*/
/* .slick-row.odd:has(.s-TreeIndent[style*="width: 15px"])  { background-color: goldenrod; }
.slick-row.even:has(.s-TreeIndent[style*="width: 15px"]) { background-color: goldenrod;} */

/*split.js gutter/splitter UI */
.gutter {border: thick double #32a1ce; cursor:row-resize;  }

/* Camera stream styles*/
.video-grid-container {
  width: 100%;
  height: 100%;
  overflow: s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-grid {
  display: grid;
  gap: 10px;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: visible;
}

  .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
  }

.camera-label {
  position: absolute;
  top: 0;
  padding: 2px;
  font-size: 10px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
}
.featured-grid {
  grid-template-columns: repeat(1, 1fr);
}

.featured-camera {
  grid-column: 1;
  grid-row: 1;
}

.standard-grid {
  grid-auto-rows: 1fr;
}

.camera-list-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 600px;
}

.meta-checkbox-container {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.camera-list-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
}

.camera-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  flex-grow: 1;
  cursor: pointer;
  user-select: none;
}

.checkbox {
  margin-right: 5px;
  flex-shrink: 0;
}

.checkbox-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-button {
  padding: 2px 8px;
  font-size: 12px;
  background-color: #33b249;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

  .feature-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

.action-button {
  width: 100%;
  height: 36px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 10px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.rotate-button {
  background-color: #33b249;
}

  

#meta-checkbox:indeterminate {
  background-color: #808080;
}

/* Notifications*/
/ /* Notification Widget Styles */
.notification-widget {
  margin-bottom: 8px;
  width: 600px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
}

/* Mark All button */
.mark-all-btn {
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.875rem;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

  .mark-all-btn:hover {
    background-color: #edf2f7;
    color: #2563eb;
  }

  .mark-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

.notification-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Custom scrollbar styling */
.notification-widget::-webkit-scrollbar {
  width: 8px;
}

.notification-widget::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.notification-widget::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

  .notification-widget::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }

/* Notification Item Styles */
.notification-item {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
  transition: all 0.5s ease-in-out;
  max-height: 200px;
  opacity: 1;
}

  .notification-item.removing {
    max-height: 0;
    opacity: 0;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
  }

  .notification-item.acknowledged {
    opacity: 0.7;
  }

  /* Style for seen notifications */
  .notification-item.seen {
    opacity: 0.85;
  }

  /* Add a dot indicator for unseen notifications */
  .notification-item.unseen .notification-message::before {
    content: '•';
    color: #FF0000;
    font-size: 1.5rem;
    margin-right: 8px;
    position: relative;
    top: 2px;
    display: inline-block;
  }

/* Fade out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
    max-height: 200px;
    transform: translateX(0);
    margin-bottom: 8px;
  }

  to {
    opacity: 0;
    max-height: 0;
    transform: translateX(10px);
    margin-bottom: 0;
  }
}

.notification-item.fadeout {
  animation: fadeOut 0.5s forwards;
}

/* Notification Icon Styles */
.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  padding: 16px;
}

  .notification-icon.critical {
    background-color: #dc3545;
    color: #fff;
  }

  .notification-icon.warning {
    background-color: #ffc107;
    color: #000;
  }

  .notification-icon.info {
    background-color: #17a2b8;
    color: #000;
  }

/* Content Styles */
.notification-content {
  flex-grow: 1;
  padding: 16px;
  background-color: white;
  border: 1px solid #e2e8f0;
  border-left: none;
}

  .notification-content.has-action {
    padding-right: 64px;
  }

/* Header Styles */
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.notification-message {
  font-weight: 500;
  flex-grow: 1;
}

.notification-timestamp {
  font-size: 0.875rem;
  color: #718096;
  white-space: nowrap;
  margin-left: 16px;
}

/* Footer Styles */
.notification-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-source {
  font-size: 0.875rem;
  color: #4a5568;
}

/* Link Styles */
.notification-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

  .notification-link:hover {
    text-decoration: underline;
  }

.notification-link-icon {
  font-size: 0.75rem;
}

/* Acknowledge Button */
.acknowledge-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-left: 1px solid #e2e8f0;
  cursor: pointer;
  color: #4a5568;
  transition: all 0.2s;
  padding: 0;
}

  .acknowledge-btn:hover {
    background-color: #f7fafc;
    color: #2563eb;
  }