/* Gold Price Components CSS */

/* Error States */
.gold-error-state {
    text-align: center;
    padding: 40px;
    color: #dc2626;
    border: none;
}

.gold-error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gold-error-icon {
    font-size: 24px;
}

.gold-error-title {
    font-weight: 600;
}

.gold-error-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

/* No Data State */
.gold-no-data-state {
    text-align: center;
    padding: 40px;
    border: none;
}

.gold-no-data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gold-no-data-icon {
    font-size: 24px;
}

.gold-no-data-title {
    font-weight: 600;
    color: #6b7280;
}

.gold-no-data-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Gold Table Rows */
.gold-table-row {
    border-bottom: 1px solid #f0f0f0;
}

/* Gold Company Column */
.gold-company {
    text-align: left;
    padding: 12px;
    width: 15%;
    border: none;
    font-weight: 600;
    vertical-align: top;
    text-transform: uppercase;
}

/* Gold Type Column */
.gold-type {
    text-align: left;
    padding: 12px;
    width: 35%;
    border: none;
    font-weight: 500;
    color: #1f2937;
}

/* Gold Price Columns */
.gold-price {
    text-align: right;
    padding: 12px;
    width: 25%;
    border: none;
    font-weight: 600;
}

.gold-price.buy {
    color: #b45309;
}

.gold-price.sell {
    color: #059669;
}

.gold-price-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.gold-trend-icon {
    font-size: 14px;
}

/* Chart Loading States */
.chart-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: #f8f9fa;
    color: #6b7280;
}

.chart-loading-content {
    text-align: center;
}

.chart-loading-icon {
    font-size: 18px;
    margin-bottom: 8px;
}

.chart-loading-text {
    font-size: 14px;
}

/* Full Chart Loading */
.chart-full-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: #f8f9fa;
}

.chart-full-loading-content {
    text-align: center;
}

.chart-full-loading-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.chart-full-loading-text {
    color: #6b7280;
}

/* TradingView Widget Container */
.tradingview-widget-container {
    height: 100%;
    width: 100%;
}

.tradingview-widget-container__widget {
    height: calc(100% - 32px);
    width: 100%;
}

/* Chart Error State */
.chart-error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: #f8f9fa;
}

.chart-error-content {
    text-align: center;
    color: #dc3545;
}

.chart-error-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.chart-retry-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Data Info Section */
.data-info {
    padding: 5px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-info-title {
    font-weight: 600;
    color: #2c5aa0;
}

.last-update {
    font-size: 12px;
    color: #6b7280;
}

/* Loading Indicator */
.gold-loading {
    text-align: center;
    padding: 20px;
    display: none;
}

/* Gold Price Container */
.gold-price-container {
    overflow: hidden;
}

.gold-table-scroll {
    max-height: 450px;
    overflow-y: auto;
}

.gold-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Table Headers */
.gold-table thead {
    background: #f1c62f;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gold-header-company,
.gold-header-type,
.gold-header-buy,
.gold-header-sell {
    padding: 12px;
    border: none;
    width: 25%;
}

.gold-header-company,
.gold-header-type {
    text-align: left;
}

.gold-header-buy,
.gold-header-sell {
    text-align: right;
}

/* Table Body */
.gold-table tbody {
    font-size: 13px;
}

/* Compact TradingView */
.tradingview-compact {
    height: 300px;
    position: relative;
}

/* Chart Expand Section */
.chart-expand-section {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
}

.expand-chart-btn {
    background: #fdbf30;
    color: black;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* Chart Modal */
.chart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

.chart-modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    margin: 2.5% auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.chart-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10000;
}

.close-chart-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.tradingview-full {
    height: 100%;
    width: 100%;
}
