﻿.list-widget-container {
  display: flex;
  flex-direction: column;
  width: auto; /* STRANGE ISSUE WITH TABLE HEADER EXPANDING OVER THE BORDER?*/
  height: 100%;
  background-color: #151515;
  border: 1px solid #707070;
  border-radius: 0;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.list-widget-wrapper {
  overflow: scroll;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  scrollbar-color: #c4c4c4 transparent;
  scrollbar-width: thin;
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.list-widget-header {
  text-align: center;
  background-color: #000000;
  color: #9e9e9e;
  font-size: 12px;
  font-weight: 700;
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 10px;
  text-transform: uppercase;
}

.list-widget-search {
  padding: 10px;
  background-color: #000;
}

.list-widget-search input {
  width: 100%;
  padding: 8px 0;
  background-color: #303030;
  color: white;
  border: 1px solid #505050;
  border-radius: 0;
  outline: none;
  text-indent: 10px;
}

.list-widget-search input,
::placeholder {
  color: #d6d6d6;
}

.list-widget-table {
  width: 100%;
  border-collapse: collapse;
  color: white;
}

.list-widget-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #151515;
  text-align: left;
  padding: 10px;
  text-transform: uppercase;
  color: #9e9e9e;
  font-weight: 400;
  font-size: 14px;
}

/* Column alignment and widths */
.list-widget-table th:first-child,
.list-widget-table td:first-child {
  width: 25px; /* Icon column */
  text-align: left;
  padding: 5px;
}

.list-widget-table th:nth-child(2),
.list-widget-table td:nth-child(2) {
  width: 40%; /* Name column */
  max-width: 100px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
    .list-widget-table th:nth-child(3),
    .list-widget-table td:nth-child(3) {
        width: 60%; /* Name column */
        white-space: nowrap;
    }

.list-widget-table th:nth-child(3),
.list-widget-table td:nth-child(3),
.list-widget-table th:nth-child(4),
.list-widget-table td:nth-child(4) {
 /* text-align: center;*/
}

.list-widget-table td {
  padding: 10px;
  vertical-align: middle;
}

.list-widget-table tbody tr:hover {
  background-color: #333333;
  cursor: pointer;
}

.icon-cell img {
  width: 24px;
  height: 24px;
  display: block;
}

.border-red {
  -webkit-text-stroke: 2px red;
}
.color-blue {
  color: #0078d7; /* or your preferred blue color */
}

.icon-center {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 3px;
}

/* Alternating row colors */
.list-widget-table tbody tr:nth-child(odd) {
  background-color: #222222;
}

.list-widget-table tbody tr:nth-child(even) {
  background-color: #000000;
}

/* Style for toggle button */
.toggle-button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2em;
  cursor: pointer;
}

.toggle-button i {
  transition: transform 0.3s ease;
}

.toggle-button.expanded i {
  transform: rotate(180deg); /* Rotate icon when expanded */
}

/* Default state (pointing down) */
.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

/* Rotated state (pointing up) */
.toggle-icon.rotated {
  display: inline-block;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.details-cell {
  background-color: #151515;
  padding: 10px 10px;
  color: #dcdcdc;
  font-size: 0.9em;
}

.details-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Ensures left and right columns are spaced */
  gap: 20px;
  padding: 0.5rem;
}

.details-column {
  flex: 1;
}

.video-feed-details {
  text-align: left; /* Align text to the right for video feed */
}

.details-column strong {
  font-weight: lighter;
  font-size: 14px;
  color: #8a8a8a;
  display: block;
  font-family: "Roboto", sans-serif;
}

.details-postition {
  font-weight: normal;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  margin-bottom: 5px;
}

/* .details-column div {
  margin-bottom: 5px;
} */

.details-column img {
  margin-left: 5px;
  vertical-align: middle;
}

.sort-toggle-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.toggle-icon.expanded {
  transform: rotate(180deg);
}
