/* * Modern Faceted Search & Find CSS
 * A comprehensive stylesheet for the OpenLink Virtuoso Faceted Browser
 */

/* ---------- CSS Variables ---------- */
:root {
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --primary-color: #0d6efd;
  --indigo-700: #4338ca;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --background-color: #f8fafc;
  --white-color: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}


/* ---------- Reset & Base Styles ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-800);
  background-color: var(--background-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--indigo-700);
  text-decoration: none;
}

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

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 32px 0;
}

.main-content>.container {
  position: relative;
  /* For positioning the floating panel */
}

.content-area {
  width: 100%;
  background-color: transparent;
}

/* ---------- Header ---------- */
.header {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--indigo-700) 100%);
  color: var(--white-color);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.login-link {
  color: var(--white-color);
  font-weight: 500;
}

/* ---------- Navigation ---------- */
.main-nav {
  background-color: var(--white-color);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.nav-tabs {
  display: flex;
  gap: 8px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  background-color: transparent;
  border: none;
  color: var(--slate-600);
  transition: background-color 0.2s, color 0.2s;
}

.nav-tab:hover {
  background-color: var(--slate-100);
  color: var(--slate-800);
}

.nav-tab.active {
  background-color: var(--indigo-700);
  color: var(--white-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-action {
  color: var(--slate-600);
}


/* ---------- Query Info ---------- */
.query-info {
  margin-bottom: 32px;
}

.query-info-lozenge {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.query-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.query-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.query-action-icon {
  color: var(--slate-400);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.query-action-icon:hover {
  color: var(--indigo-700);
}

.query-info h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0;
  color: var(--slate-800);
}

.query-info-list li {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.variable {
  color: var(--indigo-700);
  font-weight: 600;
}

.value {
  font-weight: 600;
  color: var(--slate-800);
}

/* ---------- Entity Page Styles ---------- */
.entity-header {
  margin-bottom: 24px;
}

.entity-sub-header {
  font-size: 1rem;
  color: var(--slate-600);
  margin-top: -0.25rem;
}

.entity-description {
  max-width: 80ch;
  /* For better readability */
  margin-bottom: 32px;
}

/* ---------- Results Section ---------- */
.results-toolbar {
  margin-bottom: 16px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--white-color);
  border: 1px solid var(--slate-200);
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--slate-800);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.filter-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.results-table {
  width: 100%;
  background-color: var(--white-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
}

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

.results-table th,
.results-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

.results-table th {
  font-weight: 600;
  background-color: var(--slate-100);
  font-size: 0.875rem;
  color: var(--slate-600);
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table td.property {
  font-weight: 500;
  width: 30%;
}

.results-table ul.obj li {
  margin-bottom: 4px;
}

/* ---------- Pagination Nav Control ---------- */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 16px;
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.page-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--white-color);
  border: 1px solid var(--slate-200);
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--slate-800);
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-button:hover:not(:disabled) {
  background-color: var(--slate-100);
  transform: translateY(-1px);
}

.page-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-600);
}

.page-input {
  width: 50px;
  padding: 6px 8px;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.page-input:focus {
  outline: 2px solid var(--primary-color);
}


/* ---------- Floating Filter Panel (Glassmorphism) ---------- */
.floating-panel {
  position: absolute;
  top: 0;
  right: 24px;
  width: 300px;
  min-width: 250px;
  max-width: 600px;
  height: 450px;
  min-height: 300px;
  max-height: 80vh;
  z-index: 1000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-panel.hidden {
  display: none;
}

.floating-panel.inactive {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

.panel-header {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  cursor: move;
  color: #333;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.drag-handle {
  margin-right: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
}

.panel-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  flex-grow: 1;
}

.close-button {
  background: none;
  border: none;
  color: #333;
  font-size: 1.2rem;
  cursor: pointer;
}

.panel-content {
  padding: 1rem;
  flex-grow: 1;
  overflow-y: auto;
  color: #333;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  margin-bottom: 4px;
}

.sidebar-link,
.settings-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--slate-600);
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
}

.sidebar-link:hover,
.settings-button:hover {
  background-color: rgba(67, 56, 202, 0.1);
  color: var(--indigo-700);
  transform: translateX(4px);
}

.sidebar-link i,
.settings-button i {
  width: 20px;
  text-align: center;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}

.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  cursor: nwse-resize;
  background: repeating-linear-gradient(135deg,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.2) 2px,
      transparent 2px,
      transparent 4px);
}

/* Pin Marker */
.pin-marker {
  position: absolute;
  z-index: 999;
  font-size: 2rem;
  color: #ef4444;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease-in-out;
}

.pin-marker.hidden {
  display: none;
}

.pin-marker:hover {
  transform: scale(1.1);
}

/* ====== Gears Dropdown Styles ====== */
.settings-control {
  position: relative;
}

.settings-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background-color: var(--white-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  width: 220px;
  z-index: 10;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--slate-200);
}

.settings-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--slate-600);
  border-radius: 6px;
}

.settings-dropdown a:hover {
  background-color: var(--slate-100);
  color: var(--slate-800);
  text-decoration: none;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--white-color);
  border-top: 1px solid var(--slate-200);
  padding: 24px 0;
  margin-top: 32px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--slate-400);
}

/* ---------- Scroll Animations ---------- */
.anim-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.anim-fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anim-fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}