/**
 * EffiBEM Viewer - A Three.js-based viewer for OpenStudio GLTF models
 * https://github.com/jmarrec/effibemviewer
 * https://effibem.com
 */
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
}
#header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  font-family: sans-serif;
  flex-shrink: 0;
}
#header img {
  height: 32px;
  margin-right: 12px;
}
#header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.effibem-viewer {
  width: 100%;
  height: {{ height }};
  flex: 1;
  position: relative;
}
footer {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  font-family: sans-serif;
  font-size: 12px;
  color: #666;
  text-align: center;
}
footer a {
  color: #1a73e8;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer p {
  margin: 0;
}
  .effibem-viewer .controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 12px;
    z-index: 100;
  }
  .effibem-viewer .controls label { display: block; margin: 4px 0; cursor: pointer; }
  .effibem-viewer .controls input { margin-right: 6px; }
  .effibem-viewer .info-panel {
    display: none;
    position: absolute;
    background: rgba(255,255,255,0.95);
    padding: 10px 14px;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 12px;
    z-index: 100;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: none;
  }
  .effibem-viewer .info-panel h4 { margin: 0 0 8px 0; font-size: 13px; }
  .effibem-viewer .info-panel .info-row { margin: 4px 0; }
  .effibem-viewer .info-panel .info-row.emphasized { background: #1a73e8; color: white; margin: 4px -8px; padding: 4px 8px; border-radius: 4px; font-weight: 600; }
  .effibem-viewer .info-panel .info-row.emphasized .info-label { color: white; }
  .effibem-viewer .info-panel .info-label { color: #666; }
  .effibem-viewer .badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    text-transform: capitalize;
  }
  .effibem-viewer .badge-success { background-color: #198754; color: white; }
  .effibem-viewer .badge-danger { background-color: #dc3545; color: white; }
  .effibem-viewer .diagnostics-section { display: none; }
  .effibem-viewer.include-diagnostics .diagnostics-section { display: block; }
  .effibem-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: sans-serif;
    z-index: 50;
  }
  .effibem-loader.hidden { display: none; }
  .effibem-loader h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }
  .effibem-loader p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #666;
  }
  .effibem-loader input[type="file"] {
    font-size: 14px;
  }
