/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #1c1c1c;
    color: #d3d3d3;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    border-bottom: 1px solid #444;
    color: #fff;
}

#trending img {
    width: 250px;
    height: 50px;
}

#user-info {
    position: relative;
    cursor: pointer;
}

#user-info img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid #4CAF50;
}

#user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #222;
    border: 1px solid #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 200px;
    color: #fff;
}

#user-dropdown p, #user-dropdown a {
    margin: 0;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #333;
}

#user-dropdown p:last-child, #user-dropdown a:last-child {
    border-bottom: none;
}

#user-dropdown a {
    color: #4CAF50;
    text-decoration: none;
}

#user-dropdown a:hover {
    background-color: #333;
}

#search-container {
    display: flex;
    align-items: center;
    position: relative;
}

#search-bar {
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    width: 300px;
}

#search-button {
    padding: 10px 15px;
    background-color: #4CAF50;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 5px;
}

#search-button:hover {
    background-color: #45a049;
}

/* Main content styling */
#main-content {
    display: flex;
    padding: 20px;
}

#coin-info {
    flex: 1;
    padding-right: 20px;
}

#coin-info img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

#coin-info h3, #coin-info p {
    margin-bottom: 15px;
}

#chart-box {
    flex: 2;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
}

.chart-container {
    flex: 1;
    height: 400px;
}

#order-flow {
    margin-top: 20px;
    color: #fff;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
}

#order-flow table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#order-flow th, #order-flow td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.buy-order {
    color: #4CAF50;
}

.sell-order {
    color: #FF5722;
}

#buy-sell-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
}

.buy-section, .sell-section {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.buy-section h3, .sell-section h3 {
    color: #4CAF50;
}

.sell-section h3 {
    color: #FF5722;
}

input[type="range"] {
    width: 100%;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.sell-section button {
    background-color: #FF5722;
}

.sell-section button:hover {
    background-color: #e64a19;
}

footer {
    padding: 20px;
    text-align: center;
    background-color: #222;
    color: #fff;
    margin-top: 40px;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #main-content {
        flex-direction: column;
    }

    #chart-box {
        margin-right: 0;
        margin-bottom: 20px;
    }

    #buy-sell-box {
        flex-direction: row;
    }

    .buy-section, .sell-section {
        margin-right: 10px;
        margin-left: 10px;
    }
}
