body {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: sans-serif;
}

.main_app {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main_app .logo img {
  width: 180px;
}

.main_app hr {
  width: 90%;
  border: none;
  height: 1px;
  background-color: #000;
}

.main_app .account_symbol {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 40%;
}

.main_app .account_symbol label {
  font-weight: bold;
}

.main_app .account_symbol select {
  min-width: 130px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #f1eeee;
}

.main_app .account_symbol .account {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: start;
}

.main_app .account_symbol .symbols {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: start;
}

.main_app .bal_profit {
  display: flex;
  width: 40%;
  align-items: center;
  justify-content: space-between;
  background-color: #ededed;
  border-radius: 8px;
  padding: 18px;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}

.main_app .bal_profit label {
  font-weight: bold;
}

.all_buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 40%;
  text-align: center;
}

.all_buttons .connect,
.run_bot,
.risk_settings,
.home {
  cursor: pointer;
}

.all_buttons img {
  width: 60px;
}

.all_buttons h5 {
  margin-top: 0px;
}

.ac_bot_table {
  width: 40%;
}

.active_bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 39px;
  z-index: 200;
  position: relative;
}

.active_bot #active_bot_type {
  color: #fff;
  background-color: #d13841;
  padding: 12px 30px;
  border: none;
  border-radius: 7.8px;
}

.active_bot img {
  width: 40px;
}

.active_bot .refresh {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.table-wrapper {
  display: flex;
  justify-content: center;
  overflow: hidden;
  overflow-y: scroll;
  max-height: 250px;
  width: 100%;
}

.table-wrapper::-webkit-scrollbar {
  display: none;
}

table {
  width: 100%;
  background: #ededed;
  padding: 12px 18px;
  border-radius: 14px;
  text-align: center;
  vertical-align: top;
}
table td,
table th {
  vertical-align: top;
}

table td {
  height: 25px;
}
/* Responsive */
@media (max-width: 768px) {
  .main_app {
    width: 100%;
  }

  .main_app .bal_profit {
    width: 80%;
  }
  .main_app .active_bot,
  table {
    width: 100%;
  }

  .main_app .account_symbol,
  .main_app .all_buttons,
  .main_app .ac_bot_table {
    width: 90%;
  }
}

/* Dialog Css Styling */
dialog {
  width: 300px;
  background-color: white;
  color: hsl(0deg 1% 26%);
  border: 0;
  border-radius: 16px;
  animation: move-in 0.3s;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px;
}

dialog h2 {
  color: hsl(263deg 55% 55%);
}

dialog p {
  margin-bottom: 12px;
}
dialog input {
  border-radius: 5px;
  width: 100%;
  padding: 5px 10px;
  margin-bottom: 5px;
}

dialog #error_message {
  color: #c92228;
}

dialog button {
  border: 0;
  color: black;
  margin-top: 12px;
  background-color: hsl(240deg 37% 97%);
  padding: 8px 16px;
  border-radius: 8px;
}

dialog button:is(:hover, :focus) {
  background-color: hsl(240deg 37% 87%);
}

dialog::backdrop {
  background-color: rgba(46, 50, 82, 0.7);
  animation: fade-in 0.3s;
  animation-fill-mode: forwards;
}

@keyframes fade-in {
  from {
    backdrop-filter: blur(0px);
  }

  to {
    backdrop-filter: blur(8px);
  }
}

@keyframes move-in {
  from {
    translate: 0 10px;
    opacity: 0;
  }

  to {
    translate: 0;
    opacity: 1;
  }
}

/* Risk Managment dialog Styling */
.main_app #risk_dialog {
  background-color: #ececec;
}

.main_app #risk_dialog .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main_app #risk_dialog .title .closeBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #cb3040;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #000;
  cursor: pointer;
}

.main_app #risk_dialog input {
  width: 90%;
  border: 2px solid #f1eeee;
  text-align: center;
}
.main_app #risk_dialog .configs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 10px;
}

.main_app #risk_dialog .configs .stake_amount,
.take_profit,
.stop_loss {
  display: flex;
  align-items: start;
  flex-direction: column;
}

.main_app #risk_dialog .all_bots {
  display: flex;
  justify-content: center;
}

.main_app #risk_dialog select {
  margin-top: 10px;
  min-width: 130px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #f1eeee;
}
