/* ITX Economic Calendar Chart Styles v6.0 - CanvasJS */

/* Chart Container */
.chart-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

/* Chart Header */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.chart-header h6 {
    color: #333333;
    font-weight: 600;
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

/* Chart Controls */
.chart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-controls label {
    font-weight: 500;
    color: #4a5568;
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
}

.chart-controls select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 120px;
}

.chart-controls select:hover {
    border-color: #167ac6;
}

.chart-controls select:focus {
    border-color: #167ac6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 122, 198, 0.1);
}

/* Chart Container */
#chartContainer {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    margin: 0;
}

/* Chart Loading */
.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
    z-index: 10;
    display: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.chart-loading:not(.hidden) {
    display: block;
}

/* Recent Values Table */
.description_history_wrapp {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.description_history_wrapp h6 {
    color: #333333;
    font-weight: 600;
    margin: 0 0 16px 0;
    font-size: 16px;
    border-bottom: 2px solid #167ac6;
    padding-bottom: 8px;
}

.description_history_wrapp .table {
    margin: 0;
    border-collapse: collapse;
    width: 100%;
    background: #fff;
}

.description_history_wrapp .table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 400;
}

.description_history_wrapp .table td:first-child {
    color: #666666;
    font-weight: 500;
}

.description_history_wrapp .table td:last-child {
    color: #333333;
    font-weight: 500;
    text-align: right;
}

.description_history_wrapp .table tr:last-child td {
    border-bottom: none;
}

.description_history_wrapp .table tr:hover {
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chart-container {
        padding: 16px;
        margin: 20px 0;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
    }
    
    .chart-header h6 {
        font-size: 15px;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .chart-controls select {
        min-width: 100px;
    }
    
    .description_history_wrapp {
        padding: 16px;
    }
    
    .description_history_wrapp h6 {
        font-size: 15px;
    }
    
    .description_history_wrapp .table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .chart-container {
        padding: 12px;
        margin: 16px 0;
    }
    
    .chart-header h6 {
        font-size: 14px;
    }
    
    .chart-controls label {
        font-size: 13px;
    }
    
    .chart-controls select {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .description_history_wrapp {
        padding: 12px;
    }
    
    .description_history_wrapp h6 {
        font-size: 14px;
    }
    
    .description_history_wrapp .table td {
        padding: 6px 8px;
        font-size: 12px;
    }
}