/* General Styles */
body,
html {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #d8d9da;
  color: #282a2d;
  font-size: 14px;
  margin: 0px;
  padding: 0px;
  height: 100%;
  box-sizing: border-box;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.newsSection {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsSectionPart {
  display: flex;
  gap: 20px;
}

.newsTitleSection {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.title {
  font-weight: bold;
  font-size: 15px;
  display: inline-block;
  margin-bottom: 4px;
  margin-top: 10px;
}

.title.top {
  margin-top: 0;
}

.newsTitle {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 5px;
  border-bottom: #e77a16 1px dashed;
  align-items: flex-end;
}

.newsTitle img {
  margin-right: 5px;
  position: relative;
  top: 5px;
}

.newsDuration img {
  margin-right: 5px;
  position: relative;
  top: 7px;
}

.newsSectionElement {
  padding: 0 10px 10px 10px;
  border: #ccc 1px solid;
  border-radius: 5px;
  background-color: #f7f7f7;
}

.newsSectionElement.template {
  padding: 10px;
}

.newsDuration {
  margin-top: -16px;
  padding: 0 10px 10px 10px;
  background-color: antiquewhite;
  font-weight: bold;
  border-radius: 3px;
  border: #e77a16 1px dashed;
  width: fit-content;
}

.newsDurationTitle {
  margin-bottom: 10px;
}

.newsBy {
  font-weight: normal;
  font-size: 14px;
  font-style: italic;
}

/* Links */
a {
  color: #e77a16;
  text-decoration: none;
}

a:hover {
  color: #282a2d;
  text-decoration: underline;
}

a.dark:hover {
  color: #ccc;
}

.ajaxTable {
  margin-top: 5px;
  padding: 0 10px;
  border: #ccc 1px solid;
  border-radius: 5px;
  background-color: #f7f7f7;
  overflow: auto;
}

/* Lists */
.listUl {
  list-style-type: none;
  padding: 0; 
  margin-top: 5px;
  margin-bottom: 0px;
}

.listUl li {
  margin-top: 5px;
  padding-left: 10px;
  display: flex;
  align-items: center;
}

.listUl li::before {
  content: '•';
  color: #e77a16;
  font-weight: bold;
  display: inline-block;
  margin-right: 10px;
  font-size: 1.5em;
}

/* Buttons */
.button {
  height: 40px;
  padding: 10px 20px;
  background-color: #666;
  color: #fff;
  border: 3px solid #666;
  border-radius: 6px;
}

.button.password {
  height: 32px;
  padding: 0 4px;
  background-color: #fff;
  border: 1px solid #666;
  border-left: 0px;
  border-radius: 0 6px 6px 0;
  margin-left: -2px;
  margin-bottom: 10px;
}

.button.password img {
  padding-top: 3px;
}

#userCreationPassword,
#userLoginPassword,
#userLoginPassword2 {
  border-right: 0px;
  border-radius: 6px 0 0 6px;
}

.loginFlex {
  display: flex;
  justify-content: center;
  padding: 0 25px;
}

.loginFlexPart {
  display: flex;
  flex: 1;
  justify-content: center;
}

.userCreationFlex {
  display: flex;
  gap: 10px;
}

.userCreationFlexGroup {
  display: flex;
  flex: 1;
  gap: 10px;
}

.userCreationFlexPart {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: 10px;
}

.button.password:hover {
  background-color: #ccc;
  border: 1px solid #666;
  border-left: 0px;
}

.mobileImg {
  height: 48px;
  width: 48px;
  transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
}

.button:hover {
  cursor: pointer;
  color: #ccc;
  background-color: #282a2d;
  border: 3px solid #e77a16;
}

.button:disabled {
  cursor: not-allowed;
}

.button.login {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.button.icon {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.button.icon.cockpit {
  margin-bottom: 10px;
}

.iconButton {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.iconButton.login {
  margin-left: 8px;
}

.button.admin {
  height: 32px;
  text-wrap: nowrap;
  margin: 0 0 10px 0;
  padding: 0 5px;
}

/* Input Fields */
.input {
  height: 30px;
  border: 1px solid #666;
  border-radius: 6px;
  padding: 0 5px;
  margin-bottom: 10px;
  min-width: 100px;
  width: 90%;
}

.input.password {
  width: 75%;
}

.input.invalid {
  color: #bf0000;
  border-color: #bf0000;
}

/* Headers */
.header {
  padding: 25px 10px;
  border-radius: 22px 22px 0 0;
  font-size: 28px;
  font-weight: bold;
  background: #282a2d;
  color: #e77a16;
}

.subHeader {
  background: #282a2d;
  color: #ccc;
  padding: 15px 15px 25px 15px;
}

#iconSectionLoading {
  animation: rotate 1s steps(8) infinite;
}

/* Content Area */
.content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: #666 3px solid;
}

.scrollTable {
  max-width: 100%;
  overflow-x: auto;
}

/* Tables */

.statusTable {
  margin-top: 4px;
  margin-bottom: 10px;
  border-collapse: collapse;
  width: 100%;
}

.statusTable th.center,
.statusTable td.center {
  text-align: center;
  white-space: nowrap;
}

.statusTable td {
  transition: width 0.5s ease-in-out;
  padding: 6px;
  border-top: #e77a16 1px dashed;
  border-bottom: #e77a16 1px dashed;
}

.statusTable td.borderRight {
  border-right: #e77a16 1px dashed;
}

.statusTable td.borderLeft {
  border-left: #e77a16 1px dashed;
}

.statusServerInfo {
  min-width: 235px;
}

.flexGapStatus {
  display: flex;
  gap: 10px;
}

/* Sections */
.section {
  border: 1px solid #666;
  border-radius: 6px;
  margin-bottom: 20px;
}

.sectionHeader {
  position: relative;
  background-color: #ccc;
  cursor: pointer;
  padding: 5px 5px 5px 35px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  height: 25px;
}

.sectionHeader img {
  margin-right: 10px;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.sectionHeaderSession {
  position: relative;
  background-color: #ccc;
  cursor: pointer;
  padding: 5px 23px;
  border-radius: 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
  height: 13px;
}

.sectionHeader.center {
  justify-content: space-between;
}

.sectionContent {
  text-align: left;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  padding: 0 10px;
  overflow-x: auto;
}

.section.opened .sectionContent {
  padding: 10px;
}

.section.opened .sectionHeader img {
  transform: rotate(90deg);
}

.sectionIcon {
  transform: none !important;
}

.noTransition {
  transition: none !important;
}

/* Section Images */
.sectionImage {
  opacity: 1;
  position: absolute;
  top: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
}

.sectionImageSession {
  opacity: 1;
  position: absolute;
  top: 5px;
  left: 5px;
  width: 12px;
  height: 12px;
}

/* Specific Section Styling */
.sectionLoginSwitch {
  position: relative;
  display: flex;
  cursor: pointer;
  justify-content: center;
  padding: 10px 0;
  font-weight: bold;
  background-color: #333;
  border-top: #666 3px solid;
  color: #ccc;
  transition: border-radius 0.7s ease-in-out;
}

.sectionLoginSwitch:hover {
  background-color: #282a2d;
  color: #e77a16;
}

.sectionLoginSwitch.bottom {
  border-radius: 0 0 22px 22px;
}

.sectionLoginContent {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.75s ease-in-out, padding 0.75s ease-in-out;
  padding: 0;
}

.sectionLogin.opened .sectionLoginSwitch {
  background-color: #e77a16;
  color: #282a2d;
}

.sectionLogin.opened .sectionLoginContent {
  padding: 15px 0;
  margin-bottom: 10px;
}

.loginText {
  margin: 15px 10px 25px 10px;
}

/* Box Containers */
.divBox {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: #fff;
  border-left: #666 3px solid;
  border-top: #666 3px solid;
  border-right: #666 3px solid;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0%);
  border-radius: 25px 25px 0 0;
  max-width: 1000px;
  transition: width 0.5s ease-in-out, min-width 0.5s ease-in-out, top 0.5s ease-in-out;
}

.divBox.login {
  top: 50%;
  transform: translate(-50%, -50%);
  border-bottom: #666 3px solid;
  border-radius: 25px;
  width: 475px;
  transition: width 0.5s ease-in-out;
}

.divBox.status {
  top: 25px;
  width: 80%;
  min-height: calc(100vh - 25px);
}

.wolResponse {
  position: relative;
  background-color: bisque;
  align-items: center;
}

/* Overlay and Infobox */
#overlay {
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
}

#overlay.gray {
  background-color: #666;
  cursor: not-allowed !important;
}

#overlay.visible {
  visibility: visible;
  opacity: 0.75;
  cursor:wait;
}

#infobox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #282a2d;
  color: #ccc;
  border: 3px solid #e77a16;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  min-width: 300px;
  width: 40%;
  z-index: 1001;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1.5s ease, visibility 1.5s;
  overflow: hidden;
}

#infobox.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 1.5s ease, visibility 1.5s;
}

#infoboxInfo,
#infoboxWarning {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #e77a16;
  margin-bottom: 0px;
}

#infoboxInfo.visible,
#infoboxWarning.visible {
  display: flex;
  margin-bottom: 15px;
}

#infoboxInfo img,
#infoboxWarning img {
  margin: -10px 10px -5px 10px;
}

#infoboxContent {
  margin-top: 5px;
  overflow: auto;
}

.infoboxClose {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 25px;
}

/* Footer */
.footer {
  margin-bottom: 10px;
  font-size: 12px;
  color: #ccc;
}

/* Flex Center */
.flexCenter {
  display: flex;
  align-items: center;
  gap: 5px;
}

.flexCenter.flexTraffic {
  background-color: #eee;
  border: #666 1px solid;
  height: 20px;
  border-radius: 12px;
  padding-left: 5px;
  padding-right: 5px;
}

.flexCenter.flexTrafficTranscode {
  background-color: #f7f7f7;
  border: #ccc 1px solid;
  height: 20px;
  border-radius: 12px;
  padding-left: 5px;
  padding-right: 5px;
  cursor: pointer;
  width: 164px;
}

.trafficBar {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #666;
}

.trafficBar.low {
  opacity: 0.35;
  background-color: #00b300;
}

.trafficBar.medium {
  opacity: 0.35;
  background-color: #ffff00;
}

.trafficBar.high {
  opacity: 0.35;
  background-color: #ff4031;
}

.trafficBar.active {
  width: 10px;
  height: 10px;
  opacity: 1;
  border: 2px solid #666;
}

.trafficText {
  font-size: 12px;
  color: #282a2d;
  padding: 0 3px;
  font-weight: normal;
  flex: 1;
  display: flex;
}

.trafficText.inActivity {
  padding: 0;
  flex-direction: row-reverse;
}


/* Miscellaneous */
.transparent {
  opacity: 0;
}

/* Styling für jede einzelne Session */
.activity {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #eee;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.activityHeader {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 10px;
}

#activityDuration {
  display: flex;
  flex-direction: row;
  flex: 1;
  margin-top: 10px;
  margin-bottom: 3px;
}

.activityPart {
  display: flex;
  flex-direction: column;
}

.activityPart.activityImg {
  width: 102px;
  height: 152px;
  border-radius: 3px;
  border: #e77a16 3px solid;
}

.activityPart.activityImg img {
  width: 100px;
  height: 150px;
  border: #282a2d 1px solid;
}

.activityPart.mainContent {
  flex: 1;
  background-color: #f7f7f7;
  border-radius: 3px;
  border: #ccc 1px solid;
}

.activitySessionState {
  background-color: #ccc;
  flex: 1;
  color: #282a2d;
  font-size: 12px;
  border-radius: 0 12px 12px 0;
  padding-right: 5px;
}

.activitySessionImg {
  background-color: #666;
  height: 22px;
  width: 22px;
  border-radius: 22px;
}

.activitySessionImg Img {
  margin-top: 1px;
  margin-left: 1px;
}

.transcodePart {
  display: flex;
  flex-direction: row;
}

.activityPart.stateContent {
  width: 280px;
  display: flex;
  flex-direction: column;
}

.activityContent {
  display: flex;
  flex-direction: row;
}

.activityContent.titleContent {
  font-size: 16px;
  font-weight: bold;
  background-color: #666;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
  color: #fff;
  padding: 8px;
}

.activityContent.detailContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 5px;
}

.activityContent.detailContent.transcode {
  border-radius: 3px;
  background-color: #f7f7f7;
  border: #ccc 1px solid;
  padding: 0;
  margin-bottom: 5px;
  font-size: 12px;
  position: relative;
}

.activityDetails {
  margin-bottom: 5px;
}

.transcodeDetails {
  margin-top: 2px;
  font-size: 12px;
  display: flex;
  flex-direction: row;
  flex: 1;
  border-bottom: #ccc 1px solid;
}

.transcodeDetails.last {
  border-bottom: 0;
  margin: 2px 0;
}

.transcodeDetailsPart {
  flex: 1;
  margin: 3px 0;
  line-height: 1.4;
}

.transcodeDetailsPart Img {
  margin: 0 10px -2px 10px;
}

.transcodeDetailsImg {
  margin: 3px 10px 0 5px;
}

.transcodeDetailsNvidia {
  position: absolute;
  right: 8px;
  top: 9px;
  cursor: pointer;
}

.trafficTranscodeBg {
  background: linear-gradient(to right, #eee 50%, #ccc 50%);
  margin-right: -1px;
  flex: 1;
}

.activitySessionBg {
  display: flex;
  background: linear-gradient(to right, #ccc 85%, #eee 15%);
  align-items: center;
}

.activityDurationDot {
  border: #666 1px solid;
  background-color: #fff;
  height: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
}

.activityDurationDotBg {
  background: linear-gradient(to right, #eee 50%, #666 50%);
  flex: 1;
  margin-right: -1px;
}

.activityDurationDotStart {
  width: 5px;
  height: 10px;
  background-color: #e77a16;
  border-top: #999 1px solid;
  border-left: #999 1px solid;
  border-bottom: #999 1px solid;
  border-radius: 10px 0 0 10px;
  margin-right: -1px;
}

.activityDurationDotProgress {
  height: 10px;
  background-color: #e77a16;
  border-top: #999 1px solid;
  border-bottom: #999 1px solid;
}

.activityDurationDotEnd {
  width: 5px;
  height: 10px;
  background-color: #e77a16;
  border-top: #999 1px solid;
  border-right: #999 1px solid;
  border-bottom: #999 1px solid;
  border-radius: 0 10px 10px 0;
  margin-left: -1px;
}

.activityDurationDotTime {
  background-color: #666;
  height: 14px;
  border-radius: 0 14px 14px 0;
  padding: 0 5px 0 3px;
}

.activityDurationTime {
  font-size: 12px;
  color: #fff;
  padding: 0 3px;
  width: 91px;
  text-align: center;
}

.hideDisplay {
  display: none;
}

/* Media Queries */
@media (max-width: 1000px) {
  .divBox.status {
    width: calc(100% - 50px);
  }

  .hideMobile1000 {
    display: none;
  }
}

@media (max-width: 850px) {
  .divBox.status {
    top: 10px;
    width: calc(100% - 20px);
    min-height: calc(100vh - 10px);
  }

  .content {
    padding: 10px;
  }

  .section {
    margin-bottom: 10px;
  }

  .hideMobile850 {
    display: none;
  }

  .statusServerInfo {
    min-width: 160px;
  }

  .iconButton.noMargin {
    margin: 0px;
  }

  .newsSectionPart {
    flex-direction: column-reverse;
  }

  .activityHeader {
    flex-direction: column;
    align-items: center;
  }

  .userCreationFlexGroup {
    flex-direction: column;
    flex: 1;
    gap: 0px;
  }
}

@media (max-width: 550px) {
  .divBox.status {
    min-width: 300px;
  }

  .divBox.login {
    width: 300px;
  }

  .hideMobile550 {
    display: none;
  }

  .loginFlex {
    padding: 0 10px;
  }

  .statusServerInfo {
    min-width: 30px;
  }
}

@media (max-width: 375px) {
  .mobileImg {
    height: 24px;
    width: 24px;
  }

  .hideMobile375 {
    display: none;
  }

  .activityPart.stateContent {
    width: 200px;
  }

  .activitySessionBg {
    background: linear-gradient(to right, #ccc 50%, #eee 50%);
  }

  #infobox{
    min-width: 250px;
  }
}
