/* ==========================================================================
   Top Controls Styles
   - 차트 상단 컨트롤 바, 뷰 모드, 분할 옵션
   ========================================================================== */

#top-controls {
    display: block !important;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-bottom: 1px solid #bfdbfe;
    position: relative;
    overflow: visible !important;
}

.view-mode-group {
    background: #ffffff;
    border: 1px solid #47a3ff;
    border-radius: 8px;
    padding: 6px 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: fit-content;
}

.view-mode-title {
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
    text-align: center;
}

.view-mode-options {
    display: flex;
    gap: 2px;
    flex-wrap: nowrap;
}

.view-mode-options input[type=\"radio\"] {
    display: none;
}

.view-mode-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 6px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
    font-size: 10px;
    white-space: nowrap;
}

.view-mode-label:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.view-mode-label i {
    font-size: 12px;
    margin-bottom: 2px;
}

.view-mode-label span {
    font-size: 10px;
}

.view-mode-options input[type=\"radio\"]:checked + .view-mode-label {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
    color: #ffffff;
}

.view-mode-options input[type=\"radio\"]:checked + .view-mode-label i,
.view-mode-options input[type=\"radio\"]:checked + .view-mode-label span {
    color: #ffffff;
}

/* 분봉/코인 분할 옵션 (공통) */
.timeframe-split-options {
    display: flex;
    gap: 2px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #dee2e6;
}

.timeframe-split-options input[type=\"radio\"] {
    display: none;
}

.split-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 5px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 45px;
    font-size: 8px;
}

.split-label:hover {
    border-color: #28a745;
    background: #f8fff9;
}

.split-label i {
    font-size: 10px;
    margin-bottom: 1px;
    color: #6c757d;
}

.split-label span {
    color: #495057;
    font-weight: 500;
    font-size: 8px;
}

.timeframe-split-options input[type=\"radio\"]:checked + .split-label {
    border-color: #28a745;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.timeframe-split-options input[type=\"radio\"]:checked + .split-label i,
.timeframe-split-options input[type=\"radio\"]:checked + .split-label span {
    color: #ffffff;
}

