/* Ustawienie czcionki Ubuntu dla całego dokumentu */
body {
  font-family: "Inter", sans-serif;
  background-color: #373737 !important;
}

.rotate img {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Stylizacja formularza połączenia */
#connection-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}
/* Ukrycie sekcji głównej strony przed połączeniem */
#main-content {
  display: none;
}
.status-indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: red;
  margin-left: 10px;
}
.status-indicator.visible {
  background-color: green;
}

.input-group.timer-column {
  width: 120px;
  float: right;
}

/* Powiększenie przełączników toggle */
.form-check-input {
  transform: scale(1.5);
  margin-left: -0.5rem; /* Dostosuj margines w razie potrzeby */
}

/* Opcjonalne dostosowanie kontenera przełącznika */
.form-check {
  display: flex;
  align-items: center;
}

.input-group {
  width: 150px;
}

/* Styl dla koloru tekstu w zależności od stanu */
.text-enabled {
  color: #98bfff;
  font-weight: bold;
}

.text-disabled {
  color: #d4d4d4;
  font-weight: bold;
}
h3.text-center.my-3 {
  margin-top: 40px !important;
  margin-bottom: 20px !important;
  color: #2196f3;
  position: relative;
  clear: both;
  padding: 7px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgb(165 165 165 / 30%) 0px 8px 16px -8px;
  font-size: 22px;
  border-bottom: 1px solid #5b5b5b;
  border-left: 1px solid #4f4f4f;
  border-right: 1px solid #555555;
  border-top: 1px solid #494949;
}

p#status {
  position: absolute;
  /* background: #76cf4a; */
  color: #48c163;
  padding: 10px 12px;
  margin-top: -55px;
  margin-left: 120px;
}
div#scenes {
  /* box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px; */
  margin-bottom: 50px;
  padding: 20px;
  border-bottom: 1px solid #ffffff36;
}

.badge-success {
  background-color: #007bff;
}
img#obsConnect {
  width: 40px;
}
img#obsTitle {
  width: 40px;
  margin-top: -140px;
}

span.badge.status-column.badge-success,
span.badge.status-column.badge-danger {
  width: 28px;
  height: 25px;
  font-size: 15px;
}
div#preview-scene {
 box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  padding: 10px 40px;
  color: #14a44d;
  margin-top: -20px;
  border-radius: 7px;
  margin-right: 20px;
}
div#program-scene {
  color: #dc4c64;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  padding: 10px 40px;
  margin-top: -20px;
  border-radius: 7px;
}

div#logo-text {
  position: relative;
  float: left;
  margin-left: 20px;
  font-size: 27px;
  font-weight: 500;
  margin-top: 3px;
}
div#logo-img {
  position: relative;
  float: left;
  margin-left: 17px;
  top: 55px;
}
div#disconnect-button-div {
  position: absolute;
}
/* Ogólne style dla urządzeń mobilnych */
@media only screen and (max-width: 767px) {
  div#connection-form {
    width: 300px;
  }
  div#scenes {
    width: 90%;
    margin-left: 5%;
    margin-top: 20px;
  }

  button#disconnect-button {
    /* margin-left: 20px; */
    margin-top: -80px;
    position: absolute;
    font-size: 12px !important;
  }
  .form-check.form-switch.toggle-column {
    margin-top: 10px;
  }
  p#status {
    /* margin-left: 28%; */
    display: none;
  }
  .source-item.mb-2.p-2.border.rounded {
    width: 100%;
    margin-left: 1%;
  }
  .source-item.mb-2.p-2.border.rounded {
    height: 90px;
  }
  div#theadBox {
    height: 40px;
  }
  .source-label.text-disabled,
  .source-label.text-enabled {
    width: 100%;
    position: absolute;
    margin-top: -50px;
    margin-left: -5%;
  }
  span.badge.status-column.badge-danger,
  span.badge.status-column.badge-success {
    margin-top: 44px;
  }

  img#obsTitle {
    /* position: absolute; */
    /* width: 40px; */
    margin-left: 186px;
    margin-top: -117px;
  }
  div#preview-scene {
    margin-top: 0px;
    font-size: 12px;
    margin-left: 7%;
    padding: 10px;
  }
  div#program-scene {
    margin-top: 0px;
    font-size: 12px;
    padding: 10px;
  }
  table#sourcesTable {
    font-size: 13px;
  }
  .input-group.timer-column {
    width: 50px;
    margin-left: -5px;
  }
  span.input-group-text {
    display: none;
  }
  h3.text-center.my-3 {
    margin-top: 0px !important;
  }
}

/* Data Tables */
div#sourcesTable_filter {
  float: left;
}
.form-check.form-switch {
  margin-left: 35%;
}
input.form-check-input.toggle-switch {
  cursor: pointer;
}
table#sourcesTable {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
div#sourcesTable_filter {
  margin-bottom: 15px;
}
th {
  text-align: center !important;
}
table#sourcesTable {
  margin-bottom: 80px;
}
button {
  font-size: 14px !important;
  box-shadow: 0 4px 9px -4px rgba(0, 0, 0, 0.35) !important;
}
button:hover {
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.7) !important;
}
table#sourcesTable {
  font-size: 15px;
}
div#irek {
  position: fixed;
  right: 0;
  bottom: 0;
  margin-right: 40px;
  margin-bottom: 30px;
  color: #9b9b9b;
}
div#timerMaster {
  /* margin-left: 83%; */
  z-index: 1000;
  margin-top: -35px;
  z-index: 100;
  float: right;
}
div#sourcesTable_wrapper {
  margin-top: -35px;
}
div#nameScene,
div#nameScenePreview,
div#nameSceneProgram {
  float: left;
  color: white !important;
  padding: 2px 17px;
  margin-left: 42%;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  box-shadow: 0 4px 9px -4px rgba(0, 0, 0, 0.35) !important;
}
div#nameScene {
  background: #3b71ca;
}
div#nameScenePreview {
  background: #14a44d;
}
div#nameSceneProgram {
  background: #dc4c64;
}
button.m-2 {
  font-size: 12px !important;
}

/************************************* DARK STYLE ***********************************/

table#sourcesTable {
  /* background: aliceblue; */
  /* box-shadow: rgb(255, 255, 255) 0px 1px 4px, rgb(255 255 255) 0px 0px 0px 3px; */
  border: 1px solid #575757;
  color: white;
}
div#logo-text {
  color: aliceblue;
}

span.input-group-text {
  background: aliceblue;
}

img.zrodlo {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

tbody,
td {
  border-bottom: 1px solid;
  border-color: #838383 !important;
  /* background-image: linear-gradient(to right, #58A6FF, #BC8CFF); */
}
input.form-control.timer-input {
  background: #373737;
  color: white;
}
span.input-group-text {
  background: #373737;
  color: #676767;
}

.btn-primary {
  --mdb-btn-bg: #3561a9 !important;
}
div#dotConnection {
  width: 20px;
  background: #03c703;
  height: 20px;
  border-radius: 50px;
  /* box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; */
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
label {
  color: #999999;
  margin: 20px;
}
input[type="search"] {
  margin-left: 10px !important;
}
input[type="text"] {
  background: #343434 !important;
  color: white !important;
  text-align: center !important;
}
span.badge.bg-success,
span.badge.bg-danger {
  background: none !important;
}
.iconSize {
  width: 30px;
}
.iconSizeSource {
  width: 25px;
}
div#bridgeDownload {
  margin-top: 50px;
  font-size: 14px;
  margin-left: 240px;
}
div#connection-form {
  width: 500px;
}
input#password,
button.btn.btn-primary.btn-block {
  width: 250px;
  margin-left: 110px;
}
div#statusLog {
  margin-top: 40px;
  font-family: monospace;
  font-size: 12px;
  /* background: #e7e7e7; */
  color: #292929;
  /* border: 1px solid #d3d3d3; */
  padding: 12px;
  margin-left: 10px;
  margin-right: 10px;
}

/* Styl dla gwiazdki w tabeli */
.favorite-icon {
  font-size: 1.5rem;
  cursor: pointer;
  color: #ccc; /* Szary dla nieaktywnych */
  transition: color 0.2s;
}

.favorite-icon.active {
  color: #ffc107; /* Złoty dla ulubionych */
}

/* Panel ulubionych nad tabelą */
#favorites-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
  display: none; /* Ukryty, gdy pusty */
}

#favorites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

/* Karta pojedynczego ulubionego źródła */
.fav-item {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 5px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fav-item button {
  margin-left: 10px;
}

.fav-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.fav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.fav-star-btn {
  cursor: pointer;
  font-size: 1.2rem;
  color: #ffc107;
  transition: color 0.2s;
}
.fav-star-btn:hover {
  color: #e0a800; /* Ciemniejszy złoty po najechaniu */
}
.input-group.mb-3 {
  width: 262px;
  float: right;
  margin-top: 40px;
  margin-bottom: -50px !important;
  z-index: 1000;
}
div#favorites-container {
  background-color: #373737 !important;
  border: 0 !important;
  border-bottom: 1px solid #616161 !important;
  padding-bottom: 40px !important;
}
h5.mb-3.border-bottom.pb-2 {
  color: #979797;
  border-bottom: 0 !important;
}
/* Wielkość gwiazdki w ulubionych */
span.text-warning.me-2.fs-5 {
  font-size: 25px !important;
}
button.btn.btn-sm.btn-outline-primary.fav-link-btn {
  border: 1px solid #b9b9b9;
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}
button.btn.btn-sm.btn-outline-primary.fav-link-btn:hover {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  transition: 0, 5s;
}
.fav-card.d-flex.align-items-center.bg-white.border.rounded.p-2.shadow-sm {
  background-color: #373737 !important;
  border-radius: 9px !important;
}
div#disconnect-button-div {
  top: 90%;
  margin-left: 110px;
}
input.form-control.individual-timer {
  background: none;
  color: white;
}
input.form-control.form-control-sm.me-2 {
  background: none;
  color: white;
}

div#favoritesTitle {
  position: relative;
  float: left;
  border: 0 !important;
  margin-top: -70px;
  color: #797979;
}
.d-flex.justify-content-between.align-items-center.mb-4.px-2 {
  position: relative;
  float: left;
}

.d-flex.justify-content-between.align-items-center.mb-4.px-2 {
    margin-top: 70px;
}
.animate__animated.animate__fadeInDown.mb-4 {
    position: relative;
    float: left;
    margin-left: -130px;
}
div#viewerOBS {
    padding-bottom: 10px;
    margin-top: 35px;
    display: flex;
    justify-content: center;
}
