/* =========================
    General Styles
========================== */
.rs-screener-container {
    display: flex;
    min-height: 80vh;
    font-family: 'Inter', Arial, sans-serif;
    width: 100%; /* Ensure container takes full width */
}

.sidebar {
    flex: 0 0 300px;
    padding: 30px;
    background-color: #f1f3f9;
    box-sizing: border-box;
}

.sidebar h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
}

.sidebar select,
.sidebar input[type="number"],
.sidebar button {
    width: 100%;
    padding: 5px;
    margin-bottom: 20px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
}

.sidebar select {
    background-color: #ffffff;
    position: relative;
    padding-right: 30px;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 8l5 5 5-5H5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
}

.sidebar button {
    background: linear-gradient(135deg, #2A399B, #5A189A);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.sidebar button:hover {
    background: linear-gradient(135deg, #2A399B, #3C096C);
    color: rgb(255, 231, 11);
}

/* =========================
    Market Radio Buttons
========================== */
.market-options {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    font-family: 'Inter', Arial, sans-serif;
    align-items: center;
}

.market-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.market-options input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;           
    border: 2px solid #777;
    margin-right: 8px;
    position: relative;
}

.market-options input[type="radio"]:checked {
    border: 2px solid #ff4500;
    background-color: #ff4500;
}

.market-options input[type="radio"]:checked::after {
    content: '';
    display: block;
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* =========================
    Main Content
========================== */
.main-content {
    flex: 3;
    padding: 40px;
    box-sizing: border-box;
}

.symbol-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.symbol-button {
    position: relative;
    padding: 12px 18px;
    border-radius: 8px;
    background: #f9f2f7;
    color: black;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; 
    max-width: none; 
    margin-bottom: 12px;
    box-sizing: border-box;
}

.symbol-button:hover {
    background: blue;
    color: yellow;
}

.symbol-button::before {
    content: '\1F4CC';
    margin-right: 8px;
}

.symbol-button::after {
    content: '\25BC';
    margin-left: auto;
}

.symbol-button.active::after {
    content: '\25B2';
}

.card {
    padding: 40px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 1000px;
    background-color: #ffffff;
    box-shadow: 0px 4px 30px rgba(0,0,0,0.1);
}

h2 {
    font-size: 1.8rem;
}

.info-toggle {
    padding: 0.5rem 1rem;
    background-color: #e3fccb;
    color: #02883e;
    border-width: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.info-toggle:hover {
    background: #bbff4e;
}

.info-box {
    background-color: #f9fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 14px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

/* =========================
    Symbols Limit Slider
========================== */
.symbols-limit-container {
    position: relative;
    padding: 10px 0 10px 0;
}

#selected-value {
    position: absolute;
    font-size: 0.9rem;
    font-weight: bold;
    top: -2px;
    color: #ff4500;
    pointer-events: none;
    transform: translateX(-50%);
}

.symbols-limit-slider {
    width: 100%;
    height: 4px;
}

.symbols-limit-minmax {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
    margin: 5px 10px 0 10px;
}

/* =========================
    Form Group Styling
========================== */
.sidebar form > h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 8px 0;
}

.sidebar .market-options,
.sidebar select,
.sidebar input[type="number"],
.symbols-limit-container,
.sidebar button {
    margin-bottom: 15px;
}

.sidebar form {
    display: flex;
    flex-direction: column;
}

/* =========================
    Responsive Styles
========================== */
@media (max-width: 768px) {
    .rs-screener-container {
        flex-direction: column;
    }

    .sidebar {
        flex: unset;
        width: 100%;
        padding: 20px;
    }

    .main-content {
        padding: 20px;
        flex: unset;
        width: 100%;
    }

    .symbol-list {
        flex-direction: column;
    }

    .symbol-button {
        font-size: 14px;
        padding: 10px 15px;
    }

    .card {
        padding: 20px;
        max-width: 100%;
    }

    .symbol-chart {
        max-width: 100%;
        overflow-x: auto;
    }

    svg {
        max-width: 100% !important;
        height: auto !important;
    }

    .sidebar select,
    .sidebar input[type="number"],
    .sidebar button {
        font-size: 0.9rem;
    }
}

/* =========================
    INDICATOR SETTINGS
========================== */
.indicator-settings {
    margin-bottom: 15px;
}

.indicator-settings h4 {
    font-size: 1rem;
    color: #2A399B;
    margin: 5px 0;
}

.indicator-settings input {
    font-size: 0.9rem;
}

