#dashboard *{
/*	outline: 1px dashed rgba(255,255,255,0.5);*/
}

#dashboard h2{
    font-size: 1.5em;
    font-weight: bold;
    margin: initial;
    margin-top: 2em;
    margin-bottom: 1em;
    border-bottom: 4px solid rgb(var(--buttons_background));
    width: fit-content;
}
#edit_bot_page, .section{
    max-width: 100%;
}

#dashboard{
	width:100%;
	padding: 5em;
}

#login-section{
    text-align: center;
}
#login-section .btn{
    display: inline-block;
}

#bots_list, #login-section{
    width: 100%;
}
#dashboard p{
	font-size: 1.1em;
}

#dashboard h1{
    width: 100%;
    text-align: center;
}

#bot_page_nav{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin:0 0.5em;
    margin-bottom:2em;
    justify-content: center;
}

#dashboard #bot_page_nav a.btn{
    background: rgb(var(--buttons_background));
    color:rgb(var(--buttons_text));
    margin-right:0.5em;
    border-radius: var(--border_radius);
    margin-bottom: 0.5em;
    font-size: 1.2rem;
    padding:0.5em 1em;
    display: flex;
    align-items: center;
    transition:all 0.3s ease;
}

#dashboard .btn:hover{
    box-shadow: rgb(var(--buttons_background)) 0 0 15px;
}

.bot_nav_txt{
    margin-left:0.2em;
}

#bot_page_nav li{
/*    flex-basis: calc(50% - 0.5em);*/
    margin-right: 0.5em;
}

#dashboard #bot_page_nav a.btn{
    font-size: 1.2rem;
    width:100%;
}

#logged{
	text-align: center;
}

#logged .btn{
	margin:auto;
}

#dashboard > div {
    margin-bottom: 20px;
}

.login-btn, .connect-btn, .create-bot-btn {
    padding: 10px 20px;
    background-color: rgb(var(--buttons_background));
    border: none;
    color: #ffffff;
    cursor: pointer;
    border-radius: var(--border_radius);
    font-size: 1.2em;
}

.create-bot-btn{
   /* border: 2px solid rgb(var(--buttons_background));
    border-radius: var(--border_radius);*/
    display: flex;
    align-items: center;
    margin-right: 1em;
    margin-top: 1em;

}

.status {
    font-weight: bold;
}

.balance {
    font-weight: bold;
}

.bot-list {
    list-style: none;
    padding: 0;
}

.bot-list li {
    margin-bottom: 5px;
}


#bots_cards_container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.bot_card{
    border: 2px solid rgb(var(--buttons_background));
    border-radius: var(--border_radius);
    margin-right:1em;
    margin-top: 1em;
    width: 20em;
}

.bot_card_row_1{
    width: 100%;
    display: flex;
}

.bot_icon{
    display: inline-block;
    font-size:2em;
    margin:0.5em;
}

.bot_name{
    width: 100%;
    max-width: 16em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding:0.5em 1em 0 0;
    font-size: 1.3em;
}

.bot_pair{
    font-size: 1em;
    color: #eee;
}

.bot_name, .bot_pair{
    display: inline-block;
}

#dashboard select,#dashboard option{
    font-size: 1em;
    padding: 0.35em 1em;
    background: none;
    background-color: rgb(var(--background));
    border: 1px solid;
    border-radius: var(--border_radius);
    color: rgb(var(--text));
    margin-top: 0.5em;
    margin-bottom: 1em;
}


#dashboard input[type="text"]{
    width: fit-content;
}

#dashboard label{
    margin-top: 1em;
}

#dashboard .api-connection > p{
    font-size: 1.4em;
}

#stoploss_takeprofit_section{
    display: flex;
}

#stoploss_takeprofit_section > div {
    border-radius: var(--border_radius);
    padding:0.5em;
}

#stoploss_takeprofit_section label{
    display: inline-block;
}

#takeprofit_option{
    border:1px solid lime;
    margin-right: 1em;
/*    background: rgba();*/
}

#stoploss_option{
    border:1px solid red;
}

.cyatophilum_form_box input[type="text"].inline-input{
    background: none;
    border: 1px solid;
    border-radius: var(--border_radius);
    color: rgb(var(--text));
    display: inline-block;
    width: fit-content;
}

.manual_order_section{
    display: flex;
    flex-wrap: wrap;
}

.manual_order_section .inputs{
    padding:0 0.5em;
}
#manual_order_section input{
    display: inline-block;
}

.manual_order_section input{
    margin: 0.5em 1em;
}

#buy_form{
    border: 1px solid lime;
    border-radius: var(--border_radius);
    padding:0.5em;
    margin:1em 2.5em;
}

#sell_form{
    border: 1px solid red;
    border-radius: var(--border_radius);
    padding:0.5em;
    margin:1em 2.5em;
}

.table_container{
    max-height: 400px;
    overflow-y: auto;
    border-bottom:1px solid rgb(var(--buttons_background));
/*    width: fit-content;*/
}

.api-connection, .connected-section{
    width: 100%;
}

.section{
/*    border: 2px solid;*/
/*    border-radius: var(--border_radius);*/
    padding: 1em 2.5em;
    margin:1em 2.5em;
    height: fit-content;
    width: fit-content;
}

#edit_bot_page{
    display: flex;
    flex-wrap: wrap;
}

#edit_bot_page .manual_order_section{
    border:none;
}

.manual_order_section form{
    margin:0;
}

#bot_messages{
    margin-bottom:1em;
}


#dashboard .chart-container{
    position: relative; 
    width:1000px;
    display:inline-block;
    border: 1px solid;
}

.bot_delete button{
    border:none;
    color:red;
    padding:1em;
    padding-top: 0;
    background: none;
    cursor: pointer;
}

.bot_delete form{
    display: flex;
    flex-flow: row-reverse;
}

.tooltip{
    margin-left: 4.5em;
    font-size: 1.2em;
    background: lime;
    box-shadow: lime 0 0 15px;
}


/* General Table Styles */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
/*        font-family: Arial, sans-serif;*/
/*        color: #f1f1f1;*/
    }

    /* Table Header */
    th {
        background-color: #222;
        color: #f1f1f1;
        text-align: left;
        padding: 10px;
        border-bottom: 2px solid #444;
    }

    /* Table Rows */
    tr:nth-child(even) {
        background-color: #333;
    }

    tr:nth-child(odd) {
        background-color: #2a2a2a;
    }

    tr:hover {
        background-color: #444;
    }

    /* Table Cells */
    td {
        padding: 10px;
        border-bottom: 1px solid #444;
    }

    /* Table Borders */
    table, th, td {
        border: 1px solid #444;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        table, thead, tbody, th, td, tr {
            display: inline-block;
        }


        tr {
            width: 100%;
        }

        td {
            border: none;
            position: relative;
            padding-left: 0.5em;
            text-align: left;
        }

        td:before {
            content: attr(data-label);
            position: absolute;
            left: 10px;
            width: calc(50% - 20px);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: bold;
            color: #f1f1f1;
        }
    }

@media (max-width: 768px) {
    #dashboard{
        padding-left:0.5em;
        padding-right:0.5em;
    }

    .section{
        margin: 1em 0em;
        padding: 1em 0;
    }
}