body {
    font-family: Arial, sans-serif;
}

.ml-suggestion {
    cursor: pointer;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px;
    text-align: center;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
}

.ml-suggestion:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.ml-dialog {
    display: none;
    position: fixed;
    top: 0%;
    right: 0%;
    /*width: 75%;*/
    height: 100%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    border-radius: 10px;
}
.app-beta-dialog {
    display: block;
    position: fixed;
    top: 86%;
    right: 5%;
    width: 90%;
    height: 8%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    border-radius: 10px;
}


.ml-dialog-content {
    padding: 25px;
    height: 100%;
    overflow-y: auto;
}

.ml-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

.ml-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.ml-tablink {
    padding: 10px 5px;
    cursor: pointer;
    border: none;
    background-color: #6d6262;
    font-size: 16px;
    border-radius: 35px;
    transition: background-color 0.3s ease;
}

.ml-tablink:hover, .ml-tablink.active {
    background-color: #297c6d;
}

.ml-tabcontent {
    display: none;
}

.ml-tabcontent.active {
    display: block;
}

pre {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

h3, h4, h5 {
    margin-top: 0;
}

#ml-signupForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#ml-signupForm label {
    font-weight: bold;
}

#ml-signupForm input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#ml-signupForm button {
    padding: 10px 20px;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to the left */
}

#ml-signupForm button:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .ml-dialog {
        width: 90%;
        left: 5%;
    }

    .ml-tabs {
        gap: 2px;
    }

    .ml-tablink {
        width: 50%;
    }

    #ml-signupForm {
        gap: 5px;
    }

    #ml-signupForm input {
        font-size: 14px;
    }

    #ml-signupForm button {
        font-size: 14px;
    }
}

.addNewBMMarket {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 24px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

        .black-market {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            overflow: hidden;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            background-color: #fff;
        }
        th, td {
            padding: 12px 15px;
            text-align: left;
        }
        th {
            background-color: #4CAF50;
            color: white;
        }
        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        .black-market-name a {
            color: #4CAF50;
            text-decoration: none;
            font-weight: bold;
        }
        .black-market-name a:hover {
            text-decoration: underline;
        }
        .status-available {
            color: green;
            font-weight: bold;
        }
        .status-sold {
            color: red;
            font-weight: bold;
        }
        .status-negotiated {
            color: orange;
            font-weight: bold;
        }
        .status-not_fair {
              color: orange;
              font-weight: bold;
        }

        .status-rejected {
            color: gray;
            font-weight: bold;
        }
        @media (max-width: 768px) {
            .black-market {
                overflow-x: auto;
            }
            table {
                width: 100%;
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }
        }
        .black-market-modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.4);
            padding-top: 60px;
        }
        .black-market-modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            border-radius: 10px;
        }
        .black-market-close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }
        .black-market-close:hover,
        .black-market-close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        .black-market-form-container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
        }
        .black-market-form-group {
            margin-bottom: 15px;
            position: relative;
        }
        .black-market-form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .black-market-form-group input, .black-market-form-group select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        .black-market-form-group input:focus, .black-market-form-group select:focus {
            border-color: #007bff;
        }
        .black-market-form-group input[type="datetime-local"] {
            padding: 6px;
        }
        .black-market-hidden {
            display: none;
        }
        .black-market-submit {
            margin-top: 20px;
            text-align: center;
        }
        .black-market-submit button {
            padding: 10px 20px;
            font-size: 16px;
            color: #fff;
            background-color: #007bff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .black-market-submit button:hover {
            background-color: #0056b3;
        }



.black-market-post {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: inset -19px 9px 20px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: relative;
    transition: box-shadow 0.3s;
}

.black-market-post:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.black-market-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.black-market-post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.black-market-post-header div {
    font-size: 14px;
}

.black-market-post-header div span {
    display: block;
}

.black-market-post-header .post-name {
    font-weight: bold;
}

.black-market-post-header .post-time {
    color: #777;
}

.black-market-post-body {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.black-market-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.black-market-post-footer .status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.black-market-post-footer .status span {
    padding: 5px 10px;
    border-radius: 5px;
}

.status-completed {
    background-color: #1e1e1e;
    color: #fff;
}

.status-interested {
    background-color: #121211;
    color: #fff;
}

.status-rejected {
    background-color: #dc3545;
    color: #fff;
}

.black-market-post-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.black-market-post-buttons button {
    padding: 5px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.black-market-post-buttons button i {
    font-size: 18px;
}

.btn-interest {
    background-color: #007bff;
    color: #fff;
}

.btn-interest:hover {
    background-color: #0056b3;
}

.btn-reject {
    background-color: #dc3545;
    color: #fff;
}

.btn-reject:hover {
    background-color: #c82333;
}

.btn-not-fair {
    background-color: #2b0c0c;
    color: #fff;
}
.btn-message-counter {
    background-color: #000000;
    color: #fff;
}
.btn-dm-nterest {
    position: relative;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

.btn-message-counter {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}


.btn-not-fair:hover {
    background-color: #2b0c0c;
}

.black-market-dialog {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.black-market-dialog-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
}

.black-market-dialog-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.black-market-dialog-close:hover,
.black-market-dialog-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.black-market-dialog-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.black-market-dialog-button:hover {
    background-color: #0056b3;
}

#dialog-input {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

@media (max-width: 600px) {
    .black-market-post {
        margin: 10px;
    }
    .black-market-dialog-content {
        background-color: #fff;
        margin: 5% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 600px;
        border-radius: 8px;
        position: relative;
        overflow-y: auto;
        max-height: 120vh;
    }
}

#flow-dialog {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.black-market-dialog-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    right: 295px;
    top: -65px;
    border: 1px solid #888;
    width: 80%;
    max-width: 770px;
    border-radius: 8px;
    position: relative;
    overflow-y: auto;
    max-height: 120vh;
}

@media screen and (max-width: 768px) {
    .black-market-dialog-content {
        background-color: #fff;
        margin: 5% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        top: 10px;
        left: 0px;
        max-width: 600px;
        border-radius: 8px;
        position: relative;
        overflow-y: auto;
        max-height: 120vh;
    }
}


.flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.flow-step {
    display: inline-block;
    background-color: #f9f9f9;
    border: 2px solid #007bff;
    border-radius: 50px;
    padding: 10px 20px;
    margin: 10px;
    text-align: center;
    color: #007bff;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    min-width: 150px;
}

.arrow-line {
    position: relative;
    width: 2px;
    height: 30px;
    background-color: #007bff;
    margin: 0;
}

.arrow-line::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -5px;
    width: 10px;
    height: 10px;
    border: 2px solid #007bff;
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
}