@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");
:root {
  --font-family: "Montserrat", sans-serif;
  --main-background-color: white;
  --main-title-color-text: gray;
  --title-color-text: #333;
  --hover-color: #ff7f11;
  --popup-warning-bg: linear-gradient(180deg, #f0a008, #e07d00);
  --main-transition: 0.3s ease;
}

html {
  scrollbar-gutter: stable; 
  height: 100%;
}

body {
  height: 100%;
  min-height: 100%;
  font-family: var(--font-family);
  background-color: transparent; 
}


#loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999; 
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(210, 210, 210);
  opacity: 1;
  transition: opacity 0.6s ease;
}

body.loaded #loading-overlay {
  opacity: 0;
   pointer-events: none;
}

#loading-overlay .loader {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


body.loaded {
  min-height: 100vh; 
  overflow: auto;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button {
  line-height: normal;
  font-size: inherit;
}



body.light {
  background-color: #eaeaea;
  color: #000000;
}

body.light h1,
body.light .user-profile span,
body.light .menu-toggle {
  color: #4c4c4c;
}

body.light .page-bg-overlay {
  background: rgba(255, 255, 255, 0.35);
}



h1 {
  color: var(--main-title-color-text);
}

h2, h3, h4 {
  font-family: var(--font-family);
  color: var(--title-color-text);
}

h3, h4, h5, h6 {
  margin: 0;
}

a {
  text-decoration: none;
}

.page-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.page-bg-overlay {
  position: fixed;
  z-index: -1;
  background: rgba(255, 255, 255, 0.25);
  transition: opacity 0.6s ease;
  pointer-events: none;
  opacity: 1;
}

body.loaded .page-bg-overlay {
  opacity: 1; 
}

body:not(.has-custom-bg) .page-bg{ background-image:none; opacity:0; }
body.has-custom-bg .page-bg{ opacity:1; }

.container {
  max-width: 800px;
  margin: 0px auto 30px;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-header {
  max-width: 800px;
  margin: 0 auto;
}

.title-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.title-menu h2 {
  font-size: 28px;
}

.header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-menu {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-user {
  display: flex;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: visible;
  position: relative;
  z-index: 0;
}

table.data th, table.data td {
  border: 1px solid #ddd;
  padding: 2px;
  font-size: 14px;
}

table.data th {
  background-color: #6BC34A;
  color: white;
}

table.data tr.selected {
  background-color: #ddd;
  font-weight: 600;
}

.row-green {
  background-color: #dff0d8;
}

.row-yellow {
  background-color: #fcf8e3;
}

.row-orange {
  background-color: #ffe5b4;
}

.row-gray {
  background-color: #f2f2f2;
}

table.data tr:hover td {
  background-color: #ddd !important;
  transition: background-color 0.3s;
}

table.data tr {
  border-bottom: 1px solid #dcdcdc;
}

.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: transparent;
  position: sticky;
  top: 0;
  z-index: 30;
}

.top-bar-button {
  color: var(--title-color-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  border: none;
  background-color: transparent;
  margin: 5px 15px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--main-transition);
  cursor: pointer;
}

.top-bar-button:hover,
.top-bar-button.active {
  color: var(--hover-color);
}

.menu-toggle {
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 24px;
  color: var(--main-title-color-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 5px;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.menu-toggle.active {
  background-color: #e0e0e0;
  transform: scale(0.95);
}

.nav-menu {
  display: none;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: white;
  border: 1px solid #eaeaea;
  border-radius: 5px;
  padding: 10px;
  z-index: 100;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.nav-menu.show {
  display: block;
  max-height: 500px;
  opacity: 1;
}

.button-container {
  height: 26px;
  border: none !important;
  border-right: 1px solid #dcdcdc !important;
  display: flex;
  overflow: hidden;
}

.button-custom-container {
  height: 55px;
  padding-top: 25px;
  border: none !important;
  border-right: 1px solid #dcdcdc !important;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.select-button:disabled,
.popup-select:disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.4);
}


.user-main-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #4f4f4f;
  border-radius: 50px;
  overflow: hidden;
  padding-right: 15px;
  padding-left: 15px;
}

.click-button,
.popup-select,
.popup-read {
  display: none;
}

.click-wrapper {
  margin-top: 4px;
}

.custom-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 51px;
}

.button-line {
  border-top: 1px solid #333;
  width: 60%;
  margin: 3px 0;
}

.buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.subscription-plans {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.plans-menu {
  display: none;
  flex-direction: column;
  margin-top: 5px;
}

.plans-menu.show {
  display: flex;
}

.plan {
  padding: 5px 10px;
  margin-bottom: 5px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: var(--main-transition);
}

.plan:hover {
  color: var(--hover-color);
}

#custom-row td {
  padding-top: 5px;
}

.custom-row-input {
  display: flex;
  flex-direction: column;
}

.custom-row-input span {
  font-size: 12px;
  margin-bottom: 5px;
}

.custom-input {
  border: 1px solid #ddd;
  border-radius: 3px;
  max-width: 100px;
  padding: 2px;
  font-size: 12px;
}

.custom-input:focus {
  outline: none;
  border: 1px solid #4CAF50;
}

.user-profile {
  display: flex;
  align-items: center;
  margin-right: 15px;
  gap: 10px;
}

.user-profile img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 50%;
}

.user-profile span {
  color: var(--main-title-color-text);
  font-size: 16px;
  font-weight: bold;
}

.indices-container {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.index-card {
  background: #1c1c1c;
  color: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.index-card h3 {
  margin: 0;
  font-size: 18px;
}

.index-card p {
  margin: 5px 0;
  font-size: 14px;
}

/* ------------------------------- */
.selected-row {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.row-header {
  border-bottom: #ddd 1px solid;
}

.row-header, .row-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  text-align: center;
  align-items: center;
  gap: 10px;
}

.row-header span {
  font-size: 14px;
  color: #555;
}

.row-content span {
  font-size: 14px;
  color: #333;
  padding: 5px 0;
}

.row-content span#slot-type.text-red {
  color: #e53935;
}

.row-content span#slot-type.text-green {
  color: #43a047;
}


.select-buttons {
  display: flex;
  height: 45px;
  width: 124px;
  border-left: #ddd 1px solid;
  align-items: end;
}

.stop-buttons {
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

#symbol-cell select {
  font-weight: 200;
  color: #333333b8;
  outline: none;
  width: 80%;
  padding: 2px;
  border-radius: 5px;
  border: #ddd 1px solid;
  font-size: 13px;
}

#multi-slots:required:invalid {
  color: #333333b8;
  font-size: 13px;
}

#symbol-cell select :hover {
  outline: none;
  border: 1px solid #4CAF50;
}

.clear-button {
  height: 20px;
  cursor: pointer;
  margin: 0 auto;
  font-size: 12px;
  font-weight: 500;
  color: #ff000099;
  background-color: white;
  border: 1px solid #b6b6b6;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.2s, transform 0.2s;
}

.clear-button.stop-one {
  padding: 2px 16px;
}

.clear-button.stop-all {
  padding: 2px 8px;
}


.clear-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.clear-button:hover {
  color: rgba(220, 20, 60, 0.466);
  background-color: #f5e9e6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.full-label {
  display: inline;
}
.short-label {
  display: none;
}


/* ----------------------------------------- */
@media (max-width: 769px) {
  h1 {
    font-size: 24px;
  }
  h3 {
    font-size: 16px;
  }
  table.data th, table.data td {
    border: 1px solid #ddd;
    padding: 1px;
    font-size: 12px;
  }
  .button-container {
    display: flex;
    flex-direction: column;
    max-width: 60px;
    overflow: hidden;
  }

  .user-main-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid #4f4f4f;
    border-radius: 50px;
    overflow: hidden;
    padding-right: 15px;
    padding-left: 15px;
  }
  .user-profile span {
    font-size: 13px;
  }
  .select-button,
  .read-button {
    display: none;
  }
  .click-button {
    display: block;
  }
  .popup-buttons {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 100;
  }
  .popup-buttons.active {
    display: block;
  }
  .popup-buttons button {
    display: block;
    width: 100%;
    padding: 4px 10px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
  }
  .popup-buttons button:hover {
    background: #f0f0f0;
  }
  .row-header, .row-content {
    font-size: 12px;
  }
  .row-content span, .row-header span {
    font-size: 12px;
  }
  .clear-button {
    height: 25px;
    padding: 0px 5px;
    width: 55px;
    font-size: 11px;
  }
  .clear-button.stop-one {
  padding: 2px 15px;
}

.clear-button.stop-all {
  padding: 2px 7px;
}
    .full-label {
    display: none;
  }
  .short-label {
    display: inline;
  }

  .row-header {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 6px;
  }

  .row-header span {
    flex: 1;
  }
}

.highlight-green {
  background-color: rgba(0, 200, 0, 0.507);
  animation: fadeOutGreen 9s ease forwards;
  padding: 1px 4px;
  border-radius: 3px;
}

.highlight-red {
  background-color: rgba(255, 0, 0, 0.507);
  animation: fadeOutRed 9s ease forwards;
  padding: 1px 4px;
  border-radius: 3px;
}

@keyframes fadeOutGreen {
  0% {
    background-color: rgba(0, 200, 0, 0.507);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes fadeOutRed {
  0% {
    background-color: rgba(255, 0, 0, 0.507);
  }
  100% {
    background-color: transparent;
  }
}


/* ----------------------------------------- */

@media (min-width: 770px) {
  .row-header, .row-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .row-header .full { display: inline; }
  .row-header .short { display: none; }
}

@media (max-width: 769px) {
  .row-header, .row-content {
    display: grid !important;
    grid-template-columns: 1.60fr 1fr 1fr 1fr 1fr; 
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .row-header span { min-width: 0; font-size: 12px; }
  .row-content span { font-size: 12px; }

  .row-header .full  { display: none; }
  .row-header .short { display: inline; }

  #symbol-cell {
    display: flex;
    justify-content: center;
  }
  #symbol-cell select {
    width: 100%;
    max-width: 86px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
}

/* ----------------------------------------- */

body.bg-loading {
  cursor: progress;
}

body.loaded #loading-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

body.loaded {
  min-height: 100vh;
  overflow: auto;
}

body.loaded .page-bg-overlay {
  opacity: 1;
  transition: opacity 0.6s ease;
}

body.fade-bg {
  transition: background-image 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* #pageBg {
  opacity: 0;
  transition: opacity 0.6s ease;
}

body:not(.bg-loading) #pageBg {
  opacity: 1;
} */
