body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden; /* Prevent scrollbars from the main page */
}

#root {
  width: 100vw;
  height: 100vh;
}

.navigation-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.navigation-buttons button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    transition: background-color 0.2s;
}

.navigation-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Settings Panel Styles */
.settings-dialog {
    position: fixed;
  top: 50px;
  left: 50px;
  width: 400px;
  background-color: rgba(20, 20, 20, 0.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid #444;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: #f0f0f0;
    z-index: 1001;
  display: flex;
  flex-direction: column;
}

.settings-dialog-header {
  padding: 12px 20px;
  background-color: rgba(40, 40, 40, 0.9);
  border-bottom: 1px solid #444;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.settings-dialog-header h2 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
}

.settings-dialog-close-button {
  background: none;
  border: none;
  color: #aaa;
  font-size: 20px;
    cursor: pointer;
  padding: 0;
  line-height: 1;
}
.settings-dialog-close-button:hover {
  color: #fff;
}

.settings-dialog-content {
    padding: 20px;
  max-height: 80vh;
    overflow-y: auto;
}

/* Gradient Control Buttons */
.settings-button {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 500;
  margin: 2px 4px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-button:hover {
  background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.settings-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Remove old sidebar styles */
.settings-panel {
  display: none;
}
.settings-panel-toggle-button {
  display: none;
}

.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section-header {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section-toggle {
    font-size: 1.2em;
}

.settings-section-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.settings-input, .settings-select {
    background: #222;
    color: white;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 8px;
}

.settings-input[type="range"] {
    flex: 1;
    margin-left: 10px;
}

.settings-input[type="text"] {
    width: 60%;
}

.settings-button.danger {
    background-color: #a04040;
}

.settings-button.secondary {
     display: block;
     text-align: center;
     margin-top: 8px;
}

.cloud-save-input {
    padding: 8px;
    width: calc(100% - 18px);
    border-radius: 4px;
    border: 1px solid #555;
    background: #222;
    color: white;
    margin-bottom: 8px;
}

.presentations-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 8px;
    margin-top: 8px;
}

.presentation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #444;
}

.presentation-item-name {
    font-size: 13px;
    cursor: pointer;
}

.presentation-item-buttons {
    display: flex;
    gap: 6px;
}

.presentation-item-buttons button {
    padding: 4px 8px;
    font-size: 12px;
    background: #444;
    border: 1px solid #666;
    color: white;
    border-radius: 4px;
    cursor:pointer;
}

.presentation-item-buttons button.delete {
    color: #f55;
} 

/* ============================================================================= */
/* AR BUTTON STYLES */
/* ============================================================================= */

/* 🎯 PROFESSIONAL UI: AR Button positioned to work with auth area */
.ar-button {
  position: fixed;
  top: 80px; /* Moved down to leave space for auth area */
  right: 20px;
  z-index: 1000;
  
  display: flex;
  align-items: center;
  gap: 8px;
  
  padding: 10px 14px; /* Slightly smaller for cleaner look */
  border: 2px solid transparent;
  border-radius: 10px;
  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Ensure visibility over all content */
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.ar-button .ar-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
}

/* AR Button States */
.ar-button.inactive {
  background: rgba(76, 175, 80, 0.9);
  border-color: rgba(76, 175, 80, 1);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.ar-button.inactive:hover {
  background: rgba(76, 175, 80, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.6);
}

.ar-button.active {
  background: rgba(244, 67, 54, 0.9);
  border-color: rgba(244, 67, 54, 1);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
  animation: ar-pulse 2s infinite;
}

.ar-button.active:hover {
  background: rgba(244, 67, 54, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 67, 54, 0.6);
}

.ar-button.unsupported {
  background: rgba(158, 158, 158, 0.9);
  border-color: rgba(158, 158, 158, 1);
  color: white;
  cursor: not-allowed;
  opacity: 0.7;
}

/* AR Active Pulse Animation */
@keyframes ar-pulse {
  0% {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.8), 0 0 0 10px rgba(244, 67, 54, 0.1);
  }
  100% {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
  }
}

/* ============================================================================= */
/* USER PROFILE STYLES - Professional top-right positioning */
/* ============================================================================= */

.user-profile {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  
  display: flex;
  align-items: center;
  gap: 12px;
  
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.user-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #4ECDC4;
}

.user-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.user-profile-email {
  font-size: 12px;
  color: #ccc;
  margin: 0;
}

.user-profile-dropdown {
  position: relative;
  cursor: pointer;
}

.user-profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  
  background: rgba(26, 26, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 150px;
  
  -webkit-backdrop-filter: blur(10px);
  
          backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.user-profile-menu-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: none;
  color: #fff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.user-profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================================= */
/* SIGN IN BUTTON STYLES - For guest users */
/* ============================================================================= */

.sign-in-button {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  
  padding: 10px 16px;
  background: linear-gradient(135deg, #4ECDC4 0%, #44B3C2 100%);
  color: #000;
  border: none;
  border-radius: 10px;
  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  
  cursor: pointer;
  transition: all 0.3s ease;
  
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.sign-in-button:hover {
  background: linear-gradient(135deg, #44B3C2 0%, #3A9FB8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(78, 205, 196, 0.4);
}

.sign-in-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .ar-button {
    top: 70px; /* Adjusted for mobile */
    right: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .ar-button .ar-icon {
    font-size: 16px;
  }
  
  .user-profile {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
  }
  
  .user-profile-avatar {
    width: 28px;
    height: 28px;
  }
  
  .user-profile-name {
    font-size: 12px;
  }
  
  .user-profile-email {
    font-size: 10px;
  }
}

/* AR Overlay for instructions when in AR mode */
.ar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  pointer-events: none;
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.ar-instructions {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  margin-bottom: auto;
}

.ar-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
}

.ar-control-button {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.ar-control-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
} 