body {
    margin: 0;
}

.account-wrapper {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;
}

.account-wrapperTB {
    position: fixed;
    top: 4px;
    right: 16px;
    z-index: 998;
}

/* circle button */
.account {
    width: 42px;
    height: 42px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0f2a2d;
    border: 1px solid #00ffff55;
    color: #00ffff;
    text-decoration: none;
    z-index: 999;
}

.account:hover {
    background: #12363b;
    transform: scale(1.08);
    box-shadow: 0 0 14px #00ffff66;
    transition: 0.15s ease;
    cursor: pointer;
}

/* tooltip */
.tooltip {
    position: absolute;
    top: 50%;
    right: 52px;

    transform: translateY(-50%);

    background: #0f2a2d;
    border: 1px solid #00ffff33;
    color: #00ffff;

    padding: 6px 10px;
    border-radius: 4px;

    font-size: 12px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition: 0.15s ease;
    z-index: 998;
}

/* show on hover */
.account-wrapper:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===============================PORTAL================================ */
.portal_body {
    background-color: #525f66;
    background-image: url("/Data/explosion.png");
    background-size: cover;
    background-position: center;

    color: #fff;
    font-family: sans-serif;

    margin: 0;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

.portal_container {
    background: #1b2a34;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 0 10px #00ffff44;
    text-align: center;
}

.portal_container h1 {
    text-align: center;
    margin-bottom: 5px;
    color: #00ffff80;
    filter: drop-shadow(0 0 10px #0bebeb88);

}

.portal_container h2 {
    text-align: center;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 18px;
    font-weight: normal;
}

.portal_button {
    width: 310px;
    padding: 16px;
    display: block;
    margin: 8px auto;

    border: 1px solid #00ffff44;
    border-radius: 4px;

    background: #0f2a2d;
    color: #00ffff;
    text-align: center;
    text-decoration: none;
    font-weight: normal;

    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 8px #00ffff33;
}

.portal_button:hover {
    background: #12363b;
    box-shadow: 0 0 12px #00ffff55;
    transform: translateY(-1px);
}

.login_input {
    width: 310px;
    padding: 16px;
    display: block;
    margin: 8px auto;
    border: 1px solid #00ffff44;
    border-radius: 4px;
    background: #525f66;
    color: #00ffff;
    text-align: center;
    font-size: 1.2rem;
    box-shadow: 0 0 8px #00ffff33;
}

.portal_logo {
    width: min(160px, 60vw);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px #00ffff88);
}



/* ===============================ACCOUNT MANAGER================================ */


.manage_mainContainer {
    background: #1b2a34;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 0 10px #00ffff44;
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1100px;
    min-width: 1040px;
    gap: 10px;
    min-height: 500px;
}

.manage_container {
    display: flex;
    flex-direction: row;
}

.manage_scroll-container {
    background: #0f2a2d;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffff33;

    padding: 16px;

    height: 757px;
    width: 100%;
    overflow-y: auto;
    overflow-x: auto;
}

.manage_left-column {
    flex: 3;
}

.manage_mid-column {
    flex: 3;
}

.manage_right-column {
    flex: 2;
    justify-content: space-between;

    background: #0f2a2d;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffff33;
}

.manage_sessionmsgBox {
    width: 97%;
    flex: 0;

    background: #0f2a2d;
    padding: 12px;

    border-radius: 8px;
    box-shadow: 0 0 8px #00ffff33;
    margin-top: 10px;
    margin-left: 10px;
    margin-bottom: 0px;
}

.manage_container h1 {
    text-align: center;
    margin-bottom: 5px;
    color: #00ffff80;
    filter: drop-shadow(0 0 10px #0bebeb88);
}

.manage_container h2 {
    text-align: center;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 18px;
    font-weight: normal;
}

.manage_midBtnSpace {
    display: flex;
    padding-bottom: 42px;
}

.manage_rightBtnSpace {
    display: flex;
    padding-bottom: 8px;
}

.manage_midBtnSpaceAdmin {
    display: flex;
    padding-bottom: 18px;
}

.manage_rightBtnSpaceAdmin {
    display: flex;
    padding-bottom: 20px;
}


.manage_button {
    width: 310px;
    padding: 16px;
    display: block;
    margin: 8px auto;
    border: 1px solid #00ffff44;
    border-radius: 4px;
    background: #0f2a2d;
    color: #00ffff;
    text-align: center;
    text-decoration: none;
    font-weight: normal;
    box-shadow: 0 0 8px #00ffff33;
    font-size: 1.2rem;
    cursor: pointer;
}

.manage_button:hover {
    background: #12363b;
    box-shadow: 0 0 12px #00ffff55;
    transform: translateY(-1px);
}

.manage_buttonPanel {
    width: 280px;
    padding: 16px;
    display: block;
    margin: 8px auto;
    border: 1px solid #00ffff44;
    border-radius: 4px;
    background: #0f2a2d;
    color: #00ffff;
    text-align: center;
    text-decoration: none;
    font-weight: normal;
    box-shadow: 0 0 8px #00ffff33;
    font-size: 1.2rem;
    cursor: pointer;
}

.manage_buttonPanel:hover {
    background: #12363b;
    box-shadow: 0 0 12px #00ffff55;
    transform: translateY(-1px);
}

.manage_buttonSmall {
    width: 110px;
    padding: 16px;
    display: block;
    margin: 8px auto;
    border: 1px solid #00ffff44;
    border-radius: 4px;
    background: #0f2a2d;
    color: #00ffff;
    text-align: center;
    text-decoration: none;
    font-weight: normal;
    box-shadow: 0 0 8px #00ffff33;
    font-size: 1.2rem;
    cursor: pointer;
}

.manage_input {
    width: 310px;
    padding: 16px;
    display: block;
    margin: 8px auto;
    border: 1px solid #00ffff44;
    border-radius: 4px;
    background: #525f66;
    color: #00ffff;
    text-align: center;
    font-size: 1.2rem;
    box-shadow: 0 0 8px #00ffff33;
}

.manage_inputSelect {
    width: 342px;
    padding: 16px;
    display: block;
    margin: 8px auto;
    border: 1px solid #00ffff44;
    border-radius: 4px;
    background: #525f66;
    color: #00ffff;
    text-align: center;
    font-size: 1.2rem;
    box-shadow: 0 0 8px #00ffff33;
}



/* =============================TRADEBOT================================== */

.tb_button {
    width: 320px;
    height: 40px;
    padding: 2px;
    display: block;
    margin: 8px;

    border: 1px solid #00ffff44;
    border-radius: 4px;

    background: #32a83290 !important;
    color: #00ffff !important;

    text-align: center;
    text-decoration: none;
    font-weight: normal;

    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 8px #00ffff33;
}

.tb_button:hover {
    box-shadow: 0 0 12px #00ffff55;
    transform: translateY(-1px);
}

.tb_button:disabled {
    background: #c82e2344 !important;
    box-shadow: 0 0 12px #00ffff55;
    color: #000000 !important;
}



.header-text {
    transform: translateX(540px);
}

.page-header {
    display: inline-flex;
    align-items: center;

    min-width: 280px;
    height: 42px;
    padding: 0px;

    margin: 4px;
    margin-left: 16px;
    margin-right: 16px;


    background: #0f2a2d;
    border: 1px solid #00ffff55;
    border-radius: 21px;

    color: #00ffff;
    font-size: 1.2rem;
    font-weight: normal;

    box-shadow: 0 0 10px #00ffff33;
}

.topbar-right {
    position: fixed;
    top: 0px;
    right: 0px;
    padding: 10px;
    padding-top: 5px;
}

.topbar-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.topbar-right ul li {
    cursor: pointer;
    color: #ffffffaa;
}

.topbar-right ul li:hover {
    color: #00ffff;
}


.topbar-left {
    position: fixed;
    top: 4px;
    left: 16px;
    z-index: 996;
}

.topbar-left ul {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar-left a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 80px;
    height: 42px;
    padding: 0 16px;

    background: #0f2a2d;
    border: 1px solid #00ffff55;
    border-radius: 21px;

    color: #00ffff;
    text-decoration: none;

    transition: 0.15s ease;
}

.topbar-left a:hover {
    background: #12363b;
    transform: scale(1.08);
    box-shadow: 0 0 14px #00ffff66;
}


.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}


header {
    background: #2c3a42;
    padding: 16px;
    padding-top: 25px;
    padding-bottom: 0px;
    text-align: center;
    font-size: 20px;
    border-bottom: 1px solid #00ffff;
    z-index: 995;
}


.dashboard {
    display: grid;
    grid-template-columns: 1fr;

    padding: 16px;
    padding-top: 4px;

    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
}


/* Profit info box */
.timeselect-container {
    position: fixed;
    top: 240px;
    /* distance from top, adjust as needed */
    left: 30px;


    height: 30px;
    display: inline-block;
    white-space: nowrap;
    background: #1b2a34;
    padding: 0px;
    border-radius: 4px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 990;
    opacity: 0.9;
}

.timeselect-container select {
    margin: 2px 0;
    width: 70px;
    padding: 2px;
    border-radius: 4px;
    border: none;
    background: #525f66;
    color: #00ffff;
}

.timeselect-container label {
    margin: 8px 0;
    padding: 0px;
    color: #afffff;
}



/* Profit info box */
.profit-container {
    position: fixed;
    top: 224px;
    /* distance from top, adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    /* centers horizontally only */

    height: 78px;
    display: inline-block;
    white-space: nowrap;
    background: #525f66;
    padding: 0px;
    border-radius: 4px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 990;
    opacity: 0.8;
}


/* Bot List */
.dash-container {
    height: 150px;
    background: #1b2a34;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: auto;
    overflow-x: auto;
}

.dash-container select {
    width: 150px;
    border-radius: 4px;
    border: none;
    background: #0f2a2d;
    color: #00ffff;
}

.dash-container button {
    border-radius: 4px;
    border: none;
    background: #0f2a2d;
    color: #00ffff;
    margin: 2px;
    padding: 2px;
}

.dash-container button {
    background: #00c0ff;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.dash-container button:disabled {
    background: #cccccc;
    color: #000;
    font-weight: bold;
    cursor: not-allowed;
}


/* Chart container */
.chart-outer-box {
    height: calc(100vh - 270px);
    /* calc(100vh - 408px) */
    align-self: self-start;
    background: #1b2a34;
    padding: 10px;

    border-radius: 8px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
}

.newbot-outer-box {
    height: calc(100vh - 330px);
    /* calc(100vh - 408px) */
    align-self: self-start;
    background: #1b2a34;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
}



.apKey {
    height: calc(100vh - 330px);
    /* calc(100vh - 408px) */
    align-self: self-start;
    background: #1b2a34;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: auto;
    overflow-x: auto;
}


.chart {
    width: 100%;
    height: 100%;
}


.log-container {
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* centers horizontally & vertically */

    height: 600px;
    display: inline-block;
    background: #525f66;
    padding-top: 5px;
    /* keep top padding */
    padding-right: 15px;
    /* adjust right */
    padding-bottom: 15px;
    /* adjust bottom */
    padding-left: 15px;
    /* adjust left */

    border-radius: 8px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 994;
    /* makes it appear on top of other elements */
}


.stop-container {
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* centers horizontally & vertically */

    display: inline-block;
    white-space: nowrap;
    background: #1b2a34;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 998;
    /* makes it appear on top of other elements */
}

.stop-container button {
    margin: 0px 0;
    width: 50px;
    padding: 4px;
    border-radius: 4px;
    border: none;
    color: #0fffff;
    cursor: pointer;
}



.delete-container {
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* centers horizontally & vertically */

    width: 300px;
    background: #1b2a34;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 994;
    /* makes it appear on top of other elements */
}

.delete-container button {
    margin: 0px 0;
    width: 50px;
    padding: 4px;
    border-radius: 4px;
    border: none;
    color: #0fffff;
    cursor: pointer;
}

.smartPic {
    width: 138px;
    height: 138px;
}


.whiteText {
    text-align: center;
    font-weight: normal;
    color: #ffffff;
}

.neonText {
    text-align: center;
    font-weight: normal;
    color: #0fffff;
}


.grid-btns {
    white-space: nowrap;
    height: 38px;
    width: 99%;
    background: #1b2a34;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
    margin: 2px;
    padding: 2px;
}


.grid-container {
    white-space: nowrap;
    height: 140px;
    width: 99%;
    background: #1b2a34;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
    margin: 2px;
    padding: 2px;
}

.grid-container input {
    width: 130px;
    border-radius: 4px;
    border: none;
    background: #525f66;
    color: #00ffff;
    margin: 2px;
    padding: 2px;
}

.grid-container select {
    width: 160px;
    border-radius: 4px;
    border: none;
    background: #525f66;
    color: #00ffff;
    margin: 2px;
    padding: 2px;
}

.grid-container th {
    text-align: left;
    color: #ff00ff;
    background: #1b2a34;
    margin: 2px;
    padding: 2px;
}


.gridInfo-container {
    white-space: nowrap;
    height: 140px;
    width: 100%;
    background: #1b2a34;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
    margin: 2px;
    padding: 2px;
}

.gridInfo-container input:read-only {
    white-space: nowrap;
    width: 100px;
    border-radius: 4px;
    border: none;
    background: #525f66;
    color: #ff0000;
    margin: 2px;
    padding: 2px;
}

.gridInfo-container th {
    text-align: left;
    color: #ff00ff;
    background: #1b2a34;
    margin: 2px;
    padding: 2px;
}


.smart-container {
    white-space: nowrap;
    height: 140px;
    width: 99%;
    background: #1b2a34;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
    margin: 2px;
    padding: 2px;
}

.smart-container input {
    width: 130px;
    border-radius: 4px;
    border: none;
    background: #525f66;
    color: #00ffff;
    margin: 2px;
    padding: 2px;
}

.smart-container select {
    width: 160px;
    border-radius: 4px;
    border: none;
    background: #525f66;
    color: #00ffff;
    margin: 2px;
    padding: 2px;
}

.smart-container th {
    text-align: left;
    color: #ff00ff;
    background: #1b2a34;
    margin: 2px;
    padding: 2px;
}


.advanced-container {
    white-space: nowrap;
    margin: 2px;
    padding: 2px;
    height: 140px;
    width: 100%;
    background: #1b2a34;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
    margin: 2px;
    padding: 2px;
}

.advanced-container input {
    width: 70px;
    border-radius: 4px;
    border: none;
    background: #525f66;
    color: #00ffff;
    margin: 2px;
    padding: 2px;
}

.advanced-container th {
    text-align: left;
    color: #ff00ff;
    background: #1b2a34;
    margin: 2px;
    padding: 2px;
}



.settings-container {
    height: 340px;
    width: 230px;
    background: #1b2a34;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffff44;
    overflow-y: hidden;
    overflow-x: hidden;
}

.settings-container input {
    margin: 8px 0;
    width: 150px;
    padding: 8px;
    border-radius: 4px;
    border: none;
    background: #0f2a2d;
    color: #00ffff;
}

.settings-container button {
    margin: 8px 0;
    width: 164px;
    padding: 8px;
    border-radius: 4px;
    border: none;
    background: #0f2a2d;
    color: #00ffff;
    background: #00c0ff;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}


.scroll-container {
    height: calc(100vh - 440px);
    background: #1b2a34;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: auto;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.tools-container {
    height: 210px;
    background: #1b2a34;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 0 10px #00ffff44;
    overflow-y: auto;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.tools-container select {
    width: 150px;
    border-radius: 4px;
    border: none;
    background: #525f66;
    color: #00ffff;
}

.tools-container button {
    border-radius: 4px;
    border: none;
    background: #0f2a2d;
    color: #00ffff;
    margin: 2px;
    padding: 2px;
}

.tools-container button {
    background: #00c0ff;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.tools-container button:disabled {
    background: #cccccc;
    color: #000;
    font-weight: bold;
    cursor: not-allowed;
}


.centerText {
    text-align: center;
    font-weight: bold;
    color: #00ffff;
    background: #0a1a20;
}


.stopText {
    text-align: center;
    font-weight: bold;
    color: #00ffff;
}


.delText {
    text-align: center;
    font-weight: bold;
    color: #8a2d2d;
}


.bottomText {
    text-align: center;
    font-weight: bold;
    color: #00ffff;
}


.tabClick {
    width: 100px;
    text-align: center;
    border: none;
    margin: 2px 0;
    padding: 2px;
    white-space: nowrap;
    color: #ffffff;
    cursor: pointer;
    font-weight: normal
}


.tab {
    border: none;
    margin: 0px 0;
    padding: 0px;
    white-space: nowrap;
    color: #ffffff;
    font-weight: normal
}

.tab button {
    border: none;
    margin: 0px 0;
    padding: 0px;
    width: 100px;
    white-space: nowrap;
    color: #ffffff;
    cursor: pointer;
    font-weight: normal
}

.tab button:disabled {
    color: #ffffff;
    cursor: not-allowed;
    font-weight: normal
}