.market-data-container {
    background-color: #1a1a2e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.market-data-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
}

.market-data-header .refresh-button {
    background: transparent;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.market-data-header .refresh-button:hover {
    transform: rotate(180deg);
}

.market-data-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.market-data-tab {
    padding: 10px 20px;
    cursor: pointer;
    color: #ccc;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.market-data-tab.active {
    color: #4CAF50;
}

.market-data-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4CAF50;
}

.market-data-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.market-chart-container {
    flex: 1 1 65%;
    min-width: 300px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.market-sidebar {
    flex: 1 1 30%;
    min-width: 250px;
}

.market-info-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.market-info-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.price-display {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-right: 10px;
}

.price-change {
    font-size: 1.2rem;
    font-weight: 500;
}

.price-up {
    color: #4CAF50;
}

.price-down {
    color: #f44336;
}

.price-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.price-detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.technical-indicators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.indicator {
    display: flex;
    flex-direction: column;
}

.indicator-label {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 5px;
}

.indicator-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.market-outlook {
    margin-top: 20px;
}

.outlook-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.outlook-label {
    color: #aaa;
}

.outlook-value {
    font-weight: 500;
}

.outlook-item.bullish .outlook-value {
    color: #4CAF50;
}

.outlook-item.bearish .outlook-value {
    color: #f44336;
}

.outlook-item.neutral .outlook-value {
    color: #FFC107;
}

/* Watchlist Styles */
.market-watchlist {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.watchlist-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.watchlist-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.watchlist-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.watchlist-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.symbol-info {
    display: flex;
    align-items: center;
}

.symbol {
    font-weight: 500;
    color: #fff;
    margin-right: 10px;
}

.remove-symbol {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.watchlist-item:hover .remove-symbol {
    opacity: 1;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price {
    font-weight: 500;
    color: #fff;
    margin-bottom: 5px;
}

.change {
    font-size: 0.85rem;
}

.add-symbol-container {
    display: flex;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
}

#symbol-search {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    color: #fff;
    margin-right: 10px;
}

#symbol-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#add-symbol-btn {
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-symbol-btn:hover {
    background-color: #3d8b40;
}

/* Loading and Error States */
.loading-indicator {
    color: #FFC107;
    font-style: italic;
}

.error-indicator {
    color: #f44336;
    font-style: italic;
}

/* Simple Chart Fallback */
.simple-chart {
    display: flex;
    align-items: flex-end;
    height: 100%;
    gap: 1px;
}

.chart-bar {
    flex: 1;
    background-color: #4CAF50;
    min-height: 1px;
    transition: height 0.3s ease;
}

/* Upgrade Prompt */
.upgrade-prompt {
    text-align: center;
    padding: 40px 20px;
}

.upgrade-prompt h3 {
    color: #fff;
    margin-bottom: 20px;
}

.upgrade-prompt p {
    color: #aaa;
    margin-bottom: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.upgrade-prompt .btn {
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .market-data-content {
        flex-direction: column;
    }
    
    .market-chart-container {
        height: 300px;
    }
    
    .price-details {
        grid-template-columns: 1fr;
    }
    
    .technical-indicators {
        grid-template-columns: 1fr;
    }
}

/* Time Period Selector */
.time-period-selector {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 5px;
}

.time-period-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: #aaa;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-period-btn.active {
    background-color: #4CAF50;
    color: #fff;
}

/* Chart Tooltip */
.chart-tooltip {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    padding: 10px;
    color: #fff;
    font-size: 0.85rem;
    pointer-events: none;
    position: absolute;
    z-index: 10;
    display: none;
}

.chart-tooltip.visible {
    display: block;
}

.tooltip-price {
    font-weight: 700;
    color: #4CAF50;
}

.tooltip-time {
    color: #aaa;
    margin-top: 5px;
}

/* Membership Level Indicator */
.membership-indicator {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 10px;
}

.membership-basic {
    background-color: #2196F3;
    color: #fff;
}

.membership-professional {
    background-color: #9C27B0;
    color: #fff;
}

.membership-elite {
    background-color: #FF9800;
    color: #fff;
}

.membership-institutional {
    background-color: #F44336;
    color: #fff;
}

/* Data Refresh Indicator */
.refresh-indicator {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 10px;
}

.refresh-indicator i {
    margin-right: 5px;
    color: #4CAF50;
}

.refresh-time {
    margin-left: 5px;
    font-weight: 500;
}
