.card {
  position: absolute;
  color: white;
  text-decoration: none;
  background: linear-gradient(to bottom, #5a00838a, #1c04288a);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 3;
  width: 1000px;
  height: 600px;
  min-width: 1000px;
  min-height: 600px;
  top: 50%;
  left: 50%;
  cursor: default;
}

.card-title {
  display: flex;
  position: absolute;
  top: 10px;
  left: 30px;
  height: 55.1px;
  align-items: center;
}

.card .close {
  position: absolute;
  top: 15px;
  right: 10px;
  font-size: 30px;
  z-index: 23;
  padding: 5px;
  text-align: center;
  border-radius: 9px;
  width: 28px;
}

.card .close:hover {
  background-color: rgb(252, 109, 109);
}

.card .navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: absolute;
  top: 10px;
  left: 2px;
}

.card .tabs {
  display: flex;
  height: 55.1px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: #0000004f;
  z-index: 20;
  /* Ensure tabs are on top */
}

.card .tabs .tab {
  display: flex;
  position: relative;
  padding: 10px 20px 10px 20px;
  height: 35px;
  align-items: center;
  flex-direction: row;
  color: rgba(255, 255, 255, 0.514);
  z-index: 21;
  /* Ensure each tab is on top */
}


.card .tabs .tab h2,
.card-title h2 {
  margin: 0px 20px 0px 10px;
}

.card .tabs .tab.selected {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: #0000005c;
  color: rgba(255, 255, 255, 1);
}

.card .tabs .tab .close {
  font-size: 16px;
  padding: 5px;
  border-radius: 4px;
  width: 14px;
  text-align: center;
  top: 15px;
  right: 8px;
}

.card .tabs .tab.close {
  background-color: rgb(252, 109, 109);
}

.card .navigation .add {
  position: relative;
  font-size: 20px;
  padding: 10px 5px;
  margin-left: 5px;
  z-index: 20;
  border-radius: 9px;
  text-align: center;
  width: 28px;
}

.card .navigation .add:hover {
  background: #0000003d;
}

.card .history{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  /* position: absolute; */
  width: 100px;
  height: 45px;
  z-index: 20;
  /* top: 65px; */
  /* left: 10px; */
  /* background: #0000008a; */
  /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); */
  /* opacity: 0%; */
}

.card .history:hover{
  opacity: 100%;
}

.card .history i{
  padding: 11px 15px;
  border-radius: 4px;
  z-index: 20;
}

.card .history i:hover{
  background: rgba(0, 0, 0, var(--historyButtonBackgroundOpacity));
}

.card-content {
  z-index: 15;
  position: absolute;
  top: 65px;
  right: 10px;
  left: 10px;
  bottom: 10px;
  padding: 10px;
  background: #0000008a;
  background: linear-gradient(to bottom, #0000008a, #1b00288a);
}

.card.recycle {
  opacity: 25%;
  filter: blur(4px);
}

.card.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
}

.tab-content {
  width: 100%;
  height: 100%;
}

.resize-handle {
  position: absolute;
  background-color: transparent;
}

.resize-handle.top {
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  cursor: n-resize;
}

.resize-handle.right {
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  cursor: e-resize;
}

.resize-handle.bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  cursor: s-resize;
}

.resize-handle.left {
  top: 0;
  left: 0;
  bottom: 0;
  width: 10px;
  cursor: w-resize;
}

.resize-handle.top-left {
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  cursor: nw-resize;
}

.resize-handle.top-right {
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  cursor: ne-resize;
}

.resize-handle.bottom-left {
  bottom: 0;
  left: 0;
  width: 10px;
  height: 10px;
  cursor: sw-resize;
}

.resize-handle.bottom-right {
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  cursor: se-resize;
}

.console {
  flex: 1;
  overflow-y: auto;
  font-family: monospace;
}

.console-output {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.console-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.console-input {
  outline: none;
  flex-grow: 1;
  z-index: 1;
}

.tab-text {
  display: none;
  border: 1px solid #ccc;
  padding: 2px 4px;
  margin-left: 5px;
  font-size: 12px;
  color: #fff;
  background-color: #444;
}

.console-suggestion {
  position: absolute;
  color: gray;
  pointer-events: none;
  z-index: 0;
}

.suggestions {
  position: absolute;
  color: black;
  background-color: white;
  max-height: 150px;
  overflow-y: auto;
  width: calc(100% - 22px);
  z-index: 10;
  top: 100%;
  left: 0;
}

.suggestion {
  padding: 5px;
  cursor: pointer;
}

.suggestion.selected {
  background-color: #a1a1a1;
}

.suggestion:hover {
  background-color: #a1a1a1;
}

.highlight {
  color: rgb(155, 154, 154);
}