/* public/css/style.css */
:root {
  /* Base variables that will be overridden */
  --primary-color: #0066cc;
  --primary-hover: #0052a3;
  --secondary-color: #525f7f;
  --secondary-hover: #3a4358;
  --background-color: #f8f9fa;
  --card-background: #ffffff;
  --border-color: #e1e5eb;
  --text-color: #2d3748;
  --text-light: #718096;
  --success-color: #38a169;
  --error-color: #e53e3e;
  --header-height: 60px;
  --footer-height: 60px;
  --container-width: 1200px;
  --border-radius: 4px;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  
  /* Instance-specific theme is applied via inline script on each page */
}

/* Server1 Theme - Blue */
.theme-server1 {
  --primary-color: #0066cc;
  --primary-hover: #0052a3;
  --secondary-color: #525f7f;
  --secondary-hover: #3a4358;
}

/* Server2 Theme - Green */
.theme-server2 {
  --primary-color: #16a34a;
  --primary-hover: #15803d;
  --secondary-color: #166534;
  --secondary-hover: #14532d;
}

/* Server3 Theme - Purple */
.theme-server3 {
  --primary-color: #7e22ce;
  --primary-hover: #6b21a8;
  --secondary-color: #581c87;
  --secondary-hover: #4c1d95;
}

/* Server4 Theme - Orange */
.theme-server4 {
  --primary-color: #ea580c;
  --primary-hover: #c2410c;
  --secondary-color: #9a3412;
  --secondary-hover: #7c2d12;
}

/* Server5 Theme - Pink */
.theme-server5 {
  --primary-color: #db2777;
  --primary-hover: #be185d;
  --secondary-color: #9d174d;
  --secondary-hover: #831843;
}

/* Default Theme (for any other instances) */
.theme-default {
  --primary-color: #64748b;
  --primary-hover: #475569;
  --secondary-color: #334155;
  --secondary-hover: #1e293b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: white;
  height: var(--header-height);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

nav ul li a:hover {
  opacity: 1;
  text-decoration: none;
}

nav ul li a.active {
  opacity: 1;
  font-weight: 600;
}

/* Main Content */
main {
  flex: 1;
  padding: 2rem 0;
}

.card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn.primary {
  background-color: var(--primary-color);
  color: white;
}

.btn.primary:hover {
  background-color: var(--primary-hover);
}

.btn.secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn.secondary:hover {
  background-color: var(--secondary-hover);
}

/* Footer */
footer {
  height: var(--footer-height);
  background-color: var(--card-background);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

footer p {
  color: var(--text-light);
}

/* Server Configuration */
.server-config {
  margin: 2rem 0;
}

.server-config table {
  width: 100%;
  border-collapse: collapse;
}

.server-config th, .server-config td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.server-config th {
  width: 30%;
}

/* Server Network */
.server-network {
  margin: 2rem 0;
}

.server-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.server-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.server-card.current {
  border: 2px solid var(--primary-color);
}

.server-card h4 {
  margin-top: 0;
}

/* Actions */
.actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  transition: border-color 0.2s ease;
}

.file-upload.highlight {
  border-color: var(--primary-color);
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.file-types {
  margin-top: 1rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* File Preview */
.file-preview {
  margin-top: 2rem;
  text-align: left;
}

.file-info {
  margin-bottom: 1rem;
}

.json-preview {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  overflow: auto;
  max-height: 300px;
}

.json-preview pre {
  margin: 0;
  white-space: pre-wrap;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.alert-success {
  background-color: rgba(56, 161, 105, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.alert-error {
  background-color: rgba(229, 62, 62, 0.1);
  border: 1px solid var(--error-color);
  color: var(--error-color);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem 0;
}

.empty-state p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* File Grid */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.file-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-icon img {
  width: 48px;
  height: 48px;
}

.file-info {
  flex: 1;
}

.file-info h3 {
  margin: 0;
  font-size: 1rem;
}

.file-actions {
  margin-top: 0.5rem;
}

/* Tabs */
.view-tabs, .resource-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-button:hover {
  color: var(--primary-color);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  margin-top: 1rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* JSON Viewer */
.json-viewer {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  overflow: auto;
  max-height: 600px;
}

.json-viewer pre {
  margin: 0;
  white-space: pre-wrap;
}

/* Resource List */
.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.resource-item {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.resource-item h4 {
  margin-top: 0;
}

.resource-actions {
  margin-top: 1rem;
}

/* Resource View */
.resource-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.resource-uri {
  background-color: var(--background-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-family: monospace;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.uri-label, .type-label {
  font-weight: 500;
  margin-right: 0.5rem;
}

.resource-type {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

/* Properties Table */
.properties-table {
  width: 100%;
  border-collapse: collapse;
}

.properties-table th,
.properties-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.properties-table th {
  font-weight: 600;
  background-color: var(--background-color);
}

.property-key {
  width: 40%;
  word-break: break-word;
}

.property-value {
  width: 60%;
  word-break: break-word;
}

/* Asset Viewer */
.asset-viewer {
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
}

.image-viewer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.document-viewer {
  text-align: center;
}

.document-viewer p {
  margin-bottom: 1rem;
}

/* Relationship Styling */
.relationship-item {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.relationship-item h4 {
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.relationship-item h5 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.relationship-properties {
  margin-top: 1rem;
  padding-top: 0.5rem;
}

.relationship-properties h5 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* Make relationship tabs different color */
.tab-button[data-tab^="rel-"] {
  color: var(--primary-color);
  background-color: rgba(0, 102, 204, 0.05);
}

.tab-button[data-tab^="rel-"].active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background-color: rgba(0, 102, 204, 0.1);
}

/* Make the relationship titles more prominent */
.tab-pane h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Type Links Styling */
.type-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.type-link {
  margin-bottom: 4px;
}

.type-link a {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
}

.type-link a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .resource-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .resource-uri {
    width: 100%;
  }
  
  .server-cards,
  .resource-list {
    grid-template-columns: 1fr;
  }
  
  .actions {
    flex-direction: column;
  }
  
  .tab-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .view-tabs, .resource-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
  }
}
/* Overview Tabs Styling */
.overview-list {
  margin-top: 1rem;
}

.overview-list table {
  width: 100%;
  border-collapse: collapse;
}

.overview-list th,
.overview-list td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.overview-list th {
  font-weight: 600;
  background-color: var(--background-color);
}

/* Overview Tab Button */
.tab-button[data-tab="assets-overview"],
.tab-button[data-tab="relationships-overview"] {
  background-color: rgba(0, 102, 204, 0.03);
  font-weight: 500;
}

.tab-button[data-tab="assets-overview"].active,
.tab-button[data-tab="relationships-overview"].active {
  background-color: rgba(0, 102, 204, 0.08);
}

/* Link-like button for navigating between tabs */
.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  padding: 0;
}

.btn-link:hover {
  color: var(--primary-hover);
}

/* Improve Title and Heading Language */
.resource-header h2,
.resource-type .type-label,
.resource-uri .uri-label {
  text-transform: none;
}

/* Change "Resource" to "Item" in all relevant places */
.relationship-item strong:contains("Related Resource") {
  content: "Related Item";
}

/* Make overview headings consistent */
.tab-pane h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Add some spacing for the overview tables */
.overview-list + .overview-list {
  margin-top: 2rem;
}

/* Add tooltip to show full URIs on hover */
.uri-value, .resource-uri a, .relationship-item a {
  position: relative;
}

.uri-value:hover::after, 
.resource-uri a:hover::after,
.relationship-item a:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--card-background);
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 10;
  white-space: nowrap;
  font-size: 0.8rem;
  font-family: monospace;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Tab Grouping Styles */
.resource-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
  gap: 2px;
}

/* Properties tab styling (standalone category) */
.tab-button[data-tab="properties"] {
  background-color: #f0f0f0;
  border-radius: 4px 4px 0 0;
  margin-right: 12px;  /* Add spacing after properties tab */
}

.tab-button[data-tab="properties"].active {
  background-color: #e0e0e0;
  border-bottom: 3px solid var(--secondary-color);
}

/* Assets overview and individual asset tabs styling */
.tab-button[data-tab="assets-overview"],
.tab-button[data-tab^="asset-"] {
  background-color: rgba(56, 161, 105, 0.1);  /* Green tint */
  border-radius: 4px 4px 0 0;
}

.tab-button[data-tab="assets-overview"] {
  font-weight: 600;
  border-bottom: 1px dashed rgba(56, 161, 105, 0.5);
}

.tab-button[data-tab="assets-overview"].active,
.tab-button[data-tab^="asset-"].active {
  background-color: rgba(56, 161, 105, 0.25);
  border-bottom: 3px solid rgba(56, 161, 105, 0.8);
}

/* Group the assets tabs visually */
.asset-tab-group {
  display: flex;
  flex-wrap: wrap;
  margin-right: 12px;  /* Add spacing after this group */
  position: relative;
}

.asset-tab-group::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(56, 161, 105, 0.2);  /* Light green bottom line */
  z-index: 0;
}

/* Relationships overview and individual relationship tabs styling */
.tab-button[data-tab="relationships-overview"],
.tab-button[data-tab^="rel-"] {
  background-color: rgba(0, 102, 204, 0.1);  /* Blue tint */
  border-radius: 4px 4px 0 0;
}

.tab-button[data-tab="relationships-overview"] {
  font-weight: 600;
  border-bottom: 1px dashed rgba(0, 102, 204, 0.5);
}

.tab-button[data-tab="relationships-overview"].active,
.tab-button[data-tab^="rel-"].active {
  background-color: rgba(0, 102, 204, 0.25);
  border-bottom: 3px solid rgba(0, 102, 204, 0.8);
}

/* Group the relationships tabs visually */
.relationship-tab-group {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.relationship-tab-group::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(0, 102, 204, 0.2);  /* Light blue bottom line */
  z-index: 0;
}

/* Add visual separators between tab groups */
.tab-separator {
  width: 1px;
  background-color: var(--border-color);
  margin: 0 8px;
  align-self: stretch;
}

/* Override previous relationship tab styling */
.tab-button[data-tab^="rel-"] {
  color: var(--text-color);
  background-color: rgba(0, 102, 204, 0.1);
}

.tab-button[data-tab^="rel-"].active {
  color: var(--text-color);
  background-color: rgba(0, 102, 204, 0.25);
  border-bottom-color: rgba(0, 102, 204, 0.8);
}

/* Style the overview section headers to match their tab colors */
.tab-pane#assets-overview h3 {
  color: rgb(56, 161, 105);
  border-bottom-color: rgba(56, 161, 105, 0.3);
}

.tab-pane#relationships-overview h3 {
  color: rgb(0, 102, 204);
  border-bottom-color: rgba(0, 102, 204, 0.3);
}

/* Style the individual asset tabs' headers to match their group */
.tab-pane[id^="asset-"] h3 {
  color: rgb(56, 161, 105);
  border-bottom-color: rgba(56, 161, 105, 0.3);
}

/* Style the individual relationship tabs' headers to match their group */
.tab-pane[id^="rel-"] h3 {
  color: rgb(0, 102, 204);
  border-bottom-color: rgba(0, 102, 204, 0.3);
}

.data-table th .header-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
}

.data-table th .header-link:hover {
  text-decoration: underline;
}

.data-table th .header-link:after {
  content: '↗';
  font-size: 0.75em;
  margin-left: 0.25rem;
  opacity: 0.7;
}

.data-table th .header-link:hover:after {
  opacity: 1;
}

/* Table Preview in Resource View */
.table-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-info {
  font-size: 0.875rem;
  color: var(--text-light);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Data Table Styles */
.data-table-container {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.data-table thead th {
  background-color: var(--primary-color);
  color: white;
}

.data-table tbody th {
  background-color: var(--secondary-color);
  color: white;
  font-weight: 600;
}

.data-table .corner-cell {
  background-color: var(--primary-color);
  color: white;
}

.data-table .numeric-cell {
  text-align: right;
}

/* Table download options */
.download-options {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

/* Table dimensions info */
.table-dimensions {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* The full table view page */
.table-view {
  margin-top: 1.5rem;
}

.table-view .property-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
}

/* CSS for tab groups in resource view */

.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
  gap: 1rem;
}

.tab-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

.tab-group-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-right: 0.75rem;
  padding: 0.25rem 0;
}

.tab-group .tab-button {
  margin: 0.125rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-button:hover {
  color: var(--primary-color);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  margin-top: 1rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* CSS styles for table tabs */

.table-preview-panel {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: 1rem;
}

.table-structure-info {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.table-structure-info p {
  margin: 0.5rem 0;
}

.table-preview-panel .btn {
  margin-right: 0.75rem;
}

.table-info {
  color: var(--text-light);
  font-size: 0.875rem;
}

.view-table-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Style when there are many tabs */
.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.resource-tabs .tab-button {
  margin-bottom: 0.5rem;
}

.property-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.property-header h3 {
  margin-bottom: 0.5rem;
}

.property-uri {
  display: block;
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--text-light);
  word-break: break-all;
}

.property-uri:hover {
  color: var(--primary-color);
}

.header-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
}

.header-link:hover {
  text-decoration: underline;
}

.header-link:after {
  content: '↗';
  font-size: 0.75em;
  margin-left: 0.25rem;
  opacity: 0.7;
}

.header-link:hover:after {
  opacity: 1;
}

/* The rest of the CSS remains the same */
.table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

.inline-table {
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.data-table thead th {
  background-color: var(--primary-color);
  color: white;
  position: sticky;
  top: 0;
}

.data-table tbody th {
  background-color: var(--secondary-color);
  color: white;
  font-weight: 600;
}

.data-table .corner-cell {
  background-color: var(--primary-color);
  color: white;
}

.data-table .numeric-cell {
  text-align: right;
  font-family: monospace;
}

// Export page styles
.resource-actions {
  margin-top: 1rem;
}

.export-tabs {
  display: flex;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.help-text {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.template-item {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-color);
}

.template-info h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.template-info p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.template-actions {
  margin-top: 1rem;
}

.loading-text, .error-text {
  text-align: center;
  padding: 1rem;
}

.error-text {
  color: var(--error-color);
}

 .method-static {
   color: #1e88e5; /* A different shade of blue */
 }
 
 /* Login Page Styles */
.login-options {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px 0;
}

.login-buttons {
  margin: 30px 0;
}

.login-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 15px;
  padding: 12px 20px;
  font-size: 16px;
}

.provider-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.login-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
}

  .instance-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-left: 0.5rem;
  }
/* opendthX colour themes per server instance */

/* Abstracts Server - opendthX brand navy */
.theme-abstracts_server {
  --primary-color: #1A237E;
  --primary-hover: #151B60;
  --secondary-color: #283593;
  --secondary-hover: #1A237E;
}

/* Domain Server - EntityDefinition dark green */
.theme-domain_server {
  --primary-color: #2E7D32;
  --primary-hover: #1B5E20;
  --secondary-color: #388E3C;
  --secondary-hover: #2E7D32;
}

/* Community Server - TypeDefinition deep orange */
.theme-community_server {
  --primary-color: #E65100;
  --primary-hover: #BF360C;
  --secondary-color: #EF6C00;
  --secondary-hover: #E65100;
}

/* TechBiM Server - AspectDefinition dark red */
.theme-techbim_server {
  --primary-color: #C62828;
  --primary-hover: #B71C1C;
  --secondary-color: #D32F2F;
  --secondary-hover: #C62828;
}

/* Own/Data Server - Data/Own purple */
.theme-own_server {
  --primary-color: #6A1B9A;
  --primary-hover: #4A148C;
  --secondary-color: #7B1FA2;
  --secondary-hover: #6A1B9A;
}

/* opendthX colour themes per server instance */

/* Abstracts Server - opendthX brand navy */
.theme-abstracts_server {
  --primary-color: #1A237E;
  --primary-hover: #151B60;
  --secondary-color: #283593;
  --secondary-hover: #1A237E;
}

/* Domain Server - EntityDefinition dark green */
.theme-domain_server {
  --primary-color: #2E7D32;
  --primary-hover: #1B5E20;
  --secondary-color: #388E3C;
  --secondary-hover: #2E7D32;
}

/* Community Server - TypeDefinition deep orange */
.theme-community_server {
  --primary-color: #E65100;
  --primary-hover: #BF360C;
  --secondary-color: #EF6C00;
  --secondary-hover: #E65100;
}

/* TechBiM Server - AspectDefinition dark red */
.theme-techbim_server {
  --primary-color: #C62828;
  --primary-hover: #B71C1C;
  --secondary-color: #D32F2F;
  --secondary-hover: #C62828;
}

/* Own/Data Server - Data/Own purple */
.theme-own_server {
  --primary-color: #6A1B9A;
  --primary-hover: #4A148C;
  --secondary-color: #7B1FA2;
  --secondary-hover: #6A1B9A;
}

/* opendthX colour themes per server instance */

/* Abstracts Server - opendthX brand navy */
.theme-abstracts_server {
  --primary-color: #1A237E;
  --primary-hover: #151B60;
  --secondary-color: #283593;
  --secondary-hover: #1A237E;
}

/* Domain Server - EntityDefinition dark green */
.theme-domain_server {
  --primary-color: #2E7D32;
  --primary-hover: #1B5E20;
  --secondary-color: #388E3C;
  --secondary-hover: #2E7D32;
}

/* Community Server - TypeDefinition deep orange */
.theme-community_server {
  --primary-color: #E65100;
  --primary-hover: #BF360C;
  --secondary-color: #EF6C00;
  --secondary-hover: #E65100;
}

/* TechBiM Server - AspectDefinition dark red */
.theme-techbim_server {
  --primary-color: #C62828;
  --primary-hover: #B71C1C;
  --secondary-color: #D32F2F;
  --secondary-hover: #C62828;
}

/* Own/Data Server - Data/Own purple */
.theme-own_server {
  --primary-color: #6A1B9A;
  --primary-hover: #4A148C;
  --secondary-color: #7B1FA2;
  --secondary-hover: #6A1B9A;
}

/* Logged-in user display in nav */
.nav-user {
  color: white;
  opacity: 0.9;
  font-size: 0.9rem;
}

