/* Main CSS file that imports all other CSS files */

@import 'base.css';
@import 'buttons.css';
@import 'timeline.css';
@import 'modals.css';
@import 'cards.css';
@import 'forms.css';
@import 'theme.css';

/* Base layout styles */
#app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#timeline-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 100vh; /* Take full viewport height since no header */
}

#ui-components {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Let clicks pass through to underlying elements */
  z-index: 1000;
}

#ui-components > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Allow pointer events for specific elements inside containers */
.tooltip, .edit-modal, .settings-modal, .floating-add-button, .floating-settings-button, .sub-button {
  pointer-events: auto !important;
}

/* Tooltip styles */
.tooltip {
  position: fixed;
  background-color: rgba(50, 50, 50, 0.95);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 10000;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  display: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
  display: block;
}

/* Place floating buttons in a consistent location */
.floating-add-container, .floating-settings-container {
  position: relative;
  display: inline-block;
}

/* Settings modal styles */
.settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 1100;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.settings-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Dark theme styles for settings modal */
body.dark-theme .settings-modal {
  background-color: #333;
  color: #eee;
}

/* Add the rest of your CSS styles here */
