/* General styles */
body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, sans-serif;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 100vh;
}

/* Header */
header {
	background-color: #f8f9fa;
	padding: 1rem;
	text-align: center;
	border-bottom: 1px solid #ddd;
}

header>h1 {
	margin: 0;
}

/* Controls */
#controls {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0.5rem;
	gap: 0.5rem;
	border-bottom: 1px solid #ddd;
	background-color: #ffffff;
}

/* Main content area */
#main {
	display: flex;
	flex: 1;
	height: 100%;
}

/* Cytoscape container */
#cy {
	flex: 2;
	border-right: 1px solid #ddd;
	height: 100%;
}

/* Properties panel */
#properties {
	flex: 1;
	padding: 1rem;
	overflow-y: auto;
	background-color: #f5f5f5;
	height: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
}

/* General styles for table cells */
table td {
	word-break: break-word;
	/* Allow breaking long words */
	hyphens: auto;
	/* Enable hyphenation where supported */
	white-space: normal;
	/* Ensure wrapping occurs */
}

/* Sidebar tabs */
#properties .tabs {
	display: flex;
	border-bottom: 1px solid #ccc;
}

#properties .tab {
	flex: 1;
	padding: 0.5rem;
	background: #e0e0e0;
	border: none;
	cursor: pointer;
	font-weight: 500;
}

#properties .tab.active {
	background: #fff;
	border-bottom: 2px solid #007bff;
}

#properties .tab-content {
	display: none;
	padding-top: 1rem;
	height: calc(100% - 2.5rem);
	/* adjust for tab header height */
	overflow-y: auto;
}

#properties .tab-content.active {
	display: block;
}