/* AACR Clinical Trial Dashboard Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.description {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    text-align: left;
}

.description p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

.note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 90px;
}

.filter-group label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:hover {
    border-color: #007bff;
}

.filter-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.main-content {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.sidebar {
    flex: 0 0 200px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.cancer-type-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cancer-type-item {
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.cancer-type-item:hover {
    background-color: #f0f0f0;
}

.cancer-type-item.active {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
    color: #1976d2;
    font-weight: 500;
}

.chart-container {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

#scatter-plot {
    width: 100%;
    height: 600px;
}

.legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.background-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.background-section h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.background-section p {
    color: #666;
    line-height: 1.6;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    max-width: 400px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tooltip-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.tooltip-details {
    line-height: 1.4;
}

.tooltip-details div {
    margin-bottom: 3px;
}

.abstract-preview {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-style: italic;
    line-height: 1.3;
}

.tooltip-action {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    color: #80d8ff;
    font-weight: 500;
    text-align: center;
}

/* Chart Styles */
.axis {
    font-size: 12px;
    color: #666;
}

.axis-title {
    font-size: 14px;
    font-weight: 500;
    fill: #333;
}

.grid-line {
    stroke: #e0e0e0;
    stroke-width: 1;
    stroke-dasharray: 2,2;
}

.data-point {
    cursor: pointer;
    transition: all 0.2s ease;
}

.data-point:hover {
    stroke: #333;
    stroke-width: 2;
}

.highlighted {
    stroke: #ff6b00;
    stroke-width: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        flex: none;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    #scatter-plot {
        height: 400px;
    }
    
    .cancer-type-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cancer-type-item {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .chart-container,
    .sidebar,
    .background-section {
        padding: 15px;
    }
    
    .legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}