.ai-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: inherit;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.ai-link:hover {
  color: #dc2626;
  background: #fee2e2;
  border-radius: 4px;
}



    body {
      font-family: system-ui;
      background: #f3f4f6;
      margin: 0;
      display: flex;
      justify-content: center;
      padding-top: 20px;
      box-sizing: border-box;
    }
    .app-container {
      width: 1000px;
      height: 100%;
      background: white;
      padding: 30px 40px;
      border-radius: 18px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.15);
      box-sizing: border-box;
      max-height: 92vh;
      display: flex;
      flex-direction: column;
      position: relative;
    }
    h2 { text-align: center; margin-bottom: 6px; }
    .subtitle { text-align: center; font-size: 13px; color: gray; }
    .controls { text-align: center; margin: 15px 0; }
    button {
      padding: 10px 24px; background: #2563eb; border: none;
      border-radius: 999px; color: white; cursor: pointer;
      transition: background 0.2s ease;
    }
    button:hover:not(:disabled) {
      background: #1d4ed8;
    }
    button:disabled {
      background: #9ca3af;
      cursor: not-allowed;
    }
    #status {
      font-size: 12px;
      color: #4b5563;
      margin-top: 4px;
    }
    #questionBox {
      background: #f9fafb;
      padding: 14px 16px;
      margin-top: 14px;
      border-radius: 10px;
      border: 1px solid #e5e7eb;
      flex-shrink: 0;
    }
    #answerBox {
      background: #f9fafb;
      padding: 14px 16px;
      margin-top: 14px;
      border-radius: 10px;
      border: 1px solid #e5e7eb;
      height: 750px;
      overflow-y: auto;
      font-size: 15px;
      line-height: 1.6;
      flex-grow: 1; /* Allow answer box to take up remaining space */
    }
    .main-list {
      margin: 6px 0 0 0;
      padding-left: 20px;
    }
    .main-list > li {
      margin-bottom: 8px;
    }
    .sub-list {
      margin: 4px 0 8px 0;
      padding-left: 26px;
      color: #374151;
      font-size: 14px;
    }
    .sub-list > li {
      margin-bottom: 4px;
    }
    .answer-heading {
      margin-top: 8px;
      margin-bottom: 4px;
      font-weight: 600;
    }
    /* ---- USER MENU ---- */
    .user-menu-wrapper {
      position: absolute;
      top: 18px;
      left: 30px;   /* ✅ moved to TOP-LEFT */
      display: flex;
      align-items: center;
      cursor: pointer;
    }


    .avatar-circle {
      width: 38px;
      height: 38px;
      background: #2563eb;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 16px;
      user-select: none;
    }

    .user-dropdown {
    position: absolute;
    top: 48px;
    left: 0;          /* ✅ Changed from right: 0 to left: 0 */
    background: white;
    width: 160px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 6px 0;
    display: none;
    z-index: 999;
}

.user-dropdown.show {
  display: block;
}

    .user-dropdown a {
      display: block;
      padding: 10px 14px;
      font-size: 14px;
      color: #374151;
      text-decoration: none;
    }

    .user-dropdown a:hover {
      background: #f3f4f6;
    }

    /* ===== STRICT INTERVIEW ANSWER FORMAT ===== */
    #answerText {
  font-family: "Segoe UI", system-ui;
  font-size: 15.5px;
  line-height: 1.85;
  color: #111827;
}



.ai-main {
  color: #dc2626;
  font-weight: 600;
}

.ai-sub {
  margin-left: 20px;
  margin-top: 8px;
}



.ai-intro {
  background: #f5f8ff;
  border-left: 4px solid #2563eb;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-weight: 500;
}




/* ✅ KILL ALL STRAY LIST BULLETS ON THIS PAGE */
#answerText ul,
#answerText li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 520px;
  max-width: 90%;
  position: relative;
}

.closeModal {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  cursor: pointer;
}


.ai-bullet {
  position: relative;
  padding-left: 18px;
  margin-top: 4px;
  margin-left: 32px; 
}

.ai-bullet::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}




.ai-main {
  color: #dc2626;
  font-weight: 600;
}

.ai-sub {
  color: #2563eb;
  font-weight: 500;
}

.guest-links-topright {
  position: absolute;
  top: 26px;
  right: 25px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.guest-links-topright a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.guest-links-topright a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.guest-links-topright a:hover {
  color: #16a34a;                /* ✅ Green hover */
  text-shadow: 0 0 1px #16a34a;  /* ✅ Subtle glow */
}

/* Professional Code Block Styles */
.code-container {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    margin: 15px 0 15px 32px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.code-header {
    background: #333;
    padding: 6px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.code-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

.copy-btn {
    background: #444;
    color: #fff;
    border: 1px solid #555;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: 0.2s;
}

.copy-btn:hover { background: #555; }

.code-content {
    padding: 15px;
    overflow-x: auto;
    white-space: pre; /* Preserves indentation and line breaks */
    line-height: 1.5;
    font-size: 14px;
}
