* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    padding: 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* header / toggle row */
.toggle-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 1100px;
    max-width: 100%;
}

/* Left group containing text and toggle buttons */
.left-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Style for the "Select main security" text */
.select-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #002554;
    letter-spacing: 0.3px;
    background: rgba(255,255,255,0.5);
    padding: 0.3rem 1.2rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
	font-size:16px;
}

/* ----- radio toggle ----- */
.toggle-switch {
    display: flex;
    background: #ffffff;
    padding: 0.4rem;
    backdrop-filter: blur(4px);
}

.toggle-option {
    position: relative;
}

.toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.toggle-option .option-label {
    display: inline-block;
    padding: 0.3rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 400;
    color: #002554;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: transparent;
	border-radius: 5px;
    box-shadow: none;
    user-select: none;
	font-size:16px;
}

/* checked state */
.toggle-option input[type="radio"]:checked + .option-label {
    background: white;
    color: #ffffff;
    border-color: rgba(255,255,255,0.6);
    font-weight: 500;
    background-clip: padding-box;
	border: 1px solid #BFC8D4;
	background: #002554;
}

/* hover effect */
.toggle-option .option-label:hover {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.2);
}

/* iframe pairs */
.iframe-pair {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 1100px;
    max-width: 100%;
}

.iframe-pair.hidden {
    display: none;
}

.iframe-single {
    width: 100%;
    height: 450px;
    border: none;
    background: white;
}
.iframe-single- {
    width: 100%;
    border: none;
    background: white;
}
.chart-iframe {
    width: 1100px;
    max-width: 100%;
    height: 500px;
}

/* small screen */
@media (max-width: 1150px) {
    .toggle-header,
    .iframe-pair,
    .chart-iframe {
        width: 100%;
    }
}

@media (max-width: 600px) {
    body { 
        padding: 1rem; 
    }
    .left-group { 
        flex-direction: column; 
        align-items: flex-start;
        width: 100%;
        gap: 0.8rem;
    }
    .select-text {
        text-align: left;
        width: auto;
    }
    .toggle-switch { 
        justify-content: flex-start;
        width: 100%;
    }
    .toggle-option { 
        flex: 1; 
    }
    .toggle-option .option-label { 
        padding: 0.6rem 1rem; 
        font-size: 1rem; 
        text-align: center;
        width: 100%;
    }
    .iframe-single {
        height: 350px;
    }
    .chart-iframe {
        height: 400px;
    }
}