/* General styles remain unchanged */

/* Centering container */
.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Container for filters */
.filter-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 50%;
}

.filter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.filter-group label {
    margin-right: 5px;
}

.filter-group select,
.filter-group input[type="radio"] {
    margin-right: 3px;
}

/* Container for all trade ideas */
.tradeIdeasContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Block for trade ideas */
.trade-idea-block {
    display: flex;
    flex-direction: row;
    margin: 5px 0;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: lightblue;
    width: 60%;
    overflow-y: auto;
    max-height: 500px;
}

/* Horizontal bar for left side */
.horizontal-bar {
    display: flex;
    flex-direction: column;
    flex: 0 0 50%;
    padding-right: 5px;
    margin-right: 5px;
    font-weight: bold;
}

.horizontal-bar-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

/* Vertical wrapper for right side */
.vertical-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.vertical-section {
    margin: 3px 0;
    padding: 5px;
    border: 1px solid #bbb;
    border-radius: 5px;
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.vertical-section div {
    flex: 1;
    padding: 3px;
    text-align: left;
}

.vertical-section strong {
    display: inline-block;
    margin-right: 5px;
}

/* CSS to scale down the widget within rt-ticker */
.widget-container {
    transform: scale(0.5);
    transform-origin: left;
}

.widget-container iframe {
    pointer-events: none;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        width: 90%;
        align-items: stretch;
    }

    .trade-idea-block {
        flex-direction: column;
        width: 90%;
    }

    .horizontal-bar {
        flex: 1;
        padding-right: 0;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .vertical-wrapper {
        flex: 1;
        margin-top: 10px;
    }

    .tradeIdeasContainer {
        width: 90%;
        padding: 15px;
    }
}
