/*
CSS rules that defines colors shadows and font families/styles
CSS rules that define sizes and dimensions can be found in sizes.css
Layout related styles are in index.html
*/

:root {
  --bar-background: #1b0540;
  --activity-animation: spin 1s linear infinite;
  --activity-opacity: 0.5;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #2b1055, #7597de);
  color: white;
}

.header-bar {
  background-color: var(--bar-background);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.actions button {
  background: none;
  cursor: pointer;
  color: #b0b0b0;
  transition: color 0.3s, transform 0.1s;
}

.actions button:hover {
  color: #f0f0f0;
}

.actions button:active {
  transform: scale(0.9);
}

.actions .separator {
  background:rgba(255, 255, 255, 0.6)
}

.chat-history {
  background: rgba(43, 16, 85, 0.8);
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.status-content {
  background: linear-gradient(0deg, #353c68, #1d2555);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.message {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.message.animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.incoming {
  background-color: #4e1c6c;
  white-space: pre-wrap;
}

.message:not(:last-child) a {
  text-decoration: none;
  color: inherit;
  pointer-events: none;
}

.message:last-child a {
  text-decoration: none;
  color: #b4c6ff;
}

.message:last-child a:hover {
  color: #d4e2ff;
  background-color: rgba(255, 255, 255, 0.1);
}

.outgoing {
  background-color: #3a8de3;
}

.checklist-item.done::after {
  content: "✔";
  margin-left: 5px;
  color: green;
}

.checklist-item.active::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border: 2px solid #ccc;
  border-top-color: transparent;
  border-radius: 50%;
  margin-left: 5px;
  animation: var(--activity-animation);
  opacity: var(--activity-opacity);
}

@keyframes spin {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

.input-area {
  background-color: #ccc;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.input-area.disabled {
  opacity: 0.4;
}

.disabled * {
  pointer-events: none;
}

.message-entry-field {
  background: transparent;
  outline: none;
}

.submit-button {
    background-color: #007BFF;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.1s;
}

.submit-button:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.submit-button:active {
  transform: scale(0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-bar {
  background-color:var(--bar-background);
}
