/* Main styles for floor visualization */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background: #1a1a2e;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

canvas {
  display: block;
}

/* Navigation Panel */
.nav-panel {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  text-align: left;
}

.nav-btn:hover {
  transform: translateX(4px);
}

.nav-btn.active {
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Floor-specific button colors */
.nav-btn[data-view="ground"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.nav-btn[data-view="ground"]:hover,
.nav-btn[data-view="ground"].active {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.nav-btn[data-view="first"] {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.nav-btn[data-view="first"]:hover,
.nav-btn[data-view="first"].active {
  background: linear-gradient(135deg, #e879f9 0%, #f43f5e 100%);
}

.nav-btn[data-view="second"] {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.nav-btn[data-view="second"]:hover,
.nav-btn[data-view="second"].active {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
}

.nav-btn[data-view="exterior"] {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: #1a1a2e;
}

.nav-btn[data-view="exterior"]:hover,
.nav-btn[data-view="exterior"].active {
  background: linear-gradient(135deg, #34d399 0%, #2dd4bf 100%);
}

/* Button icons */
.nav-btn .icon {
  font-size: 18px;
}

/* Info panel */
.info-panel {
  position: fixed;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  backdrop-filter: blur(10px);
  max-width: 300px;
}

.info-panel h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #7dd3fc;
}

.info-panel .controls-help {
  color: #a0aec0;
  font-size: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Loading indicator */
.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px 40px;
  border-radius: 12px;
  font-size: 16px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 15px;
}

.loading.hidden {
  display: none;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #7dd3fc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Floor indicator badge */
.floor-badge {
  position: fixed;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.floor-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-panel {
    top: 10px;
    left: 10px;
  }
  
  .nav-btn {
    padding: 10px 14px;
    min-width: 150px;
    font-size: 13px;
  }
  
  .info-panel {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .floor-badge {
    top: 10px;
    right: 10px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

