/* Chart Toolbar Styles */
.chart-toolbar-complete {
    position: relative;
    z-index: 100;
}

/* Top Toolbar */
.toolbar-top {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: #1a1d29;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.toolbar-section.timeframes {
    flex: 1;
    gap: 2px;
}

.tf-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.tf-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

.tf-btn.active {
    background: rgba(79, 209, 197, 0.15);
    color: #4fd1c5;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.toggle-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 2px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: #4fd1c5;
    color: #000;
}

.toolbar-icon {
    background: transparent;
    border: none;
    color: #666;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toolbar-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

.toolbar-icon svg {
    width: 16px;
    height: 16px;
}

/* Left Toolbar (Drawing Tools) */
.toolbar-left {
    position: absolute;
    left: 10px;
    top: 70px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #1a1d29;
    border-radius: 8px;
    padding: 5px;
    z-index: 10;
}

.drawing-tool {
    background: transparent;
    border: none;
    color: #666;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
}

.drawing-tool:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

.drawing-tool.active {
    background: rgba(79, 209, 197, 0.15);
    color: #4fd1c5;
}

.drawing-tool svg {
    width: 18px;
    height: 18px;
}

/* Indicators Modal */
.indicators-modal {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1d29;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.close-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.close-btn:hover {
    color: #999;
}

.modal-body {
    padding: 15px;
}

.indicator-search {
    margin-bottom: 15px;
}

.indicator-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.indicator-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.indicator-category h4 {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.indicator-category label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 13px;
    padding: 5px 0;
    cursor: pointer;
}

.indicator-category label:hover {
    color: #fff;
}

.indicator-category input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4fd1c5;
}

/* Display Options Dropdown */
.display-options-dropdown {
    position: absolute;
    top: 60px;
    right: 15px;
    background: #1a1d29;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    width: 250px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dropdown-section h4 {
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.dropdown-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 13px;
    padding: 5px 0;
    cursor: pointer;
}

.dropdown-section label:hover {
    color: #fff;
}

.dropdown-section input[type="radio"],
.dropdown-section input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #4fd1c5;
}

/* Fullscreen Mode */
.trading-chart-container:fullscreen {
    height: 100vh;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.trading-chart-container:fullscreen .toolbar-top {
    border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .toolbar-top {
        flex-wrap: wrap;
        padding: 8px;
    }
    
    .tf-btn {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .toolbar-left {
        top: 120px;
    }
    
    .indicators-modal,
    .display-options-dropdown {
        width: 90%;
        max-width: 350px;
    }
}