body {
  font-family: Arial, sans-serif;
  background-color: #0b0c10;
  color: #c5c6c7;
  text-align: center;
  padding: 50px;
}

/* Link styling for better readability */
a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #66fcf1;
  text-decoration: underline;
}

.cube-scene {
  width: 400px;
  height: 400px;
  perspective: 1200px;
  margin: 80px auto;
  cursor: grab;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cube:active {
  cursor: grabbing;
}

.face {
  position: absolute;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #66fcf1;
  border: 4px solid #45a29e;
  transition: background-color 0.3s ease;
}

.face-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  font-size: 48px;
  font-weight: bold;
  color: #1f2833;
  text-decoration: none;
  background: #66fcf1;
  border: 4px solid #45a29e;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.face-center:hover {
  background: #45a29e;
  color: #1f2833;
  transform: scale(1.1);
}

.face:hover {
  background: #45a29e;
  color: #1f2833;
}

.face--front  { transform: rotateY(  0deg) translateZ(200px); }
.face--right  { transform: rotateY( 90deg) translateZ(200px); }
.face--back   { transform: rotateY(180deg) translateZ(200px); }
.face--left   { transform: rotateY(-90deg) translateZ(200px); }
.face--top    { transform: rotateX( 90deg) translateZ(200px); }
.face--bottom { transform: rotateX(-90deg) translateZ(200px); }

@keyframes spin {
  0% { transform: rotateX(-20deg) rotateY(0deg); }
  100% { transform: rotateX(-20deg) rotateY(360deg); }
}

/* === AIxJEFF Alpha UI Styling === */

#chat {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  text-align: left;
}

.message {
  margin: 10px 0;
  line-height: 1.4;
}

.user {
  color: #7df9ff;
}

.assistant {
  color: #a0ff87;
}

.assistant-markdown {
  padding: 10px;
  background: #1e1e1e;
  border-radius: 6px;
}

.assistant-markdown code {
  background-color: #333;
  padding: 2px 4px;
  border-radius: 4px;
  color: #ffdd57;
  font-family: monospace;
}

.assistant-markdown pre {
  background-color: #1a1a1a;
  padding: 10px;
  border-left: 4px solid #555;
  color: #ffdd57;
  overflow-x: auto;
  font-family: monospace;
  position: relative;
}

.assistant-markdown blockquote {
  border-left: 4px solid #4caf50;
  padding-left: 10px;
  color: #a0ffa0;
  margin: 1em 0;
}

.copy-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #4caf50;
  border: none;
  color: white;
  padding: 3px 6px;
  font-size: 0.75rem;
  border-radius: 3px;
  cursor: pointer;
}

#typing-indicator {
  font-style: italic;
  color: #999;
  margin-top: 10px;
  padding-left: 20px;
}

#input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid #333;
  background: #1e1e1e;
  align-items: center;
}

#user-input {
  flex-grow: 1;
  padding: 10px;
  font-size: 1rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  resize: none;
  min-height: 40px;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.4;
  font-family: inherit;
}

#user-input:focus {
  outline: none;
  border: 1px solid #4caf50;
  box-shadow: 0 0 8px #4caf50;
}

#task-select {
  margin-right: 10px;
  background: #333;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 5px;
  font-size: 0.9rem;
}

#send {
  margin-left: 10px;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#send:hover {
  background-color: #45a049;
}
