/* Reset default margins and paddings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'SF Pro';
  src: local('SF Pro Display'), local('SF Pro Text'), local('.SFNSText-Regular'),
       local('.SFNSDisplay-Regular');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SF Pro';
  src: local('SF Pro Display Bold'), local('SF Pro Text Bold'), local('.SFNSText-Bold'),
       local('.SFNSDisplay-Bold');
  font-weight: bold;
  font-style: normal;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'SF Pro', -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;
}

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

.app-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: white;
}

/* App Title Bar */
.app-title-bar {
  width: calc(100% - 20px);
  height: 36px;
  background-color: #0F518A;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 10;
  margin: 10px;
  border-radius: 8px;
}

.app-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.2px;
  color: white;
}

/* App Footer */
.app-footer {
  width: 100%;
  height: 8px;
  background-color: #B0CEE4;
  z-index: 10;
}

/* Loading and error states */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
}

.error-container {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 20px;
  margin: 20px;
  text-align: center;
}

/* Make the editor fill available space */
.app-container .split-pane-right {
  display: flex;
  flex-direction: column;
}

/* Override any OVE editor fullscreen styles to fit in our layout */
.tg-editor-fullscreen {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  z-index: auto !important;
}

/* Override panel container layout for vertical stacking */
.ve-panel-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

/* Control panel sizes for better space utilization */
.ve-circular-view-container {
  flex: 0 0 auto !important;
  height: 45% !important;
}

.ve-sequence-view-container {
  flex: 1 1 auto !important;
}

/* Make all panels take full width */
.ve-panel-container > div {
  width: 100% !important;
}

/* Fix any float issues that might break layout */
.ve-panel-container:after {
  content: "";
  display: table;
  clear: both;
}

/* Existing classes kept for compatibility */
.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.keyboard-shortcut-tooltip {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
  display: flex;
  align-items: center;
}

.keyboard-shortcut-tooltip kbd {
  background-color: #444;
  border-radius: 3px;
  padding: 1px 6px;
  margin: 0 4px;
  font-family: monospace;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.close-tooltip {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-tooltip:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
