/* Graph Container and Graph-Specific Styles */
.graph-container {
    display: none;
    background: var(--dark-lighter);
    padding: 20px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

#graph-canvas {
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000 100%);
    border: 1px solid var(--border);
    cursor: crosshair;
    width: 100%;
    height: 350px;
    display: block;
    border-radius: 8px;
}

.graph-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.graph-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    background: var(--dark);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-family: 'SF Mono', monospace;
    font-size: 14px;
    transition: all 0.3s;
}

.graph-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.graph-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.graph-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.zoom-controls {
    display: flex;
    gap: 5px;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-light);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
    font-weight: bold;
}

/* Table Container */
.table-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
}

.value-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.value-table th, .value-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.value-table th {
    background: var(--dark-light);
    color: var(--text);
    font-weight: 600;
}

.value-table tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Regression */
.regression-select {
    padding: 8px 12px;
    background: var(--dark);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    margin-right: 10px;
}

/* Data Lists */
.data-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.data-list {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}

.list-header {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
    text-align: center;
}

.list-values {
    max-height: 150px;
    overflow-y: auto;
    font-family: 'SF Mono', monospace;
    font-size: 14px;
}

.list-value {
    padding: 2px 0;
    text-align: center;
}

/* Chart Container */
.chart-container {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}