/* ===============================
   CESIUM BIM VIEWER - COMPLETE STYLES
   Including all updates and features
   =============================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  background: #000;
}

#cesiumContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Toolbar */
#toolbar {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 350px;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

#toolbar.hidden {
  display: none;
}

/* Custom Scrollbar */
#toolbar::-webkit-scrollbar {
  width: 8px;
}

#toolbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

#toolbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

#toolbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Info Box - Dynamic Size */
#infoBoxCustom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  min-width: 300px;
  max-width: 450px;
  min-height: 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  color: white;
  z-index: 100;
  transition: all 0.3s ease;
  transform-origin: bottom right;
}

/* Info Box animierte Größenänderung */
#infoBoxCustom:empty {
  display: none;
}

/* Wenn Info Box klein ist (wenige Properties) */
#infoBoxCustom.compact {
  max-height: 200px;
}

/* Wenn Info Box mittelgroß ist */
#infoBoxCustom.medium {
  max-height: 400px;
}

/* Wenn Info Box groß ist (viele Properties) */
#infoBoxCustom.large {
  max-height: calc(100vh - 100px);
}

#infoBoxCustom .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  background: rgba(231, 76, 60, 0.8);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Performance Dashboard */
#performanceDashboard {
  position: absolute;
  bottom: 50px;
  left: 10px;
  width: 280px;
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 172, 254, 0.3);
  border-radius: 10px;
  padding: 15px;
  z-index: 100;
  display: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.dashboard-toggle {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(79, 172, 254, 0.4);
}

.dashboard-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

.dashboard-header {
  font-weight: bold;
  color: #4facfe;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(79, 172, 254, 0.3);
}

.dashboard-section {
  margin-bottom: 20px;
}

.dashboard-section h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 14px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.stat-label {
  color: #999;
  font-size: 12px;
}

.stat-value {
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}

.stat-value.good {
  color: #27ae60;
}

.stat-value.warning {
  color: #f39c12;
}

.stat-value.bad {
  color: #e74c3c;
}

.dashboard-btn {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dashboard-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.5);
}

.dashboard-btn.success {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.dashboard-btn.danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Mode Indicators */
.mode-indicator {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
  animation: pulse 2s infinite;
}

.mode-indicator.active {
  display: block;
}

/* Hide Mode Indicator */
#hideModeIndicator {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.7);
  }
  100% {
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
  }
}

/* Status Indicator */
.status-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(42, 42, 42, 0.95);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 1000;
  display: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.status-indicator.success {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.status-indicator.error {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.status-indicator.warning {
  background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.status-indicator.loading {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.5);
}

.btn-success {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

/* Input Fields - Fixed for dark background */
input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 8px 12px;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 13px;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  background: rgba(40, 40, 40, 0.9);
  border-color: #4facfe;
  box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
}

/* Fix für Select Options */
select option {
  background: #2a2a2a;
  color: white;
  padding: 4px;
}

select option:hover,
select option:focus,
select option:checked {
  background: #4facfe;
  color: white;
}

/* IFC Filter Section */
.ifc-filter-section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.ifc-filter-title {
  font-weight: bold;
  color: #4facfe;
  margin-bottom: 10px;
  font-size: 14px;
  border-bottom: 1px solid rgba(79, 172, 254, 0.3);
  padding-bottom: 8px;
}

/* Drawing Controls */
.drawing-controls {
  display: grid;
  gap: 8px;
}

.drawing-btn {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.drawing-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.drawing-btn.active {
  background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
  border-color: #ff9800;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.stop-drawing.hidden {
  display: none;
}

.drawing-info {
  margin-top: 10px;
  padding: 8px;
  background: rgba(255, 165, 0, 0.1);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.clipping-mode-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.clipping-mode-label {
  font-size: 12px;
  color: #999;
}

.clipping-mode-btn {
  flex: 1;
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.clipping-mode-btn.active {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-color: #4facfe;
}

/* Hide Feature Styles */
.feature-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #3498db;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#toggleHideMode.active {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%) !important;
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
  animation: hideModePulse 1s infinite;
}

@keyframes hideModePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.hide-mode-info {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.hidden-features-header {
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(231, 76, 60, 0.3);
}

.hidden-feature-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(231, 76, 60, 0.05);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.hidden-feature-item:hover {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.4);
  transform: translateX(2px);
}

.hidden-feature-info {
  flex: 1;
  overflow: hidden;
}

.hidden-feature-name {
  font-weight: 500;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hidden-feature-details {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.hidden-feature-controls {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.hidden-feature-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 30px;
}

.hidden-feature-btn.show-btn {
  background: rgba(39, 174, 96, 0.2);
  border-color: rgba(39, 174, 96, 0.4);
}

.hidden-feature-btn.show-btn:hover {
  background: rgba(39, 174, 96, 0.4);
  border-color: #27ae60;
  transform: scale(1.1);
}

#showAllHidden:hover {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

#hiddenFeaturesList .text-muted {
  padding: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* Category Filter Styles (NEW) */
.category-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.category-filter-grid::-webkit-scrollbar {
  width: 6px;
}

.category-filter-grid::-webkit-scrollbar-track {
  background: rgba(155, 89, 182, 0.1);
  border-radius: 3px;
}

.category-filter-grid::-webkit-scrollbar-thumb {
  background: rgba(155, 89, 182, 0.3);
  border-radius: 3px;
}

.category-filter-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(155, 89, 182, 0.2);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.category-filter-item:hover {
  background: rgba(155, 89, 182, 0.1);
  border-color: rgba(155, 89, 182, 0.4);
}

.category-filter-checkbox {
  margin-right: 8px;
  cursor: pointer;
}

.category-filter-label {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  color: #fff;
}

.category-filter-color {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-filter-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.category-filter-buttons button {
  padding: 6px;
  background: rgba(155, 89, 182, 0.2);
  border: 1px solid rgba(155, 89, 182, 0.3);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.category-filter-buttons button:hover {
  background: rgba(155, 89, 182, 0.4);
  transform: translateY(-1px);
}

/* Special MEP button spanning full width */
#selectMEP {
  grid-column: 1 / -1;
}

/* Saved Views */
.saved-view-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(79, 172, 254, 0.05);
  border: 1px solid rgba(79, 172, 254, 0.2);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.saved-view-item:hover {
  background: rgba(79, 172, 254, 0.1);
  border-color: rgba(79, 172, 254, 0.4);
  transform: translateX(2px);
}

.saved-view-info {
  flex: 1;
}

.saved-view-name {
  font-weight: 500;
  color: #fff;
  font-size: 13px;
}

.saved-view-details {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.saved-view-controls {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.saved-view-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.saved-view-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Asset Control Panel */
.loaded-asset-entry {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.asset-control-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-info {
  flex: 1;
}

.asset-name {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.asset-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #999;
}

.asset-type-badge {
  background: rgba(102, 126, 234, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: #a8b9ff;
}

.asset-controls {
  display: flex;
  gap: 4px;
}

.asset-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.asset-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.asset-btn-delete:hover {
  background: rgba(231, 76, 60, 0.3);
  border-color: #e74c3c;
}

.opacity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-label {
  font-size: 12px;
  color: #999;
}

.opacity-slider {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

/* IFC Entity Grid */
.ifc-entity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 10px;
}

.ifc-entity-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.ifc-entity-item.checked {
  opacity: 1;
  background: rgba(79, 172, 254, 0.1);
  border-color: rgba(79, 172, 254, 0.3);
}

.ifc-entity-checkbox {
  margin-right: 8px;
  cursor: pointer;
}

.ifc-entity-label {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
}

.ifc-entity-count {
  font-size: 11px;
  color: #999;
  margin-right: 6px;
}

.ifc-entity-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.filter-btn {
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Performance Settings */
.performance-preset-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}

.performance-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.performance-preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.performance-preset-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.preset-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.preset-title {
  font-size: 12px;
  font-weight: bold;
  color: white;
  margin-bottom: 2px;
}

.preset-desc {
  font-size: 10px;
  color: #999;
}

.performance-details {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
}

.performance-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.advanced-toggle {
  cursor: pointer;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  transition: all 0.2s ease;
}

.advanced-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.advanced-settings {
  margin-top: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.advanced-settings.hidden {
  display: none;
}

.ifc-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ifc-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

/* Tile Toggle Widgets */
.tile-toggle-widget {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.tile-toggle-widget.active {
  background: rgba(39, 174, 96, 0.1);
  border-color: rgba(39, 174, 96, 0.3);
}

.tile-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tile-toggle-title {
  font-weight: bold;
  font-size: 14px;
  color: white;
}

.tile-toggle-switch {
  width: 50px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tile-toggle-switch::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #999;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.tile-toggle-switch.active {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  border-color: #27ae60;
}

.tile-toggle-switch.active::before {
  background: white;
  left: 28px;
}

.tile-toggle-info {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* BIM Property Table */
.bim-property-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bim-header-row {
  background: rgba(79, 172, 254, 0.2);
}

.bim-header-cell {
  padding: 8px;
  text-align: left;
  font-weight: bold;
  color: #4facfe;
  border-bottom: 1px solid rgba(79, 172, 254, 0.3);
}

.bim-category-row {
  background: rgba(102, 126, 234, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bim-category-row:hover {
  background: rgba(102, 126, 234, 0.25);
}

.bim-category-cell {
  padding: 8px;
  font-weight: bold;
  color: #a8b9ff;
}

.bim-expand-icon {
  display: inline-block;
  width: 15px;
  margin-right: 5px;
}

.bim-property-row {
  transition: all 0.2s ease;
}

.bim-property-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.bim-property-name {
  padding: 6px 8px;
  color: #999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bim-property-value {
  padding: 6px 8px;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  word-break: break-all;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-small {
  font-size: 11px;
}

.text-muted {
  color: #999;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mt-2 {
  margin-top: 8px;
}

.hidden {
  display: none !important;
}