/* Additional styles for new components */
.cp-status-card {
    padding: 15px;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-icon {
    font-size: 20px;
    margin-right: 10px;
}

.cp-diagnostic-grid {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.cp-diagnostic-item {
    display: table-row;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-diagnostic-header, 
.cp-diagnostic-value, 
.cp-diagnostic-detail {
    display: table-cell;
    padding: 8px 12px;
    vertical-align: middle;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.cp-diagnostic-header {
    font-weight: 600;
    font-size: 14px;
    width: 25%;
}

.cp-diagnostic-value {
    width: 20%;
    text-align: center;
}

.cp-diagnostic-detail {
    width: 55%;
    text-align: left;
}

.cp-diagnostic-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
}

.cp-diagnostic-value {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.cp-diagnostic-detail {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
}

.cp-status-ok {
    color: #34D399;
}

.cp-status-warning {
    color: #FBBF24;
}

.cp-status-error {
    color: #EF4444;
}

.cp-chart-container {
    height: 300px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
}

.cp-chart-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cp-chart-tab {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cp-chart-tab.active {
    background: var(--gradient);
    color: white;
}

.cp-chart-timeframe {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.cp-timeframe-btn {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cp-timeframe-btn.active {
    background: rgba(167, 139, 250, 0.2);
    color: var(--primary-gradient-end);
}

.cp-diagnostic-header-row {
    display: table-row;
    background: rgba(0, 0, 0, 0.2);
}

.cp-header-cell {
    display: table-cell;
    font-weight: bold;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhance table styles */
.cp-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.cp-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.2);
}

.cp-table-container {
    max-height: 400px;
    overflow-y: auto;
}
