* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

.widget-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tradingview-widget-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.tradingview-widget-container__widget {
    width: 100% !important;
    height: 100% !important;
}

.search-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(15, 15, 15, 0.9);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    backdrop-filter: blur(10px);
}

.search-input-container {
    display: flex;
    gap: 10px;
}

.suggestions-container {
    position: relative;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.suggestion-item {
    padding: 8px 12px;
    color: #DBDBDB;
    cursor: pointer;
    border-bottom: 1px solid #333;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:hover {
    background: #22ab94;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-symbol {
    font-weight: 600;
}

.suggestion-name {
    color: #888;
    font-size: 12px;
}

#symbolSearch {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #DBDBDB;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    min-width: 200px;
    outline: none;
}

#symbolSearch:focus {
    border-color: #22ab94;
    box-shadow: 0 0 0 2px rgba(34, 171, 148, 0.2);
}

#symbolSearch::placeholder {
    color: #666;
}

#addSymbol {
    background: #22ab94;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

#addSymbol:hover {
    background: #1e9b85;
}

#clearSymbols {
    background: #f7525f;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

#clearSymbols:hover {
    background: #e04654;
}

/* Responsive adjustments for search */
@media (max-width: 768px) {
    .widget-container {
        padding: 0;
    }
    
    .search-container {
        top: 10px;
        right: 10px;
        left: 10px;
        gap: 8px;
    }
    
    .search-input-container {
        flex-direction: column;
        gap: 8px;
    }
    
    #symbolSearch {
        min-width: auto;
    }
    
    #addSymbol,
    #clearSymbols {
        width: 100%;
    }
}