
:root {
  --mint: #C1E899;
  --sage: #cbdab0;
  --dk-sage: #f3f4f2;
  --fern: #588157;
  --lime: #9A6735;
  --cream: #DAD7CD;
  --beige: #E6F0DC;
  --bubble-user:#A3B18A;     /* gray-800 */
  --bubble-bot:#92a07d;      /* sky-500 */
  --bubble-bot-text:#eef6ff;
  --text:#e5e7eb;            /* gray-200 */
  --muted:#94a3b8;           /* slate-400 */
  --accent:#6ee7b7;          /* emerald-300 */
  --accent-2:#38bdf8;        /* sky-400 */
  --radius: 18px;
}

html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-y: hidden;
  overflow-x: hidden;
  background-color: var(--dk-sage);
  color: var(--fern);
  border-bottom: 1 px solid var(--menu-highlight-color);
}

header, footer {
  text-align: left;
  flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--header-text-color);
}

header {
  display: flex;
  justify-content: space-between;
  height: 30px;
  padding: 0 .5rem;
  border-bottom: 2px solid var(--sage);
}

header a {
  text-decoration: none;
  color: var(--fern);
  font-size: 1.2rem;
  font-weight: bold;
}

header a:hover {
  color: var(--lime);
}

footer {
  padding: .25rem;
  border-top: 2px solid var(--sage);
}

footer a {
  text-decoration: none;
  color: var(--fern);
}

.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.footer a {
  color: var(--lime); 
}
.footer a:hover {
  color: var(--fern);
}



.logo, .logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--fern);
  padding: 0 .5rem;
  line-height: 30px;
}

.logo a:hover {
  cursor: pointer;
  color: var(--fern);
}

.copyright {
  font-size: 0.8rem;
}

.messages-container {
  margin: 1rem;
  text-align: center;
  font-weight: bold;
  color: var(--dk-sage);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-inner {
  display: flex;
  flex-direction: row;
  position: relative;
  height: 100%;
  width: 100vw;
}

.agent-menu-btn {
  position: absolute;
  top:.1rem;
  right: 1rem;
  font-size: 1rem;
}

.agent-menu-btn__dark {
  font-weight: bold;
  font-size: 1.2rem;
  color: black;
}


.agent-menu-btn__light {
  font-weight: bold;
  font-size: 1.2rem;
  color: black;
}


.agent-menu-btn:hover {
  cursor: pointer;
}

#divider {
  flex: 0 0 8px;        /* take up 10px in the flex row */
  background: var(--sage);
  cursor: col-resize;
  user-select: none;
  position: relative;
}

#divider::before,
#divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 30px;
  background: rgba(0,0,0,0.4);
  border-radius: 2px;
}

#divider::before {
  left: 50%;
  transform: translate(-6px, -50%); /* left bar */
}

#divider::after {
  left: 50%;
  transform: translate(4px, -50%); /* right bar */
}

#dividerx:hover {
  cursor: pointer;
  background: var(--lime);
}

#drag-shield {
  position: fixed;
  inset: 0;                /* top:0;right:0;bottom:0;left:0 */
  cursor: col-resize;
  z-index: 99999;
  display: none;           /* only shown while dragging */
  background: transparent; /* keeps page visible */
}

#quirko-pages {
  flex: 0 0 35%;   /* initial width = min width */
  min-width: 400px;  /* enforce min width */
  background-color: var(--dk-sage);
  color: var(--fern);
}
#quirko-pages.hidden ~ .agent-chat-panel {
    display: flex;
    flex: 1;
  }

#quirko-pages.hidden {
  width: 0;                /* collapse the flex space */
  opacity: 0;
  transform: translateX(-100vw); /* keep the slide animation */
  pointer-events: none;
}

.agent-chat-panel {
  flex: 1; 

  height: 100%;
  min-height: 0;
  margin: 0;
}

.agent-chat-panel-wide {
  width: 100vw;
}

.agent-chat-panel-wrapper {
  position: relative;
  margin: 1.5rem 0;
}

.agent-chat-panel-wrapper textarea,
.agent-chat-panel-wrapper input, 
.agent-chat-panel-wrapper pre {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 10px;
  /* border: 2px solid var(--sage); */
  resize: vertical;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.1);
  background-color: white;
  font-family: 'Rajdhani', sans-serif;
}

.agent-chat-panel-wrapper textarea,
.agent-chat-panel-wrapper pre {
  min-height: 120px;
}

 .agent-chat-panel-wrapper textarea:focus,
 .agent-chat-panel-wrapper input:focus {
  border-color: var(--lime);
  outline: none; 
  box-shadow: 0 0 4px var(--lime); 
}

.agent-chat-panel-wrapper i {
  margin-left: 1em;
}


.agent-chat-panel-tab {
  position: absolute;
  top: -2rem;
  left: 2rem;
  color: var(--fern);
  border: 1px solid var(--sage);
  padding: 0.25rem 0.75rem;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
  font-size: 1rem;
  background-color: var(--dk-sage);
}

.agent-chat-panel-tab > button {
  color: white;
  cursor: pointer;
  font-size: .8rem;
  border: none;
}

.agent-chat-panel-wrapper {
  position: relative;
  margin: 1.5rem 0;
}


.agent-edit-panel {
  height: 100%;
  overflow-y: auto;
}

#agent-response {
  height: 150px;
}

.hidden {
  display: none !important;
}

pre {
  white-space: pre-wrap;
}

.page-title {
  font-size: 2em;
  margin-top: 0;
  color: var(--header-text-color);
}

.btn-primary {
  background-color: var(--lime);
  border-color: var(--lime);
  outline: none;
}

.btn-primary:disabled {
  background-color: var(--sage);
  border-color: var(--sage);
  cursor: not-allowed;
}

.btn-primary:hover,
.btn-primary:active {
  background-color: var(--fern);
  border-color: var(--fern);
  outline: none;
}

.btn-info {
  background-color: var(--fern);
  border-color: var(--fern);
  color: var(--dk-sage) !important;
  outline: none;
}

.btn-info:disabled {
  background-color: var(--sage);
  border-color: var(--sage);
  cursor: not-allowed;
}

.btn-info:hover,
.btn-info:active {
  background-color: var(--mint);
  border-color: var(--mint);
  color: var(--fern) !important;
  outline: none;
}

#quirko {
  height: 100%;
  overflow-y: hidden;
  overflow-x: hidden;
  padding: 0;
}

.qp_page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.qp_pages {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.qp_nav {
  display: flex;
  font-size: 1rem;
  padding: 0 .5rem;
  background-color: var(--dk-sage);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
  z-index: 100;
}

.qp_nav span {
  color: var(--fern);
}
.qp_nav span:hover {
  cursor: pointer;
  color: var(--lime);
}

.quirko-page {
  padding: 0 1rem;
  padding-top: 10px;
  background-color: var(--dk-sage);
  overflow-y: auto;
}

.quirko-page .section-title {
  margin-top: 0;
  font-weight: bold;
}

.quirko-page a {
  color: var(--lime);
  font-size: 1.1rem;
  font-weight: bold;
}

.quirko-page a:hover {
  color: var(--fern);
}

.site-page {
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow-y: auto;
}

.home-content {
  background-color: var(--dk-sage);
  color: var(--fern);
  min-height: 100%;;
}



.messages-container {
  margin: 1rem;
  text-align: center;
  font-weight: bold;
  background-color: var(--dk-sage);
}

.challengexx {
  user-select: none;
  /* Include vendor prefixes for broader browser compatibility */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+/Edge */
}

.challenge .title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 0;
}

.challenge-trophy {
  font-size: .8em;
  margin-left: 0.3rem;
}

.challenge .categories {
  font-size: .8rem;
}

/* Remove default list bullets for all */
ul.challenge-list {
  list-style: none;
  padding-left: 0; /* optional, cleaner alignment */
}

/* Shared bullet styling */
ul.challenge-list li {
  position: relative;
  padding-left: 1.7em; /* space for the bullet */
  margin-bottom: 0;
  line-height: 1.8;   /* helps consistent alignment */
}

ul.challenge-list li::before {
  content: "";
  position: absolute;
  left: .5em;
  top: 0.4em;             /* vertically aligns with text */
  width: .8rem;            /* size of circle */
  height: .8rem;
  border-radius: 50%;     /* makes it round */
  border-color: var(--muted);
  background-color: currentColor; /* default color comes from state class */
}

/* State-specific colors */
.challenge-state-not_started::before {
  color: rgb(200, 200, 200); /* gray */
}

.challenge-state-in_progress::before {
  color: rgb(213, 100, 238);    /* sky-400 */
}

.challenge-state-completed::before {
  color: green;        /* green */
}

.easy-difficulty-badge {
  background-color: rgb(89, 193, 19);
}

.medium-difficulty-badge {
  background-color: rgb(200, 200, 0);
}

.hard-difficulty-badge {
  background-color: rgb(100, 140, 227);
}


.nav-link {
  text-decoration: underline !important;
  color: var(--lime);
  font-weight: bold;
  margin-right: 0;
  padding: 0;
}

.nav-link:hover {
  color: var(--fern);
}

.action-icon {
  font-size: 1rem;
  color: var(--lime);
  cursor: pointer;
}

.action-icon-demo {
  color: var(--lime);
}

.error-messages {
  color: var(--lime);
}


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




@media (max-width: 768px) {
  body {
    font-size: 18px;
  }
  .agent-chat-panel {
    display: none;
  }

  


}