.tradingview-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #c0c0c0;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

.tradingview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border-bottom: 1px solid #808080;
    min-height: 28px;
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-btn {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px outset #c0c0c0;
    padding: 2px 8px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 20px;
}

.toolbar-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
}

.toolbar-btn:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #c0c0c0 0%, #dfdfdf 100%);
}

.toolbar-btn span {
    font-size: 12px;
}

.symbol-selector,
.interval-selector {
    background: white;
    border: 1px inset #c0c0c0;
    padding: 2px 4px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    min-width: 80px;
}

.symbol-selector {
    min-width: 120px;
}

.symbol-selector:focus,
.interval-selector:focus {
    outline: 1px dotted #000;
    outline-offset: -2px;
}

.tradingview-iframe-container {
    flex: 1;
    position: relative;
    background: #000;
    border: 1px inset #c0c0c0;
    margin: 4px;
    overflow: hidden;
}

#tradingview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #131722;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #d1d4dc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    z-index: 10;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #2a2e39;
    border-top: 3px solid #2962ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    color: #d1d4dc;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .tradingview-toolbar {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
    }
    
    .toolbar-group {
        width: 100%;
        justify-content: center;
    }
    
    .symbol-selector,
    .interval-selector {
        min-width: 100px;
    }
}