@import "tailwindcss";

@import "./variables.css";
@import "semi-ui.css";

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  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;
}

#root {
  height: 100%;
}

.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
}

.app-top {
  flex: 0 0 auto;
  z-index: 20;
}

.app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-right {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  z-index: 10;
}

.app-splitter {
  width: 1px;
  cursor: col-resize;
  background-color: var(--border-light);
  transition: background-color 0.2s;
  position: relative;
  z-index: 20;
}

.app-splitter:hover,
.app-splitter:active {
  background-color: var(--color-primary);
  width: 4px; /* Make it easier to grab visually */
  margin-left: -1.5px; /* Center alignment adjustment */
  margin-right: -1.5px;
}

.app-splitter {
  width: 6px;
  cursor: col-resize;
  background: linear-gradient(to right, transparent, #d0d7de, transparent);
  flex-shrink: 0;
}

.app-terminal-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 300px;
  z-index: 1000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  resize: vertical;
  min-height: 150px;
  max-height: 80vh;
}

.app-terminal-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 16px;
  background: #2d2d2d;
  color: #4ec9b0;
  border: 1px solid #3e3e3e;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
  z-index: 100;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
}

.app-terminal-toggle:hover {
  background: #3e3e3e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
